[Asterisk-cvs] asterisk/channels chan_zap.c,1.344.2.17,1.344.2.18

russell at lists.digium.com russell at lists.digium.com
Mon May 30 22:31:07 CDT 2005


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

Modified Files:
      Tag: v1-0
	chan_zap.c 
Log Message:
set DNID on incoming calls (bug #4220)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.344.2.17
retrieving revision 1.344.2.18
diff -u -d -r1.344.2.17 -r1.344.2.18
--- chan_zap.c	19 May 2005 03:13:31 -0000	1.344.2.17
+++ chan_zap.c	31 May 2005 02:34:28 -0000	1.344.2.18
@@ -7612,6 +7612,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