[Freeswitch-users] Diversion Header in Dialplan

Vallimamod Abdullah vma at vallimamod.org
Fri Nov 30 11:05:51 UTC 2018


Hi,

It is not clear what you are trying to achieve.
If you want to set the diversion header on the b-leg, you need to use the export application instead of set.
Also, you are using break-on-true, which requires a bridge call or an extension with continue=true to be useful.

If the export does not work, can you please post your full extension and the corresponding freeswitch debug log?


Best Regards,
-- 
Vallimamod Abdullah
SIP Solutions
vma at sipsolutions.fr
linkedin.com/in/vallimamod
.


> On 29 Nov 2018, at 17:44, Alexis DEVIN <adevin at legos.io> wrote:
> 
> Hello freeswitch users, 
>  
> I’m discovering freeswitch, and I want to understand how to extract and use the variable « sip_h_Diversion » in the Dialplan.
> I know this question has been asked more times in the mailing-list but I didn’t understand the issue of the diverse topic who evocate this variable.
> Also I read the information on the wiki but I wasn’t able to know what I have to do in my case.
>  
> In my Dialplan , I tried to put :
>  
> <condition break="on-true" expression="^(?:<sip:)?0(\d{9})((?:@.+)?)$" field="${sip_h_Diversion}">
>                 <action application="set" data="sip_h_Diversion=<sip:$1$2 <sip:$1$2>"/>
> </condition>
>  
> to apply a modification on the Diversion Header, but this condition is unrecognized.
> I hope someone could explain me, if I have to extract this variable before to use it and how to simply do it ?
>  
> Thanks,
> Bests Regards, 
> Alexis Devin

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


More information about the FreeSWITCH-users mailing list