<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6543">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><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;">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/6543">change 6543</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/6543"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I1dd4d6988eed1b6c98a9701e0e833a15ef0dac3e </div>
<div style="display:none"> Gerrit-Change-Number: 6543 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: David J. Pryke <david+extra.asterisk@pryke.us> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>