[asterisk-commits] pcadach: branch 1.4 r44809 - in /branches/1.4: funcs/ include/asterisk/ main/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Oct 10 09:44:55 MST 2006


Author: pcadach
Date: Tue Oct 10 11:44:54 2006
New Revision: 44809

URL: http://svn.digium.com/view/asterisk?rev=44809&view=rev
Log:
CHANNEL() function sometime mix parameter and value

Modified:
    branches/1.4/funcs/func_channel.c
    branches/1.4/include/asterisk/channel.h
    branches/1.4/main/channel.c

Modified: branches/1.4/funcs/func_channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_channel.c?rev=44809&r1=44808&r2=44809&view=diff
==============================================================================
--- branches/1.4/funcs/func_channel.c (original)
+++ branches/1.4/funcs/func_channel.c Tue Oct 10 11:44:54 2006
@@ -112,13 +112,13 @@
 		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);

Modified: branches/1.4/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/channel.h?rev=44809&r1=44808&r2=44809&view=diff
==============================================================================
--- branches/1.4/include/asterisk/channel.h (original)
+++ branches/1.4/include/asterisk/channel.h Tue Oct 10 11:44:54 2006
@@ -1303,7 +1303,7 @@
 									ast_set_flag(c, AST_FLAG_BLOCKING); \
 									} }
 
-ast_group_t ast_get_group(char *s);
+ast_group_t ast_get_group(const char *s);
 
 /*! \brief print call- and pickup groups into buffer */
 char *ast_print_group(char *buf, int buflen, ast_group_t group);

Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?rev=44809&r1=44808&r2=44809&view=diff
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Tue Oct 10 11:44:54 2006
@@ -4115,7 +4115,7 @@
 	return 0;
 }
 
-ast_group_t ast_get_group(char *s)
+ast_group_t ast_get_group(const char *s)
 {
 	char *piece;
 	char *c;



More information about the asterisk-commits mailing list