[Freeswitch-users] How does bridge work with sip_bye_h_X-?

Steven Ayre steveayre at gmail.com
Wed May 14 19:21:06 MSD 2014


Try:
http://wiki.freeswitch.org/wiki/Variable_sip_copy_custom_headers


On 14 May 2014 14:40, Grant Bagdasarian <GB at cm.nl> wrote:

> Hello,
>
>
>
> How do I export a custom header received in the BYE from the A Leg to the
> B Leg’s BYE?
>
>
>
> I have two Freeswitch servers which communicate directly with each other.
>
> The first originates a call (originate command) to the second FS server.
>
> The second FS server then bridges the call to its remote destination.
>
> This leaves 1 outbound leg on the first,  one incoming and one outgoing on
> the second.
>
>
>
> Once the call has been terminated by the first FS server. The BYE request
> contains the custom header.
>
> <action application="export"
> data="sip_bye_h_X-MyCustomHeader=MyCustomHeaderValue"/>. No problem here.
>
>
>
> The header X-MyCustomHeader is present in the A Leg of the second FS
> server, but  exporting this header to the B Leg doesn’t work.
>
> I tried:
>
> 1)      <action application="export" data="sip_bye_h_X-MyCustomHeader=${
> sip_bye_h_X-MyCustomHeader} "/>
>
> 2)      <action application="bridge" data="{sip_bye_h_X-MyCustomHeader=${
> sip_bye_h_X-MyCustomHeader} }sofia/internal/${
> destination_number}@192.168.1.1:5060"/>
>
>
>
> None of these two work.
>
>
>
> Does anyone have an idea how to do this?
>
> Also, is it possible to test if this header is present in the A Leg’s BYE
> message before exporting it to the B Leg?
>
>
>
> Kind regards,
>
>
>
> Grant Bagdasarian
>
> CM
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140514/c1f3c04e/attachment.html 


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