[Asterisk-cvs] asterisk pbx.c,1.96.2.7,1.96.2.8

citats at lists.digium.com citats at lists.digium.com
Sat Mar 6 15:24:52 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16134

Modified Files:
      Tag: v1-0_stable
	pbx.c 
Log Message:
Allow multiple switches in the same context (bug #1171)


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.96.2.7
retrieving revision 1.96.2.8
diff -u -d -r1.96.2.7 -r1.96.2.8
--- pbx.c	5 Mar 2004 23:43:12 -0000	1.96.2.7
+++ pbx.c	6 Mar 2004 20:16:34 -0000	1.96.2.8
@@ -3303,7 +3303,7 @@
 	/* ... go to last sw and check if context is already swd too... */
 	i = con->alts;
 	while (i) {
-		if (!strcasecmp(i->name, new_sw->name)) {
+		if (!strcasecmp(i->name, new_sw->name) && !strcasecmp(i->data, new_sw->data)) {
 			free(new_sw);
 			ast_mutex_unlock(&con->lock);
 			errno = EEXIST;




More information about the svn-commits mailing list