FROM/P-Asserted-Identity and anonymous
Grant Bagdasarian | CM.com
grant.bagdasarian at cm.com
Thu Jan 7 10:49:14 UTC 2021
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210107/b2be4a78/attachment.html>
More information about the FreeSWITCH-users
mailing list