[Asterisk-cvs] asterisk/channels chan_sip.c,1.311,1.312

markster at lists.digium.com markster at lists.digium.com
Thu Mar 18 21:09:37 CST 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Populate DNID for SIP


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.311
retrieving revision 1.312
diff -u -d -r1.311 -r1.312
--- chan_sip.c	16 Mar 2004 17:07:51 -0000	1.311
+++ chan_sip.c	19 Mar 2004 02:04:45 -0000	1.312
@@ -1532,6 +1532,8 @@
 			tmp->callerid = strdup(i->callerid);
 		if (strlen(i->rdnis))
 			tmp->rdnis = strdup(i->rdnis);
+		if (strlen(i->exten) && strcmp(i->exten, "s"))
+			tmp->dnid = strdup(i->exten);
 		tmp->priority = 1;
 		if (strlen(i->domain)) {
 			pbx_builtin_setvar_helper(tmp, "SIPDOMAIN", i->domain);




More information about the svn-commits mailing list