Try: http://wiki.freeswitch.org/wiki/Variable_sip_copy_custom_headers On 14 May 2014 14:40, Grant Bagdasarian <GB@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org