[Freeswitch-users] callee id inbound

Steven Schoch schoch+freeswitch.org at xwin32.com
Wed Mar 27 21:29:40 MSK 2013


On Wed, Mar 27, 2013 at 1:31 AM, Erwan Hermouet <ehermouet at bluetel.fr>wrote:

>     <condition field="destination_number"
> expression="^(10[01][0-9])$|^(12345)$">
>

The problem with that condition is you have 2 expressions in parenthesis.
 Thus, if the destination number is from 1000 to 1019, it will set $1 to
the number.  However, if the destination number is 12345, then it will set
$2 to that number, and leave $1 unset.

You can fix that problem by changing it to this:

    <condition field="destination_number"
expression="^(10[01][0-9]|12345)$">****

-- 
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130327/38cf081e/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list