aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-10 16:44:54 +0000
committerpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-10 16:44:54 +0000
commit923122fc6ad1d80a3af63e399e55c6dd738d0749 (patch)
tree8bf7f4c51de08cf307e7147e98d4437dd0dabba9 /funcs
parent869c5e2e6dc4cba418c9ada13bfe9fe0c1986f2f (diff)
CHANNEL() function sometime mix parameter and value
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44809 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_channel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/funcs/func_channel.c b/funcs/func_channel.c
index 2a377b52f..9c02a59fa 100644
--- a/funcs/func_channel.c
+++ b/funcs/func_channel.c
@@ -112,13 +112,13 @@ static int func_channel_write(struct ast_channel *chan, char *function,
locked_string_field_set(chan, musicclass, value);
else if (!strcasecmp(data, "tonezone")) {
struct tone_zone *new_zone;
- if (!(new_zone = ast_get_indication_zone(data))) {
- ast_log(LOG_ERROR, "Unknown country code for tonezone. Check indications.conf for available country codes.\n");
+ if (!(new_zone = ast_get_indication_zone(value))) {
+ ast_log(LOG_ERROR, "Unknown country code '%s' for tonezone. Check indications.conf for available country codes.\n", value);
ret = -1;
} else
chan->zone = new_zone;
} else if (!strcasecmp(data, "callgroup"))
- chan->callgroup = ast_get_group(data);
+ chan->callgroup = ast_get_group(value);
else if (!strcasecmp(data, "txgain")) {
sscanf(value, "%hhd", &gainset);
ast_channel_setoption(chan, AST_OPTION_TXGAIN, &gainset, sizeof(gainset), 0);