[Asterisk-cvs] asterisk/channels chan_zap.c,1.249,1.250

markster at lists.digium.com markster at lists.digium.com
Sun Jun 6 15:45:28 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Fix small arrangement issue


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -d -r1.249 -r1.250
--- chan_zap.c	6 Jun 2004 08:52:24 -0000	1.249
+++ chan_zap.c	6 Jun 2004 20:47:51 -0000	1.250
@@ -6142,9 +6142,11 @@
 		char *stringp=NULL;
 		stringp=dest;
 		s = strsep(&stringp, "/");
+		p = iflist;
 		if (!strcasecmp(s, "pseudo")) {
 			/* Special case for pseudo */
 			x = CHAN_PSEUDO;
+			channelmatch = x;
 		} 
 #ifdef ZAPATA_PRI
 		else if ((res = sscanf(s, "%d:%d%c%d", &trunkgroup, &crv, &opt, &y)) > 1) {
@@ -6171,9 +6173,9 @@
 		else if ((res = sscanf(s, "%d%c%d", &x, &opt, &y)) < 1) {
 			ast_log(LOG_WARNING, "Unable to determine channel for data %s\n", (char *)data);
 			return NULL;
+		} else {
+			channelmatch = x;
 		}
-		channelmatch = x;
-		p = iflist;
 	}
 	/* Search for an unowned channel */
 	if (ast_mutex_lock(lock)) {




More information about the svn-commits mailing list