[Freeswitch-users] dialplan - expression matching and variable - 2nd try

Weigel, Stefan Stefan.Weigel at allianz-warranty.com
Fri Jan 21 13:13:12 MSK 2011


Hi all,

sorry for the first message, I hit the wrong keys an Outlook sent the message...once again:


why is the following not working:


  <condition field="destination_number" expression="^(500)$|^(600)$">
    <action application="set" data="dialed_number=$1"/> <-- $1 is empty

when using the above expression, $1 is empty.

If I do it like this


  <condition field="destination_number" expression="^(5\d\d)$|^(6\d\d)$">
    <action application="set" data="dialed_number=$1"/> <-- $1 is empty

It's working. I don't understand why.


Thanks in advance and best regards,

Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110121/b26d3748/attachment.html 


More information about the FreeSWITCH-users mailing list