<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><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->r_url->url_params) {</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> switch_channel_set_variable(b_channel, <span style="color: #d12f1b">"sip_h_X-FS-Refer-Params"</span>, refer_to->r_url->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="background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); font-family: sans-serif; font-size: 13px;">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 class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica';">Phil Dunks <<a href="mailto:phil.dunks@netdev.co.uk">phil.dunks@netdev.co.uk</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica';"><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:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica';">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:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica';"><a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br></span></div><br><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><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;"><include></div><div style="margin: 0px;"> <extension name="public_did"></div><div style="margin: 0px;"> <condition field="destination_number" expression="(\d+)"></div><div style="margin: 0px;"> <action application="set" data="proxy_media=true"/> <span class="Apple-tab-span" style="white-space: pre;">                </span></div><div style="margin: 0px;"> <action application="bridge" data="sofia/gateway/${distributor(load-balance ${sofia(profile external gwlist down)})}/$1"/></div><div style="margin: 0px;"> </condition></div><div style="margin: 0px;"> </extension></div><div style="margin: 0px;"></include></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 <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>><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 <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><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 <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><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"><<a href="mailto:phil.dunks@netdev.co.uk" target="_blank">phil.dunks@netdev.co.uk</a>></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; position: static; z-index: auto;"><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 <action application="deflect" data=“sip:<a href="mailto:1234@10.1.1.2" target="_blank">1234@10.1.1.2</a>;conf=xyz" /></div><div><br></div><div>In the REFER I can see the params :</div><div><br></div><div>Refer-To: <<a></a><a href="sip:1234@10.1.1.2;conf=xyz">sip:1234@10.1.1.2;conf=xyz</a>></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 class="HOEnZb"><font color="#888888"><div><br></div><div>Phil</div><div><br></div></font></span></div></blockquote></div></div></div></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; "><b><font class="Apple-style-span" face="Monaco"><br class="Apple-interchange-newline"><br></font></b></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; "><b><font class="Apple-style-span" 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 & Drum Web Meetings <br></span></b><b><span style="font-size: 7.5pt; font-family: Verdana, sans-serif; ">Office : +44 1273 936105 </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 : +44 7515 385465<br><u><span style="color: blue; "><a href="http://www.netdev.co.uk/" style="color: blue; text-decoration: underline; ">www.netdev.co.uk</a></span></u><span style="color: rgb(0, 0, 254); "><o:p></o:p></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; "><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); "><o:p></o:p></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><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); "><o:p> </o:p></span></div></span></div></span>
</div>
<br></body></html>