[Freeswitch-users] Remove custom SIP headers

Grant Bagdasarian GB at cm.nl
Mon Aug 26 10:35:24 MSD 2013


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130826/3bd98ae0/attachment.html 


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