freeswitch-users at li... Guest
|
Posted: Thu Jan 07, 2021 2:16 pm Post subject: [Freeswitch-users] FROM/P-Asserted-Identity and anonymous |
|
|
------ Start of attached email. Subject: FROM/P-Asserted-Identity and anonymous ------
Hi,
I'm changing the value of the From URI, in the dialplan, based on whether the Privacy: id header is present. If it's present, the value of the From URI is set to sip:anonymous AT anonymous.invalid, else it is set to sip:PHONE_NUMBER AT X.X.X.X.
This works fine, but for some reason, during the bridging of the call using a gateway (with cid_type set to pid), Freeswitch sets the host part of the P-Asserted-Identity URI to anonymous.invalid (only during anonymous calls of course).
Is there a way to make Freeswitch leave the host part of the P-Asserted-Identity header alone and set it to its IP address, while still utilizing the cid_type variable?
Actual:
From: <sip:anonymous AT anonymous.invalid>
Privacy: id
P-Asserted-Identity: "1234" <sip:1234 AT anonymous.invalid>
Expected:
From: <sip:anonymous AT anonymous.invalid>
Privacy: id
P-Asserted-Identity: "1234" <sip:1234 AT X.X.X.X>
Removing the cid_type variable (or set to none), and inserting a P-Asserted-Identity header manually in the required format works fine.
Also, when using the cid_type=pid, is it possible to add the user=phone param to the P-Asserted-Identity URI? Or does this also require setting the header manually?
Regards,
Grant
------ End of attached email ------
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|