mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@211569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -143,10 +143,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