[Freeswitch-users] How to add text outside P-Asserted-Identity

Adiseshu Channasamudhram csadi at hotmail.com
Tue Feb 15 17:59:24 UTC 2022


Hello Team

Am trying to add a text tag to the P-Asserted-Identity as below to make my app where the INVITE is coming from

<action application="export" data="sip_cid_type=none"/>
 <action application="export" data="sip_h_P-Asserted-Identity='TextTag';sip:${sip_P-Asserted-Identity}@${distributor(fidelity-site_p)};user=phone"/>

When I do the above, the TextTag is getting included within the P-Asserted-Identity and hence when the call is transferred, the carrier will reject saying it is Invalid P-Asserted-Identity

So - how can I add a TextTag to P-Asserted-Identity but outside .....

Currently it is adding as,

P-Asserted-Identity: <'TextTag';sip:+13333333333;oli=00 at 10.6.3.7:5060;user=phone>

How can i make the above as

P-Asserted-Identity: "TextTag" <sip:+13333333333;oli=00 at 10.6.3.7:5060;user=phone>

Thanks a lot in advance

Regards

Adi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220215/3e0873fa/attachment-0001.html>


More information about the FreeSWITCH-users mailing list