[Freeswitch-users] Remove custom SIP headers

Karsten Horsmann khorsmann at gmail.com
Mon Aug 26 11:54:06 MSD 2013


Hi Grant,


IMHO there is no way dont copy the sip-x header to the new call-leg.

The simple way to resolve this, is to remove your kamailio sip-x headers
after you read it and before you create the b-leg.

http://wiki.freeswitch.org/wiki/Strip_SIP_Headers



2013/8/26 Grant Bagdasarian <GB at cm.nl>

> Hello,****
>
> ** **
>
> So I found this page which shows how to remove custom SIP headers by using
> the unset application and passing in the custom header name prefixed by
> sip_h_[HEADER].****
>
> Is there a configuration setting which can be set to disallow custom
> headers being copied when bridging calls? ****
>
> ** **
>
> The scenario is as following; ****
>
> **1)      **Each call is going through a Kamailio SIP Proxy first, which
> adds some custom headers.****
>
> **2)      **Kamailio routes the INVITE to one of our FS SBC’s.****
>
> **3)      **FS bridges the call to the carrier.****
>
> ** **
>
> When FS creates a new call leg towards the carrier, I would expect it to
> NOT copy the custom headers added by Kamailio, but it does. ****
>
> ** **
>
> This is my dialplan:****
>
> ** **
>
>     <extension name="internal_to_external">****
>
>       <condition field="${sip_req_host}" expression="^10\.0\.0\.1$">****
>
>         <action application="set" data="hangup_after_bridge=false"/>****
>
>         <action application="set" data="continue_on_fail=true"/>****
>
>         <action application="privacy" data="full"/>****
>
>         <action application="set" data="sip_h_Privacy=id"/>****
>
>         <action application="set" data="privacy=yes"/>****
>
>         <action application="bridge" data="sofia/external/${sip_req_uri}"/>
> ****
>
>       </condition>****
>
>     </extension>****
>
> ** **
>
> Did I configure something wrong, or is this just normal behavior?****
>
> _________________________________________________________________________
> 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
>
>


-- 
Mit freundlichen Grüßen
*Karsten Horsmann*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130826/8c7df53e/attachment.html 


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