[Asterisk-cvs] asterisk/channels chan_zap.c,1.263,1.264

markster at lists.digium.com markster at lists.digium.com
Sun Jun 13 02:21:15 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Provide dialtone when doing overlap dial (bug #1832)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.263
retrieving revision 1.264
diff -u -d -r1.263 -r1.264
--- chan_zap.c	13 Jun 2004 07:16:00 -0000	1.263
+++ chan_zap.c	13 Jun 2004 07:25:27 -0000	1.264
@@ -4408,6 +4408,10 @@
 		len = strlen(exten);
 		res = 0;
 		while((len < AST_MAX_EXTENSION-1) && ast_matchmore_extension(chan, chan->context, exten, 1, p->callerid)) {
+			if (len && !ast_ignore_pattern(chan->context, exten))
+				tone_zone_play_tone(p->subs[index].zfd, -1);
+			else
+				tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_DIALTONE);
 			if (ast_exists_extension(chan, chan->context, exten, 1, p->callerid))
 				timeout = matchdigittimeout;
 			else
@@ -4422,6 +4426,7 @@
 			} else
 				break;
 		}
+		tone_zone_play_tone(p->subs[index].zfd, -1);
 		if (ast_exists_extension(chan, chan->context, exten, 1, p->callerid)) {
 			/* Start the real PBX */
 			strncpy(chan->exten, exten, sizeof(chan->exten));




More information about the svn-commits mailing list