<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 2:09 PM, Lars Zeb <span dir="ltr"><<a href="mailto:larclap@yahoo.com">larclap@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Michael,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">The expression
is part of version 13723 distribution in conf/dialplan/default.xml. Shouldn’t
that be changed?</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p style=""><span style="font-size: 9pt; font-family: "Courier New";"> <span style="color: rgb(0, 187, 187);"><extension </span><span style="color: rgb(0, 187, 0);">name</span>=<span style="color: rgb(187, 0, 0);">"eavesdrop"</span><span style="color: rgb(0, 187, 187);">></span><span style="background: black none repeat scroll 0% 0%; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></span></span></p>
<p style=""><span style="font-size: 9pt; font-family: "Courier New"; color: rgb(85, 85, 85);"> </span><span style="font-size: 9pt; font-family: "Courier New";"> <span style="color: rgb(0, 187, 187);"><condition </span><span style="color: rgb(0, 187, 0);">field</span>=<span style="color: rgb(187, 0, 0);">"destination_number"</span><span style="color: rgb(0, 187, 187);"> </span><span style="color: rgb(0, 187, 0);">expression</span>=<span style="color: rgb(187, 0, 0);">"^88(.*)$|^\*0(.*)$"</span><span style="color: rgb(0, 187, 187);">></span><span style="background: black none repeat scroll 0% 0%; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></span></span></p>
<p style=""><span style="font-size: 9pt; font-family: "Courier New"; color: rgb(85, 85, 85);"> </span><span style="font-size: 9pt; font-family: "Courier New";"> <span style="color: rgb(0, 187, 187);"><action </span><span style="color: rgb(0, 187, 0);">application</span>=<span style="color: rgb(187, 0, 0);">"answer"</span><span style="color: rgb(0, 187, 187);">/></span><span style="background: black none repeat scroll 0% 0%; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></span></span></p>
<p style=""><span style="font-size: 9pt; font-family: "Courier New"; color: rgb(85, 85, 85);"> </span><span style="font-size: 9pt; font-family: "Courier New";"> <span style="color: rgb(0, 187, 187);"><action </span><span style="color: rgb(0, 187, 0);">application</span>=<span style="color: rgb(187, 0, 0);">"eavesdrop"</span><span style="color: rgb(0, 187, 187);"> </span><span style="color: rgb(0, 187, 0);">data</span>=<span style="color: rgb(187, 0, 0);">"${hash(select/${domain_name}-spymap/$1)}"</span><span style="color: rgb(0, 187, 187);">/></span><span style="background: black none repeat scroll 0% 0%; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></span></span></p>
<p style=""><span style="font-size: 9pt; font-family: "Courier New"; color: rgb(85, 85, 85);"> </span><span style="font-size: 9pt; font-family: "Courier New";"> <span style="color: rgb(0, 187, 187);"></condition></span><span style="background: black none repeat scroll 0% 0%; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></span></span></p>
<p style=""><span style="font-size: 9pt; font-family: "Courier New";"> <span style="color: rgb(0, 187, 187);"></extension></span><span style="background: black none repeat scroll 0% 0%; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></span></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p></div></div></blockquote><div><br>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.<br>
<br>-MC <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Lars</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael
Collins<br>
<b>Sent:</b> Wednesday, June 17, 2009 10:23 AM<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] eavesdrop extension condition in
default.xml?</span></p>
</div><div><div></div><div class="h5">
<p> </p>
<p style="margin-bottom: 12pt;"> </p>
<div>
<p>On Wed, Jun 17, 2009 at 12:06 PM, Lars Zeb <<a href="mailto:larclap@yahoo.com" target="_blank">larclap@yahoo.com</a>> wrote:</p>
<div>
<div>
<p>In conf/dialplan/default.xml, the eavesdrop extension's condition is -
expression="^88(.*)$|^\*0(.*)$"></p>
<p> </p>
<p>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.</p>
<p> </p>
</div>
</div>
<div>
<p>Lars, <br>
"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.<br>
<br>
-MC</p>
</div>
<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;">
<div>
<div>
<p>Log:</p>
<p><span style="font-size: 9pt; font-family: "Courier New";">1030 Dialplan: <a href="mailto:sofia/internal/1009@192.168.10.29" target="_blank">sofia/internal/1009@192..168.10.29</a>
parsing [default->eavesdrop] continue=false</span></p>
<p><span style="font-size: 9pt; font-family: "Courier New";">1031 Dialplan: <a href="mailto:sofia/internal/1009@192.168.10.29" target="_blank">sofia/internal/1009@192..168.10.29</a>
Regex (PASS) [eavesdrop] destination_number(8885819795) =~ /^88(.*)$|^\*0(.*)$/
break=on-false</span></p>
<p><span style="font-size: 9pt; font-family: "Courier New";">1032 Dialplan: <a href="mailto:sofia/internal/1009@192.168.10.29" target="_blank">sofia/internal/1009@192..168.10.29</a>
Action answer()</span></p>
<p> </p>
<p>Thanks, Lars</p>
<p> </p>
</div>
</div>
<p style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p>
</blockquote>
</div>
<p> </p>
</div></div></div>
</div>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>