Discussion:
[Freeswitch-users] Caller id in P-Asserted-Identity
mbo
2015-05-21 19:57:18 UTC
Permalink
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.invalid;user=phone;udp>
P-Asserted-Identity: <sip:+***@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:+***@IP-ADDRESS>;tag=K90ap6HBNQDtQ
Privacy: id
P-Asserted-Identity: "anonymous" <sip:+***@IP-ADDRESS>

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

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

or drop the P-Asserted-Identity field like:

From: <sip:***@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








_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Ítalo Rossi
2015-05-21 20:49:50 UTC
Permalink
https://wiki.freeswitch.org/wiki/Variable_sip_cid_type
Post by mbo
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
Privacy: header;user;id
When I bridge the call, in the INVITE which is sent to the remote server,
Privacy: id
;user=phone;udp>
Privacy: header;user;id
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
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Ítalo Rossi
Tomáš Boros
2015-05-22 08:02:07 UTC
Permalink
Or you can use:

effective_caller_id_number = anonymous
effective_caller_id_name = anonymous
and sip_from_uri=sip:***@anonymous.invalid

and of cource sip_cid_type

all the variables should be exported or placed in the {} of the bridge.

Thomas
Post by Ítalo Rossi
https://wiki.freeswitch.org/wiki/Variable_sip_cid_type
Our carrier sends us always the callerid in the
P-Asserted-Identity field in the SIP header. When a caller calls
Privacy: header;user;id
When I bridge the call, in the INVITE which is sent to the remote
Privacy: id
P-Asserted-Identity: "anonymous"
Privacy: header;user;id
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
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Ítalo Rossi
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Loading...