[Asterisk-cvs] asterisk/channels chan_zap.c,1.439,1.440

mattf at lists.digium.com mattf at lists.digium.com
Wed May 11 10:57:07 CDT 2005


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

Modified Files:
	chan_zap.c 
Log Message:
Set DNID for immediate calls (Bug #4220)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.439
retrieving revision 1.440
diff -u -d -r1.439 -r1.440
--- chan_zap.c	10 May 2005 21:52:43 -0000	1.439
+++ chan_zap.c	11 May 2005 15:03:11 -0000	1.440
@@ -7981,6 +7981,9 @@
 						strncpy(pri->pvts[chanpos]->dnid, e->ring.callednum, sizeof(pri->pvts[chanpos]->dnid) - 1);
 					} else
 						pri->pvts[chanpos]->exten[0] = '\0';
+					/* Set DNID on all incoming calls -- even immediate */
+					if (!ast_strlen_zero(e->ring.callednum))
+						strncpy(pri->pvts[chanpos]->dnid, e->ring.callednum, sizeof(pri->pvts[chanpos]->dnid) - 1);
 					/* No number yet, but received "sending complete"? */
 					if (e->ring.complete && (ast_strlen_zero(e->ring.callednum))) {
 						if (option_verbose > 2)




More information about the svn-commits mailing list