[Asterisk-cvs] asterisk/channels chan_zap.c,1.98,1.99

markster at lists.digium.com markster at lists.digium.com
Sat Sep 13 18:56:39 CDT 2003


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

Modified Files:
	chan_zap.c 
Log Message:
Merge sending complete patch with no number (bug #176)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- chan_zap.c	12 Sep 2003 17:09:44 -0000	1.98
+++ chan_zap.c	13 Sep 2003 23:57:48 -0000	1.99
@@ -5831,6 +5831,12 @@
 #endif
 					else
 						strcpy(pri->pvt[chan]->exten, "");
+					/* No number yet, but received "sending complete"? */
+					if (e->ring.complete && (!strlen(e->ring.callednum))) {
+						if (option_verbose > 2)
+							ast_verbose(VERBOSE_PREFIX_3 "Going to extension s|1 because of Complete received\n");
+						strcpy(pri->pvt[chan]->exten, "s");
+					}
 					/* queue DTMF frame if the PBX for this call was already started (we're forwarding INFORMATION further on */
 					if (pri->overlapdial && pri->pvt[chan]->call==e->ring.call && pri->pvt[chan]->owner) {
 						/* how to do that */




More information about the svn-commits mailing list