[Freeswitch-users] Remove Privacy: none Header in INVITE

Paul Cupis paul at cupis.co.uk
Fri Aug 3 14:24:13 MSD 2012

On Fri, Aug 03, 2012 at 11:09:24AM +0200, B.Tietz at pinguin.ag wrote:
> I have to send an INVITE with P-asserted-identity but without the Privacy: none header.
> Right now I use
> <action application="bridge" data="{sip_contact_user=12345,sip_cid_type=pid}sofia/gateway/gw1/..."/>
> Is there anything I can set/unset to get this!?

This requirement from your carrier(?) seems a little odd, but you can do it
"the hard way" with something like this:

  <action application="set" data="sip_cid_type=none"/>
  <action application="unset" data="sip_h_Privacy"/>
  <action application="unset" data="sip_h_P-Asserted-Identity"/>
  <action application="set" data="sip_h_P-Asserted-Identity=&quot;NAME&quot; <sip:NUMBER at IP_ADDRESS>"/>

I don't know an easier way to just say "send P-A-ID, but not Privacy".


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list