<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If you're setting the PAID manually using '<span style="font-family:Calibri, Helvetica, sans-serif;background-color:rgb(255, 255, 255);display:inline !important">sip_h</span>' then CID Type should be set to none, or you'll likely get the two PAID headers.</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Adiseshu Channasamudhram <csadi@hotmail.com><br>
<b>Sent:</b> 07 February 2022 14:55<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> [Freeswitch-users] (no subject)</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">Hello Freeswitch Team</span>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">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?</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">I did go through most of the articles but none of them helped. </div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">I have tried the below so far in my dialplan</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"> <action application="set" data="sip_h_P-Asserted-Identity=${sip_P-Asserted_Identity}"/>
<div style="margin:0px"> <action application="bridge" data="{sip_cid_type=pid}sofia/gateway/Mygateway/$1"/></div>
 <action application="bridge" data="{sip_cid_type=pid,origination_privacy=screen}sofia/internal/${destination_number}@${distributor(cust-site_p)}"/><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">Thank you in advance</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">Regards,</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><br>
</div>
<span style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">Adi</span><br>
</div>
</div>
</body>
</html>