[Freeswitch-users] SIP REFER - URI Parameters

Brian West brian at freeswitch.org
Fri Mar 7 21:58:22 MSK 2014


I’ve pushed that patch, Thank you.
--
Brian West
brian at freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
Skype:briankwest
PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)













On Mar 7, 2014, at 9:23 AM, Phil Dunks <phil.dunks at netdev.co.uk> wrote:

> 
> Hi Anthony
> 
> 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.
> 
> However, I have solved my problem a different way.
> 
> I have written the parameters to a custom header, and then modified the dial plan on the conference nodes to look there instead.
> 
> I achieved this by adding the following code to sofia.c :: sofia_handle_sip_i_refer
> 
>             if (refer_to->r_url->url_params) {
>                 switch_channel_set_variable(b_channel, "sip_h_X-FS-Refer-Params", refer_to->r_url->url_params);
>             }
> 
> I put this at line 7702 (current master 09d66c7ae2c970f922226dfb72e66c0eb33c7d02), just before :
> 
> switch_ivr_session_transfer(b_session, exten, NULL, NULL);
> 
> Do you think this is an acceptable solution and would you consider committing it, or have you got a better idea?
> 
> Thanks
> 
> Phil
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140307/3b9506f1/attachment.bin 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list