[asterisk-commits] branch crichter/config-update - r7836 /team/crichter/config-update/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 6 03:14:04 CST 2006


Author: crichter
Date: Fri Jan  6 03:14:01 2006
New Revision: 7836

URL: http://svn.digium.com/view/asterisk?rev=7836&view=rev
Log:
fixed one more bug resulting from copy n paste.

Modified:
    team/crichter/config-update/channels/chan_misdn_config.c

Modified: team/crichter/config-update/channels/chan_misdn_config.c
URL: http://svn.digium.com/view/asterisk/team/crichter/config-update/channels/chan_misdn_config.c?rev=7836&r1=7835&r2=7836&view=diff
==============================================================================
--- team/crichter/config-update/channels/chan_misdn_config.c (original)
+++ team/crichter/config-update/channels/chan_misdn_config.c Fri Jan  6 03:14:01 2006
@@ -344,7 +344,7 @@
 
 	misdn_cfg_lock();
 	for (i = 1; i <= max_ports; i++) {
-		if (port_cfg[i] && port_cfg[i][map[MISDN_CFG_GROUPNAME]].str ) {
+		if (port_cfg[i] && port_cfg[i][map[MISDN_CFG_GROUPNAME]].str) {
 			if (!strcasecmp(port_cfg[i][map[MISDN_CFG_GROUPNAME]].str, group))
 				method = (port_cfg[i][map[MISDN_CFG_METHOD]].str ? 
 						  port_cfg[i][map[MISDN_CFG_METHOD]].str : port_cfg[0][map[MISDN_CFG_METHOD]].str);
@@ -697,8 +697,8 @@
 			_parse(&(port_cfg[0][i]), (char *)port_spec[i].def, port_spec[i].type, port_spec[i].boolint_def);
 	}
 	for (i = 0; i < NUM_GEN_ELEMENTS; ++i) {
-		if (!general_cfg[i].any && strcasecmp(port_spec[i].def, NO_DEFAULT))
-			_parse(&(general_cfg[i]), (char *)gen_spec[i].def, gen_spec[i].type, port_spec[i].boolint_def);
+		if (!general_cfg[i].any && strcasecmp(gen_spec[i].def, NO_DEFAULT))
+			_parse(&(general_cfg[i]), (char *)gen_spec[i].def, gen_spec[i].type, gen_spec[i].boolint_def);
 	}
 }
 



More information about the asterisk-commits mailing list