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@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Namens Weigel, Stefan
Verzonden: vrijdag 21 januari 2011 11:10
Aan: 'freeswitch-users@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@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