----- Original Message -----
Sent: Friday, August 06, 2010 4:06
PM
Subject: Re: [Freeswitch-users]
destination_number question
I think you have seen the light! Remember that stacking
conditions results in a logical AND statement. Like you mentioned, using
alternation (that is, using the pipe) is how you do logical OR
statements.
-MC
Sent from my HTC on the Now Network from
Sprint!
I think I need to rest, drink and smoke
again....
what I neded was simply an expression like this
<condition field="destination_number"
expression="^(1|5|23|etc...\d{10,15})"/>
----- Original Message -----
Sent: Thursday, August 05, 2010 9:02
PM
Subject: Re: [Freeswitch-users]
destination_number question
You could but why? In your example the blahblah would
never get executed because there is no dest num that could possibly match
both conditions.
What are you trying to accomplish? Also, don't
forget that Darren did a great job of explaining this kind of thing in
chapter 8 of the FS book.
-MC
-
Sent from my HTC on the Now Network
from Sprint!
have some doubt
can I have destination_number stacked condition
like
<condition field="destination_number"
expression="^(1\d{10,15})"/>
<condition
field="destination_number" expression="^(54\d{10,14})">
blablablaa
</condition>
Thanks
----- Original Message -----
Sent: Thursday, August 05, 2010 2:00
PM
Subject: destination_number
question
and use
<condition field="destination_number"
expression="^(99999999})"/>
in dialplan it fails. I need to remove
the << ^ >>
and it works.
so I there any chars in front of the number in
destination_number variable
if I call from SIP phone ?
Thanks
Franck