Stefan,

I am not sure to understand the difference between your 2 trials.
In both cases, you say $1 is empty, so I am not sure what is working in test 2.
Also, you should tell us what number you call to test (500 or 600).

Finally, if you right a regexp, every () group you define will be used to populate $1, $2, etc...
So in:
^(500)$|^(600)$
$1 will contain 500 if you call 500 and then $2 will be empty
$1 will be empty and $2 will contain 600 if it matches

You should write:
^(500|600)$

David Ponzone  Direction Technique
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.




Le 21/01/2011 à 11:13, Weigel, Stefan a écrit :

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
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org