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