[Home]

Summary:ASTERISK-02962: adding SIPURI to predefined channel variables
Reporter:cherso (cherso)Labels:
Date Opened:2004-12-10 08:45:28.000-0600Date Closed:2008-01-15 15:16:22.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_sipuri.diff
Description:I use it to store the callid URI to a database. So I can recall them using direct sip call

--- chan_sip.old        2004-12-10 15:43:54.000000000 +0100
+++ chan_sip.c  2004-12-10 15:44:03.000000000 +0100
@@ -2026,6 +2026,9 @@
               if (!ast_strlen_zero(i->callid)) {
                       pbx_builtin_setvar_helper(tmp, "SIPCALLID", i->callid);
               }
+                if (!ast_strlen_zero(i->callid)) {
+                        pbx_builtin_setvar_helper(tmp, "SIPURI", i->uri);
+                }
               ast_setstate(tmp, state);
               if (state != AST_STATE_DOWN) {
                       if (ast_pbx_start(tmp)) {
Comments:By: Brian West (bkw918) 2004-12-10 11:39:29.000-0600

Attach the patch.... also disclaimer on file?


bkw

By: Brian West (bkw918) 2004-12-10 11:40:37.000-0600

if (!ast_strlen_zero(i->uri)) {  
  pbx_builtin_setvar_helper(tmp, "SIPURI", i->uri);
}

THis is correct... please correct your patch and attach the diff.

bkw

By: cherso (cherso) 2004-12-10 16:41:12.000-0600

ok done

By: Mark Spencer (markster) 2004-12-10 19:10:59.000-0600

Did you file a disclaimer?  If not, or if you don't have time, i can probably just implement it myself.

By: cherso (cherso) 2004-12-11 05:47:06.000-0600

yes please mark, I can't send the disclaimer right now.

By: Mark Spencer (markster) 2004-12-11 20:18:58.000-0600

Added to CVS.

By: Russell Bryant (russell) 2004-12-15 14:14:58.000-0600

not in 1.0

By: Digium Subversion (svnbot) 2008-01-15 15:16:22.000-0600

Repository: asterisk
Revision: 4432

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r4432 | markster | 2008-01-15 15:16:22 -0600 (Tue, 15 Jan 2008) | 2 lines

Expose SIP URI (bug ASTERISK-2962)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4432