Use the From instead of P-Asserted-Identity
Hello, I have a call scenario with From + P-Asserted-Identity. I would like to give precedence on From. I configured the caller-id-in-from to True for this gateway and force on leg B sip_cid_type to none in the dialplan. I have tried some others combinations, but each time the PAI is inserted into the From header on the leg B. Any idea of the right way to do this? Regards, Igor.
Hello, No one has an idea on that? Thanks. Regards, Igor. De : igor.potjevlesch@gmail.com <igor.potjevlesch@gmail.com> Envoyé : lundi 28 octobre 2019 19:22 À : 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org> Objet : Use the From instead of P-Asserted-Identity Hello, I have a call scenario with From + P-Asserted-Identity. I would like to give precedence on From. I configured the caller-id-in-from to True for this gateway and force on leg B sip_cid_type to none in the dialplan. I have tried some others combinations, but each time the PAI is inserted into the From header on the leg B. Any idea of the right way to do this? Regards, Igor.
What u can in the dialplan is ...: <action application="export" data="sip_cid_type=none"/> <action application="export" data="sip_from_uri=${sip_from_user}@${network_addr}"/> ... to overwrite the from uri of the b-leg with the from_uri from the a-leg, if this is waht u want. Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> Im Auftrag von igor.potjevlesch@gmail.com Gesendet: Mittwoch, 30. Oktober 2019 11:36 An: 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org> Betreff: Re: [Freeswitch-users] Use the From instead of P-Asserted-Identity Hello, No one has an idea on that? Thanks. Regards, Igor. De : igor.potjevlesch@gmail.com<mailto:igor.potjevlesch@gmail.com> <igor.potjevlesch@gmail.com<mailto:igor.potjevlesch@gmail.com>> Envoyé : lundi 28 octobre 2019 19:22 À : 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org<mailto:freeswitch-users@lists.freeswitch.org>> Objet : Use the From instead of P-Asserted-Identity Hello, I have a call scenario with From + P-Asserted-Identity. I would like to give precedence on From. I configured the caller-id-in-from to True for this gateway and force on leg B sip_cid_type to none in the dialplan. I have tried some others combinations, but each time the PAI is inserted into the From header on the leg B. Any idea of the right way to do this? Regards, Igor.
Hi Marcel, Thank you! I have an issue with that is that I'm doing some numbering plan manipulation later in the dialplan by working with a condition matching on caller_id_number field and then modifying the effective_caller_id. If I did this, these modifications are not applied. By the way, it's a good step because now I don't have the PAI on the leg B, only the From. Should I change caller-id-in-from to false? It's on true now for the leg A gateway. Regards, Igor. De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> De la part de Marcel Haldemann Envoyé : mercredi 30 octobre 2019 11:56 À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Objet : Re: [Freeswitch-users] Use the From instead of P-Asserted-Identity What u can in the dialplan is : <action application="export" data="sip_cid_type=none"/> <action application="export" data="sip_from_uri=${sip_from_user}@${network_addr}"/> to overwrite the from uri of the b-leg with the from_uri from the a-leg, if this is waht u want. Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> > Im Auftrag von igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> Gesendet: Mittwoch, 30. Oktober 2019 11:36 An: 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Betreff: Re: [Freeswitch-users] Use the From instead of P-Asserted-Identity Hello, No one has an idea on that? Thanks. Regards, Igor. De : igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> <igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> > Envoyé : lundi 28 octobre 2019 19:22 À : 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Objet : Use the From instead of P-Asserted-Identity Hello, I have a call scenario with From + P-Asserted-Identity. I would like to give precedence on From. I configured the caller-id-in-from to True for this gateway and force on leg B sip_cid_type to none in the dialplan. I have tried some others combinations, but each time the PAI is inserted into the From header on the leg B. Any idea of the right way to do this? Regards, Igor.
Hey, I finally use my existing conditions but instead of based them on "caller_id_number", I based them on ${sip_from_user}. So, now, with the existing regex, the effective_caller_id is derived of the sip_from_user instead of caller_id_number. It did the job. Thanks! Regards, Igor. De : igor.potjevlesch@gmail.com <igor.potjevlesch@gmail.com> Envoyé : mercredi 30 octobre 2019 13:20 À : 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org> Objet : RE: [Freeswitch-users] Use the From instead of P-Asserted-Identity Hi Marcel, Thank you! I have an issue with that is that I'm doing some numbering plan manipulation later in the dialplan by working with a condition matching on caller_id_number field and then modifying the effective_caller_id. If I did this, these modifications are not applied. By the way, it's a good step because now I don't have the PAI on the leg B, only the From. Should I change caller-id-in-from to false? It's on true now for the leg A gateway. Regards, Igor. De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> > De la part de Marcel Haldemann Envoyé : mercredi 30 octobre 2019 11:56 À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Objet : Re: [Freeswitch-users] Use the From instead of P-Asserted-Identity What u can in the dialplan is : <action application="export" data="sip_cid_type=none"/> <action application="export" data="sip_from_uri=${sip_from_user}@${network_addr}"/> to overwrite the from uri of the b-leg with the from_uri from the a-leg, if this is waht u want. Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> > Im Auftrag von igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> Gesendet: Mittwoch, 30. Oktober 2019 11:36 An: 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Betreff: Re: [Freeswitch-users] Use the From instead of P-Asserted-Identity Hello, No one has an idea on that? Thanks. Regards, Igor. De : igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> <igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> > Envoyé : lundi 28 octobre 2019 19:22 À : 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Objet : Use the From instead of P-Asserted-Identity Hello, I have a call scenario with From + P-Asserted-Identity. I would like to give precedence on From. I configured the caller-id-in-from to True for this gateway and force on leg B sip_cid_type to none in the dialplan. I have tried some others combinations, but each time the PAI is inserted into the From header on the leg B. Any idea of the right way to do this? Regards, Igor.
Hi Marcel, I have exactly the same problem. And yes, the issue with the dialplan solved it really. But is it really necessary to put it in the dialplan ? Is there no way to put it somehow in the gateway section ? best, Tamer On 10/30/19 11:55 AM, Marcel Haldemann wrote:
What u can in the dialplan is …:
<action application="export" data="sip_cid_type=none"/>
<action application="export" data="sip_from_uri=${sip_from_user}@${network_addr}"/>
… to overwrite the from uri of the b-leg with the from_uri from the a-leg, if this is waht u want.
*Von:*FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *Im Auftrag von *igor.potjevlesch@gmail.com *Gesendet:* Mittwoch, 30. Oktober 2019 11:36 *An:* 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org> *Betreff:* Re: [Freeswitch-users] Use the From instead of P-Asserted-Identity
Hello,
No one has an idea on that? Thanks.
Regards,
Igor.
*De :*igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com> <igor.potjevlesch@gmail.com <mailto:igor.potjevlesch@gmail.com>> *Envoyé :* lundi 28 octobre 2019 19:22 *À :* 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> *Objet :* Use the From instead of P-Asserted-Identity
Hello,
I have a call scenario with From + P-Asserted-Identity. I would like to give precedence on From. I configured the caller-id-in-from to True for this gateway and force on leg B sip_cid_type to none in the dialplan.
I have tried some others combinations, but each time the PAI is inserted into the From header on the leg B.
Any idea of the right way to do this?
Regards,
Igor.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire 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
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (3)
-
igor.potjevlesch@gmail.com
-
Marcel Haldemann
-
Tamer Higazi