Remove custom X headers in replies sent by the server
Hello, Is it possible to remove custom 'X' headers which are sent by the server to FreeSWITCH? I have the following call flow: Carrier ---> Load Balancer ----> FS(SBC) ----> SIP Proxy ----> FS (App Server) The SIP Proxy adds custom 'X' headers to the 200 OK received from the FS(App Server). The 200 OK is then sent back, with the custom headers, to the FS(SBC). Setting the variable: sip_copy_custom_headers, doesn't work. Is there a built-in function I could use, or another variable which can be set, so that the FS (SBC) removes all custom X headers for the responses? Thanks, Grant
Hi, if that didnt work, then try to remove your custom_headers one by one on the SBC FS in your dialplan like this example here: http://wiki.freeswitch.org/wiki/Strip_SIP_Headers 2013/12/3 Grant Bagdasarian <GB@cm.nl>
Hello,
Is it possible to remove custom ‘X’ headers which are sent by the server to FreeSWITCH?
I have the following call flow:
Carrier ---> Load Balancer ----> FS(SBC) ----> SIP Proxy ----> FS (App Server)
The SIP Proxy adds custom ‘X’ headers to the 200 OK received from the FS(App Server).
The 200 OK is then sent back, with the custom headers, to the FS(SBC).
Setting the variable: sip_copy_custom_headers, doesn’t work.
Is there a built-in function I could use, or another variable which can be set, so that the FS (SBC) removes all custom X headers for the responses?
Thanks,
Grant
_________________________________________________________________________ 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
-- Mit freundlichen Grüßen *Karsten Horsmann*
Hello, Thanks for the reply. I solved it by setting the sip_copy_custom_headers value to false in the bridge application: <action application="bridge" data="{sip_copy_custom_headers=false}sofia/outbound/${xfer_destination}@$${outbound_load_balancer_sip_ip}:$${outbound_load_balancer_sip_port}" /> At first I had set it above the bridge application, but that didn't work. Regards, Grant From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Karsten Horsmann Sent: Friday, December 6, 2013 11:06 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Remove custom X headers in replies sent by the server Hi, if that didnt work, then try to remove your custom_headers one by one on the SBC FS in your dialplan like this example here: http://wiki.freeswitch.org/wiki/Strip_SIP_Headers 2013/12/3 Grant Bagdasarian <GB@cm.nl<mailto:GB@cm.nl>> Hello, Is it possible to remove custom 'X' headers which are sent by the server to FreeSWITCH? I have the following call flow: Carrier ---> Load Balancer ----> FS(SBC) ----> SIP Proxy ----> FS (App Server) The SIP Proxy adds custom 'X' headers to the 200 OK received from the FS(App Server). The 200 OK is then sent back, with the custom headers, to the FS(SBC). Setting the variable: sip_copy_custom_headers, doesn't work. Is there a built-in function I could use, or another variable which can be set, so that the FS (SBC) removes all custom X headers for the responses? Thanks, Grant _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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 -- Mit freundlichen Grüßen *Karsten Horsmann*
participants (2)
-
Grant Bagdasarian
-
Karsten Horsmann