[Freeswitch-users] Use the From instead of P-Asserted-Identity

igor.potjevlesch at gmail.com igor.potjevlesch at gmail.com
Wed Oct 30 15:05:23 UTC 2019


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 at gmail.com <igor.potjevlesch at gmail.com> 
Envoyé : mercredi 30 octobre 2019 13:20
À : 'FreeSWITCH Users Help' <freeswitch-users at 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 at lists.freeswitch.org
<mailto:freeswitch-users-bounces at lists.freeswitch.org> > De la part de
Marcel Haldemann
Envoyé : mercredi 30 octobre 2019 11:56
À : FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org
<mailto:freeswitch-users at 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 at lists.freeswitch.org
<mailto:freeswitch-users-bounces at lists.freeswitch.org> > Im Auftrag von
igor.potjevlesch at gmail.com <mailto:igor.potjevlesch at gmail.com> 
Gesendet: Mittwoch, 30. Oktober 2019 11:36
An: 'FreeSWITCH Users Help' <freeswitch-users at lists.freeswitch.org
<mailto:freeswitch-users at 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 at gmail.com <mailto:igor.potjevlesch at gmail.com>
<igor.potjevlesch at gmail.com <mailto:igor.potjevlesch at gmail.com> > 
Envoyé : lundi 28 octobre 2019 19:22
À : 'FreeSWITCH Users Help' <freeswitch-users at lists.freeswitch.org
<mailto:freeswitch-users at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20191030/db1f510e/attachment-0001.html>


More information about the FreeSWITCH-users mailing list