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
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
On Monday 07 February 2022 at 14:55:30, Adiseshu Channasamudhram wrote:
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?
<action application="set" data="sip_h_P-Asserted-Identity=${sip_P-Asserted_Identity}"/>
Do you not simply have a - vs. _ typo there? Antony. -- Most people have more than the average number of legs. Please reply to the list; please *don't* CC me.
We are using something like this: <action application="set" data="sip_h_Diversion=<sip:00123456789@10.0.0.1>"/> <action application="privacy" data="no"/> Br, Zvonimir From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Adiseshu Channasamudhram Sent: 07. veljače 2022. 14:56 To: 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 This communication is for informational purposes only. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Present message and any attached files may be or contain privileged information and is the property exclusive of ASSECO SEE CAPITAL GROUP. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. The information contained in this message is solely intended for the physical or legal person to whom it is addressed and to the authorized persons for receiving it. In the case you are not the intended recipient or the authorized person to receive this message, we inform that disclosure, duplicate, distribution or taking up any actions on information contained in this message are strictly forbidden and are under civil and legal responsibility. In case you received it by error, you are requested to notify the sender and to destroy the original e-mail message from your system. Opinions, conclusions or any other information contained into this message, which are not related to ASSECO SEE CAPITAL GROUP activity must not be understood to be expressed or should be endorsed by ASSECO SEE CAPITAL GROUP. The interpretation expressed in the present message did not reflect ASSECO SEE CAPITAL GROUP opinion.
Hi, that’s the way I do it: <extension name="PAI/PPI" continue="true"> <condition field="${sip_P-Asserted-Identity}" expression="^.+$"/> <condition field="${sip_P-Preferred-Identity}" expression="^$"> <!-- if PAI present and PPI NOT present: use PPI from FROM-Header —> <action application="export" data="sip_cid_type=none"/> <action application="export" data="sip_h_P-Asserted-Identity=sip:${sip_P-Asserted-Identity}@sbc;user=phone"/> <action application="export" data="sip_h_P-Preferred-Identity=sip:${sip_from_user}@sbc;user=phone“/> <!-- if both PAI and PPI present: copy to B-leg —> <anti-action application="export" data="sip_cid_type=none"/> <anti-action application="export" data="sip_h_P-Asserted-Identity=sip:${sip_P-Asserted-Identity}@sbc;user=phone"/> <anti-action application="export" data="sip_h_P-Preferred-Identity=sip:${caller_id_number}@sbc;user=phone"/> </condition> </extension> br Henning
Am 07.02.2022 um 14:55 schrieb Adiseshu Channasamudhram <csadi@hotmail.com>:
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 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
participants (5)
-
Adiseshu Channasamudhram
-
Antony Stone
-
Henning Heedfeld
-
Shaun Stokes
-
Zvonimir Bužanić