[Freeswitch-users] Caller id in P-Asserted-Identity

mbo mbodbg at gmx.net
Thu May 21 23:57:18 MSD 2015


Our carrier sends us always the callerid in the P-Asserted-Identity field in the SIP header. When a caller calls anonymous, in the INVITE the relevant fields in the header look like:

From: <sip:anonymous at anonymous.invalid;user=phone;udp>
P-Asserted-Identity: <sip:+PHONENUMBER at IPADDRESS>
Privacy: header;user;id

When I bridge the call, in the INVITE which is sent to the remote server, the relevant fields in the header look like: 

From: "anonymous" <sip:+PHONENUMBER at IP-ADDRESS>;tag=K90ap6HBNQDtQ
Privacy: id
P-Asserted-Identity: "anonymous" <sip:+PHONENUMBER at IP-ADDRESS>

But I fo not want to sent the callerid at all, so the fields should be set to:

From: <sip:anonymous at anonymous.invalid;user=phone;udp>
P-Asserted-Identity: "anonymous" <sip:+anonymous at anonymous.invalid;user=phone;udp>
Privacy: header;user;id

or drop the P-Asserted-Identity field like:

From: <sip:anonymous at anonymous.invalid;user=phone;udp>
Privacy: header;user;id

Which variables do I need to set before the call is bridged to archive this (I’m still using FS 1.2)

Thanks and Regards

Markus










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