<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I think I need to rest, drink and smoke again....</FONT></DIV>
<DIV><FONT size=2>what I neded was simply an expression like this</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><condition field="destination_number"
expression="^(1|5|23|etc...\d{10,15})"/></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=msc@freeswitch.org
href="mailto:msc@freeswitch.org">msc@freeswitch.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=infos@madovsky.org
href="mailto:infos@madovsky.org">Madovsky</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 05, 2010 9:02
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users]
destination_number question</DIV>
<DIV><BR></DIV><BR>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. <BR><BR>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.<BR>-MC<BR>-<BR>Sent from my HTC on the Now Network from Sprint!<BR><BR>
<DIV id=htc_header>----- Reply message -----<BR>From: "Madovsky"
<infos@madovsky.org><BR>Date: Thu, Aug 5, 2010 2:30 pm<BR>Subject:
[Freeswitch-users] destination_number question<BR>To:
<freeswitch-users@lists.freeswitch.org><BR><BR></DIV>
<DIV><FONT size=2>have some doubt</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>can I have destination_number stacked condition
like</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> <condition field="destination_number"
expression="^(1\d{10,15})"/><BR> <condition
field="destination_number" expression="^(54\d{10,14})"></FONT></DIV>
<DIV><FONT size=2> blablablaa</FONT></DIV>
<DIV><FONT size=2> </condition></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=infos@madovsky.org href="mailto:infos@madovsky.org">Madovsky</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 05, 2010 2:00
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> destination_number
question</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>if I call from a sip phone for ex <A
href="mailto:99999999@mydomain">99999999@mydomain</A></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>and use </FONT></DIV>
<DIV><FONT size=1><B></B></FONT> </DIV>
<DIV><FONT size=1><B><</B>condition field=<B>"destination_number"</B>
expression=<B>"^(99999999})"/></B></FONT></DIV>
<DIV><FONT size=1><STRONG></STRONG></FONT> </DIV>
<DIV><FONT size=1><FONT size=2>in dialplan it fails. I need to remove
the << ^ >></FONT></DIV>
<DIV><FONT size=2>and it works.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>so I there any chars in front of the number in
destination_number variable</FONT></DIV>
<DIV><FONT size=2>if I call from SIP phone ?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Franck</FONT></DIV>
<DIV><BR></DIV></BLOCKQUOTE></BLOCKQUOTE><B></B></FONT></BODY></HTML>