mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -364,7 +364,7 @@ static int func_channel_write(struct ast_channel *chan, const char *function,
|
||||
else if (!strcasecmp(data, "amaflags")) {
|
||||
ast_channel_lock(chan);
|
||||
if(isdigit(*value)) {
|
||||
sscanf(value, "%d", &chan->amaflags);
|
||||
sscanf(value, "%30d", &chan->amaflags);
|
||||
} else if (!strcasecmp(value,"OMIT")){
|
||||
chan->amaflags = 1;
|
||||
} else if (!strcasecmp(value,"BILLING")){
|
||||
@@ -409,10 +409,10 @@ static int func_channel_write(struct ast_channel *chan, const char *function,
|
||||
} else if (!strcasecmp(data, "callgroup"))
|
||||
chan->callgroup = ast_get_group(value);
|
||||
else if (!strcasecmp(data, "txgain")) {
|
||||
sscanf(value, "%hhd", &gainset);
|
||||
sscanf(value, "%4hhd", &gainset);
|
||||
ast_channel_setoption(chan, AST_OPTION_TXGAIN, &gainset, sizeof(gainset), 0);
|
||||
} else if (!strcasecmp(data, "rxgain")) {
|
||||
sscanf(value, "%hhd", &gainset);
|
||||
sscanf(value, "%4hhd", &gainset);
|
||||
ast_channel_setoption(chan, AST_OPTION_RXGAIN, &gainset, sizeof(gainset), 0);
|
||||
} else if (!strcasecmp(data, "transfercapability")) {
|
||||
unsigned short i;
|
||||
|
||||
Reference in New Issue
Block a user