[Freeswitch-users] Diversion Header in Dialplan

Alexey Sibyakin alex at freeswitch.com
Mon Dec 3 03:06:38 UTC 2018


Hello,

Try *info* dialplan application, it will help you to examine all the
channel variables. Also, Vanilla dialplan has a lot of examples of variable
manipulations.

Regards,

Alex

On Sat, Dec 1, 2018 at 2:31 AM Igor Potjevlesch <igor.potjevlesch at gmail.com>
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"/>
>
> </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,
> Igor
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com



-- 
Alex Sibyakin | Support Engineer
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: alex at freeswitch.com
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
Need commercial support? Contact sales at freeswitch.com for details.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181203/c6732381/attachment-0001.html>


More information about the FreeSWITCH-users mailing list