[Freeswitch-users] eavesdrop extension condition in default.xml?

Michael Collins msc at freeswitch.org
Wed Jun 17 10:22:46 PDT 2009


On Wed, Jun 17, 2009 at 12:06 PM, Lars Zeb <larclap at yahoo.com> wrote:

>  In conf/dialplan/default.xml, the eavesdrop extension's condition is -
> expression="^88(.*)$|^\*0(.*)$">
>
>
>
> Is this intended? I thought it was defined to eavesdrop on internal
> extensions. Why wouldn't it be something like -
> expression="^88(\d{3,5})$|^\*0(\d{3,5})$">? The way it is now, if I dial
> 888-555-1212 (rather than 1-888-555-1212), it goes into the eavesdrop
> extension.
>
>
>
Lars,
"8885551212" should never match regex  expression "^88(\d{3,5})$" . It looks
to me like your eavesdrop is matching on "^88(.*)$" which most definitely
WILL match 8885551212. Please check your dialplan's eavesdrop extension's
regex and make sure it is correct.

-MC

> Log:
>
> 1030 Dialplan: sofia/internal/1009 at 192..168.10.29<sofia/internal/1009 at 192.168.10.29>parsing [default->eavesdrop] continue=false
>
> 1031 Dialplan: sofia/internal/1009 at 192..168.10.29<sofia/internal/1009 at 192.168.10.29>Regex (PASS) [eavesdrop] destination_number(8885819795) =~
> /^88(.*)$|^\*0(.*)$/ break=on-false
>
> 1032 Dialplan: sofia/internal/1009 at 192..168.10.29<sofia/internal/1009 at 192.168.10.29>Action answer()
>
>
>
> Thanks, Lars
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090617/d982db85/attachment-0002.html 


More information about the FreeSWITCH-users mailing list