[Asterisk-cvs] asterisk pbx.c,1.104,1.105

citats at lists.digium.com citats at lists.digium.com
Sat Mar 6 15:23:26 CST 2004


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

Modified Files:
	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.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- pbx.c	5 Mar 2004 23:42:58 -0000	1.104
+++ pbx.c	6 Mar 2004 20:15:08 -0000	1.105
@@ -3306,7 +3306,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