[Freeswitch-users] dialplan - expression matching and variable

Erik Dekkers erik.dekkers at wvds.nl
Fri Jan 21 17:14:30 MSK 2011


Regex should be:


<condition field="destination_number" expression="^(500|600)$">

Now it's saying: IF destination number is 500 OR 600. For more info on regular expressions see http://www.addedbytes.com/cheat-sheets/download/regular-expressions-cheat-sheet-v2.pdf

Regards,

Erik

Van: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] Namens Weigel, Stefan
Verzonden: vrijdag 21 januari 2011 11:10
Aan: 'freeswitch-users at lists.freeswitch.org'
Onderwerp: [Freeswitch-users] dialplan - expression matching and variable

Hi all,

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 following not working:



Stefan Weigel
Advanced IT-Professional
Tel.: +49 89 2000 48 975
Fax: +49 89 2000 48 566
eMail: Stefan.Weigel at allianz-warranty.com<mailto:Stefan.Weigel at allianz-warranty.com>
Allianz Automotive Services GmbH
Einsteinring 28
85609 Aschheim
Germany

http://www.allianz-warranty.com
Geschäftsführung: Andreas Rösing, Horst Ziegler
Amtsgericht München, HRB 175682
Für Umsatzsteuerzwecke: Ust-ID-Nr.: DE 262 617 720

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


More information about the FreeSWITCH-users mailing list