VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
larclap at yahoo.com Guest
|
Posted: Wed Jun 17, 2009 12:11 pm Post subject: [Freeswitch-users] eavesdrop extension condition in default. |
|
|
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.
Log:
1030 Dialplan: sofia/internal/1009@192..168.10.29 ([email]sofia/internal/1009@192.168.10.29[/email]) parsing [default->eavesdrop] continue=false
1031 Dialplan: sofia/internal/1009@192..168.10.29 ([email]sofia/internal/1009@192.168.10.29[/email]) Regex (PASS) [eavesdrop] destination_number(8885819795) =~ /^88(.*)$|^\*0(.*)$/ break=on-false
1032 Dialplan: sofia/internal/1009@192..168.10.29 ([email]sofia/internal/1009@192.168.10.29[/email]) Action answer()
Thanks, Lars |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Wed Jun 17, 2009 12:27 pm Post subject: [Freeswitch-users] eavesdrop extension condition in default. |
|
|
On Wed, Jun 17, 2009 at 12:06 PM, Lars Zeb <larclap@yahoo.com (larclap@yahoo.com)> wrote:
Quote: |
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
|
|
Back to top |
|
|
larclap at yahoo.com Guest
|
Posted: Wed Jun 17, 2009 2:19 pm Post subject: [Freeswitch-users] eavesdrop extension condition in default. |
|
|
Michael,
The expression is part of version 13723 distribution in conf/dialplan/default.xml. Shouldn’t that be changed?
<extension name="eavesdrop">
<condition field="destination_number" expression="^88(.*)$|^\*0(.*)$">
<action application="answer"/>
<action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1)}"/>
</condition>
</extension>
Lars
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Wednesday, June 17, 2009 10:23 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] eavesdrop extension condition in default.xml?
On Wed, Jun 17, 2009 at 12:06 PM, Lars Zeb <larclap@yahoo.com (larclap@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
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Wed Jun 17, 2009 3:09 pm Post subject: [Freeswitch-users] eavesdrop extension condition in default. |
|
|
On Wed, Jun 17, 2009 at 2:09 PM, Lars Zeb <larclap@yahoo.com (larclap@yahoo.com)> wrote:
Quote: |
Michael,
The expression is part of version 13723 distribution in conf/dialplan/default.xml. Shouldn’t that be changed?
<extension name="eavesdrop">
<condition field="destination_number" expression="^88(.*)$|^\*0(.*)$">
<action application="answer"/>
<action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1)}"/>
</condition>
</extension>
|
Yes, it should be changed. What I'm saying is that the dialplan is matching on the regex expression "^88(.*)$" which will match your toll free numbers. In plain English it means that your dialplan is not correct somewhere. If you've got the new expression of "^88(\d{3,5})$" in your dialplan then that SHOULD work. Go double-check your dialplan and make sure that you don't have the wrong regex in there somewhere. Also, make sure that you reloadxml (or press F6) to make sure that your new changes are all properly loaded.
-MC
Quote: |
Lars
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Michael Collins
Sent: Wednesday, June 17, 2009 10:23 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] eavesdrop extension condition in default.xml?
On Wed, Jun 17, 2009 at 12:06 PM, Lars Zeb <larclap@yahoo.com (larclap@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
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|