mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
use string fields for some stuff in ast_channel
const-ify some more APIs remove 'type' field from ast_channel, in favor of the one in the channel's tech structure allow string field module users to specify the 'chunk size' for pool allocations update chan_alsa to be compatible with recent const-ification patches git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -72,6 +72,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/localtime.h"
|
||||
#include "asterisk/cli.h"
|
||||
#include "asterisk/utils.h"
|
||||
#include "asterisk/stringfields.h"
|
||||
#ifdef USE_ODBC_STORAGE
|
||||
#include "asterisk/res_odbc.h"
|
||||
#endif
|
||||
@@ -2655,7 +2656,7 @@ static int resequence_mailbox(struct ast_vm_user *vmu, char *dir)
|
||||
}
|
||||
|
||||
|
||||
static int say_and_wait(struct ast_channel *chan, int num, char *language)
|
||||
static int say_and_wait(struct ast_channel *chan, int num, const char *language)
|
||||
{
|
||||
int d;
|
||||
d = ast_say_number(chan, num, AST_DIGIT_ANY, language, (char *) NULL);
|
||||
@@ -5150,7 +5151,7 @@ static int vm_execmain(struct ast_channel *chan, void *data)
|
||||
|
||||
/* Set language from config to override channel language */
|
||||
if (!ast_strlen_zero(vmu->language))
|
||||
ast_copy_string(chan->language, vmu->language, sizeof(chan->language));
|
||||
ast_string_field_set(chan, language, vmu->language);
|
||||
create_dirpath(vms.curdir, sizeof(vms.curdir), vmu->context, vms.username, "");
|
||||
/* Retrieve old and new message counts */
|
||||
res = open_mailbox(&vms, vmu, 1);
|
||||
|
||||
Reference in New Issue
Block a user