Re: [Freeswitch-users] destination_number question
:) to be more precise it needs [] with OR <condition field="destination_number" expression="^([1|5|23|]\d{10,15})"/> Sent from my commodre 64 Franck ----- Original Message ----- From: msc@freeswitch.org To: Madovsky 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! ----- Reply message ----- From: "Madovsky" <infos@madovsky.org> Date: Thu, Aug 5, 2010 10:25 pm Subject: [Freeswitch-users] destination_number question To: <freeswitch-users@lists.freeswitch.org> 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 ----- From: msc@freeswitch.org To: Madovsky 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! ----- Reply message ----- From: "Madovsky" <infos@madovsky.org> Date: Thu, Aug 5, 2010 2:30 pm Subject: [Freeswitch-users] destination_number question To: <freeswitch-users@lists.freeswitch.org> 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 ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Thursday, August 05, 2010 2:00 PM Subject: destination_number question if I call from a sip phone for ex 99999999@mydomain 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
participants (1)
-
Madovsky