If you're setting the PAID manually using 'sip_h' then CID Type should be set to none, or you'll likely get the two PAID headers.


From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Adiseshu Channasamudhram <csadi@hotmail.com>
Sent: 07 February 2022 14:55
To: freeswitch-users@lists.freeswitch.org <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] (no subject)
 
Hello Freeswitch Team

Can one of you please let me know how i can copy the P-Asserted-Identity header from the incoming INVITE to the outgoing INVITE?
I did go through most of the articles but none of them helped. 

I have tried the below so far in my dialplan

 <action application="set" data="sip_h_P-Asserted-Identity=${sip_P-Asserted_Identity}"/>
 <action application="bridge" data="{sip_cid_type=pid}sofia/gateway/Mygateway/$1"/>
 <action application="bridge" data="{sip_cid_type=pid,origination_privacy=screen}sofia/internal/${destination_number}@${distributor(cust-site_p)}"/>


Thank you in advance

Regards,

Adi