[Asterisk-cvs] asterisk/channels chan_zap.c,1.461,1.462

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 9 18:32:23 CDT 2005


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

Modified Files:
	chan_zap.c 
Log Message:
make incoming overlap calls with no number specified use the 's' extension (bug #4317)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.461
retrieving revision 1.462
diff -u -d -r1.461 -r1.462
--- chan_zap.c	9 Jun 2005 22:23:21 -0000	1.461
+++ chan_zap.c	9 Jun 2005 22:34:29 -0000	1.462
@@ -4992,6 +4992,13 @@
 			} else
 				break;
 		}
+		/* if no extension was received ('unspecified') on overlap call, use the 's' extension */
+		if (ast_strlen_zero(exten)) {
+			if (option_verbose > 2)
+				ast_verbose(VERBOSE_PREFIX_3 "Going to extension s|1 because of empty extension received on overlap call\n");
+			exten[0] = 's';
+			exten[1] = '\0';
+		}
 		tone_zone_play_tone(p->subs[index].zfd, -1);
 		if (ast_exists_extension(chan, chan->context, exten, 1, p->cid_num)) {
 			/* Start the real PBX */




More information about the svn-commits mailing list