<div dir="ltr">That&#39;s fine, submit it as a git diff to JIRA per our standard practice and it will surely get added.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 7, 2014 at 9:23 AM, Phil Dunks <span dir="ltr">&lt;<a href="mailto:phil.dunks@netdev.co.uk" target="_blank">phil.dunks@netdev.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>Hi Anthony</div><div><br></div><div>I have not been able to get the URI params from the the REFER message (Refer-To header), copied into the request URI of the INVITE.</div>
<div><br></div><div>However, I have solved my problem a different way.</div><div><br></div><div>I have written the parameters to a custom header, and then modified the dial plan on the conference nodes to look there instead.</div>
<div><br></div><div>I achieved this by adding the following code to sofia.c :: sofia_handle_sip_i_refer</div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">            <span style="color:#bb2ca2">if</span> (refer_to-&gt;r_url-&gt;url_params) {</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">                switch_channel_set_variable(b_channel, <span style="color:#d12f1b">&quot;sip_h_X-FS-Refer-Params&quot;</span>, refer_to-&gt;r_url-&gt;url_params);</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">            }</div></div><div><br></div><div>I put this at line 7702 (current master <span style="color:rgb(51,51,51);font-size:13px;font-family:sans-serif">09d66c7ae2c970f922226dfb72e66c0eb33c7d02</span>), just before :</div>
<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">switch_ivr_session_transfer(b_session, exten, <span style="color:#bb2ca2">NULL</span>, <span style="color:#bb2ca2">NULL</span>);</div></div><div>
<br></div><div>Do you think this is an acceptable solution and would you consider committing it, or have you got a better idea?</div><div><br></div><div>Thanks</div><div><br></div><div>Phil</div><div><br></div><div><br></div>
<div><br><div>Begin forwarded message:</div><br><blockquote type="cite"><div class=""><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:&#39;Helvetica&#39;;color:rgba(0,0,0,1.0)"><b>From: </b></span><span style="font-family:&#39;Helvetica&#39;">Phil Dunks &lt;<a href="mailto:phil.dunks@netdev.co.uk" target="_blank">phil.dunks@netdev.co.uk</a>&gt;<br>
</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:&#39;Helvetica&#39;;color:rgba(0,0,0,1.0)"><b>Subject: </b></span><span style="font-family:&#39;Helvetica&#39;"><b>Re: SIP REFER - URI Parameters</b><br>
</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:&#39;Helvetica&#39;;color:rgba(0,0,0,1.0)"><b>Date: </b></span><span style="font-family:&#39;Helvetica&#39;">3 March 2014 12:53:55 GMT<br>
</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:&#39;Helvetica&#39;;color:rgba(0,0,0,1.0)"><b>To: </b></span><span style="font-family:&#39;Helvetica&#39;"><a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
</span></div><br></div><div><div class="h5"><div><div style="word-wrap:break-word"><div style="margin:0px">Hi Anthony.</div><div style="margin:0px"><br></div><div style="margin:0px">Thanks for looking at this and exposing the sip_refer_to_params variable.</div>
<div style="margin:0px"><br></div><div style="margin:0px">I’ve updated to head, and can see the change in sofia.c.</div><div style="margin:0px"><br></div><div style="margin:0px">Sorry for being dense, but I’ve not had much luck getting the uri params from the REFER to the INVITE.</div>
<div style="margin:0px"><br></div><div style="margin:0px">My dial plan is very simple.</div><div style="margin:0px"><br></div><div style="margin:0px"><div style="margin:0px">&lt;include&gt;</div><div style="margin:0px"> &lt;extension name=&quot;public_did&quot;&gt;</div>
<div style="margin:0px">  &lt;condition field=&quot;destination_number&quot; expression=&quot;(\d+)&quot;&gt;</div><div style="margin:0px">    &lt;action application=&quot;set&quot; data=&quot;proxy_media=true&quot;/&gt;    <span style="white-space:pre-wrap">                </span></div>
<div style="margin:0px">    &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/${distributor(load-balance ${sofia(profile external gwlist down)})}/$1&quot;/&gt;</div><div style="margin:0px">   &lt;/condition&gt;</div>
<div style="margin:0px"> &lt;/extension&gt;</div><div style="margin:0px">&lt;/include&gt;</div><div><br></div><div>I tried appending ${sip_refer_to_params} to the bridge uri, but no luck. </div><div><br></div><div>It seems the REFER is handled by <span style="font-family:Menlo;font-size:11px">sofia_handle_sip_i_refer</span> in sofia.c which sets up a blind transfer.</div>
</div><div style="margin:0px"><br></div><div style="margin:0px">I’ve been staring at sofia.c all morning - but not worked out what I need to do.</div><div style="margin:0px"><br></div><div style="margin:0px">Please could you shed some light on how to proceed.</div>
<div style="margin:0px"><br></div><div style="margin:0px">Thanks again,</div><div style="margin:0px">Phil</div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px"><span style="font-family:Helvetica;color:rgb(127,127,127)"><b>From: </b></span><span style="font-family:Helvetica">Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;<br>
</span></div><div style="margin:0px"><span style="font-family:Helvetica;color:rgb(127,127,127)"><b>Subject: </b></span><span style="font-family:Helvetica"><b>Re: [Freeswitch-users] SIP REFER - URI Parameters</b><br></span></div>
<div style="margin:0px"><span style="font-family:Helvetica;color:rgb(127,127,127)"><b>Date: </b></span><span style="font-family:Helvetica">28 February 2014 19:15:11 GMT<br></span></div><div style="margin:0px"><span style="font-family:Helvetica;color:rgb(127,127,127)"><b>To: </b></span><span style="font-family:Helvetica">FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</span></div><div style="margin:0px"><span style="font-family:Helvetica;color:rgb(127,127,127)"><b>Reply-To: </b></span><span style="font-family:Helvetica">FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</span></div><br><br><div dir="ltr">Added a patch to expose sip_refer_to_params vars.  See latest HEAD.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 11:17 AM, Phil Dunks <span dir="ltr">&lt;<a href="mailto:phil.dunks@netdev.co.uk" target="_blank">phil.dunks@netdev.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Guys</div><div><br>
</div><div>I’m trying to use FS (1.5.8b from last week) as an SBC and load-balancer (using mod_distributor).</div><div><br></div><div>It is load balancing between several FS conference nodes.</div><div><br></div><div>It’s working a treat, apart from one scenario :</div>
<div><br></div><div>Say conference xyz is already running on conf-node-1.</div><div><br></div><div>Next incoming call is sent to conf-node-2, pin is collected, and conference xyz is identified as the required conference.</div>
<div><br></div><div>Conf-node-2 checks presence, and sees the conference is already running on conf-node-1, and does a deflect.</div><div><br></div><div>We add some query params to the refer-to URI to tell conf-node-1 not to collect the pin, but put the caller straight into the conference.</div>
<div><br></div><div>e.g &lt;action application=&quot;deflect&quot; data=“sip:<a href="mailto:1234@10.1.1.2" target="_blank">1234@10.1.1.2</a>;conf=xyz&quot; /&gt;</div><div><br></div><div>In the REFER I can see the params :</div>
<div><br></div><div>Refer-To: &lt;<a></a><a>sip:1234@10.1.1.2;conf=xyz</a>&gt;</div><div><br></div><div>But they are not present on the request URI or To header in the INVITE to conf-node-1.</div><div><br></div><div>So conf-node-1 requests the PIN again.</div>
<div><br></div><div>Is there any way I can pass this info to the other conference node by using the REFER?</div><div><br></div><div>Thanks for your help.</div><span><font color="#888888"><div><br></div><div>Phil</div><div>
<br></div></font></span></div></blockquote></div></div></div></div></div></div></blockquote></div><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Monaco;word-spacing:0px"><div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<span style="font-family:Verdana;font-size:12px"><b><font face="Monaco"><br><br></font></b></span></div><div class=""><div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:Verdana;font-size:12px"><b><font face="Monaco">Phil Dunks</font></b></span><b><span style="font-size:9pt;font-family:Verdana,sans-serif"><br>
</span></b><b><span style="font-size:7.5pt;font-family:Verdana,sans-serif;color:rgb(254,101,0)">Principal Engineer<br></span></b><b><span style="font-size:7.5pt;font-family:Verdana,sans-serif;color:rgb(127,127,127)">NetDev Ltd  &amp; Drum Web Meetings <br>
</span></b><b><span style="font-size:7.5pt;font-family:Verdana,sans-serif">Office : <a href="tel:%2B44%201273%20936105" value="+441273936105" target="_blank">+44 1273 936105</a>   </span></b></div><div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<b><span style="font-size:7.5pt;font-family:Verdana,sans-serif">Mobile : <a href="tel:%2B44%207515%20385465" value="+447515385465" target="_blank">+44 7515 385465</a><br><u><span style="color:blue"><a href="http://www.netdev.co.uk/" style="color:blue;text-decoration:underline" target="_blank">www.netdev.co.uk</a></span></u><span style="color:rgb(0,0,254)"><u></u><u></u></span></span></b></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><a href="http://www.thisisdrum.com/" style="color:blue;text-decoration:underline" target="_blank"><b><span style="font-size:7.5pt;font-family:Verdana,sans-serif">www.thisisdrum.com</span></b></a><b><span style="font-size:7.5pt;font-family:Verdana,sans-serif;color:rgb(0,0,254)"><u></u><u></u></span></b></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-size:7pt;font-family:Verdana,sans-serif;color:rgb(127,127,127)">Registered in England and Wales <br></span></b><span style="font-size:7pt;font-family:Verdana,sans-serif;color:rgb(127,127,127)">Company Number 04741258</span><u></u><u></u></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></div></div></span></div></span>
</div>
<br></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div>
<div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br>
</div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div></div>
</div>