<p>David J. Pryke has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6547">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip: Expose read-only access to the full SIP INVITE Request-URI<br><br>Provide a way to get the contents of the the Request URI from the initial SIP<br>INVITE in dial plan function call. (In this case "${CHANNEL(ruri)}")<br><br>ASTERISK-27278<br>Reported by: David J. Pryke<br>Tested by: David J. Pryke<br><br>Change-Id: I1dd4d6988eed1b6c98a9701e0e833a15ef0dac3e<br>---<br>M channels/sip/dialplan_functions.c<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/47/6547/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/sip/dialplan_functions.c b/channels/sip/dialplan_functions.c<br>index 59e841d..36d4ea9 100644<br>--- a/channels/sip/dialplan_functions.c<br>+++ b/channels/sip/dialplan_functions.c<br>@@ -41,6 +41,9 @@<br>          <enum name="uri"><br>                     <para>R/O Get the URI from the Contact: header.</para><br>            </enum><br>+                <enum name="ruri"><br>+                   <para>R/O Get the Request-URI from the INVITE header.</para><br>+             </enum><br>                 <enum name="useragent"><br>                       <para>R/O Get the useragent.</para><br>               </enum><br>@@ -162,6 +165,9 @@<br>            ast_copy_string(buf, p->from, buflen);<br>     } else if (!strcasecmp(args.param, "uri")) {<br>                ast_copy_string(buf, p->uri, buflen);<br>+     } else if (!strcasecmp(args.param, "ruri")) {<br>+              char *tmpruri = REQ_OFFSET_TO_STR(&p->initreq, rlpart2);<br>+              ast_copy_string(buf, tmpruri, buflen);<br>        } else if (!strcasecmp(args.param, "useragent")) {<br>          ast_copy_string(buf, p->useragent, buflen);<br>        } else if (!strcasecmp(args.param, "peername")) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6547">change 6547</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6547"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I1dd4d6988eed1b6c98a9701e0e833a15ef0dac3e </div>
<div style="display:none"> Gerrit-Change-Number: 6547 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: David J. Pryke <david+extra.asterisk@pryke.us> </div>