[Asterisk-cvs] asterisk/channels chan_sip.c,1.587,1.588

markster at lists.digium.com markster at lists.digium.com
Sat Dec 11 20:18:50 CST 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Expose SIP URI (bug #3017)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.587
retrieving revision 1.588
diff -u -d -r1.587 -r1.588
--- chan_sip.c	9 Dec 2004 14:54:13 -0000	1.587
+++ chan_sip.c	12 Dec 2004 01:15:54 -0000	1.588
@@ -2017,6 +2017,9 @@
 		if (!ast_strlen_zero(i->exten) && strcmp(i->exten, "s"))
 			tmp->cid.cid_dnid = strdup(i->exten);
 		tmp->priority = 1;
+		if (!ast_strlen_zero(i->uri)) {
+			pbx_builtin_setvar_helper(tmp, "SIPURI", i->uri);
+		}
 		if (!ast_strlen_zero(i->domain)) {
 			pbx_builtin_setvar_helper(tmp, "SIPDOMAIN", i->domain);
 		}




More information about the svn-commits mailing list