<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Times New Roman","serif";
        color:#1F497D;}
..MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Michael,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>The expression
is part of version 13723 distribution in conf/dialplan/default.xml. Shouldn&#8217;t
that be changed?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; <span style='color:#00BBBB'>&lt;extension </span><span
style='color:#00BB00'>name</span>=<span style='color:#BB0000'>&quot;eavesdrop&quot;</span><span
style='color:#00BBBB'>&gt;</span><span style='color:black;background:black;
mso-highlight:black'><o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New";color:#555555'>&nbsp;</span><span style='font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:#00BBBB'>&lt;condition </span><span
style='color:#00BB00'>field</span>=<span style='color:#BB0000'>&quot;destination_number&quot;</span><span
style='color:#00BBBB'> </span><span style='color:#00BB00'>expression</span>=<span
style='color:#BB0000'>&quot;^88(.*)$|^\*0(.*)$&quot;</span><span
style='color:#00BBBB'>&gt;</span><span style='color:black;background:black;
mso-highlight:black'><o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New";color:#555555'>&nbsp;</span><span style='font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:#00BBBB'>&lt;action </span><span
style='color:#00BB00'>application</span>=<span style='color:#BB0000'>&quot;answer&quot;</span><span
style='color:#00BBBB'>/&gt;</span><span style='color:black;background:black;
mso-highlight:black'><o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New";color:#555555'>&nbsp;</span><span style='font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:#00BBBB'>&lt;action </span><span
style='color:#00BB00'>application</span>=<span style='color:#BB0000'>&quot;eavesdrop&quot;</span><span
style='color:#00BBBB'> </span><span style='color:#00BB00'>data</span>=<span
style='color:#BB0000'>&quot;${hash(select/${domain_name}-spymap/$1)}&quot;</span><span
style='color:#00BBBB'>/&gt;</span><span style='color:black;background:black;
mso-highlight:black'><o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New";color:#555555'>&nbsp;</span><span style='font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:#00BBBB'>&lt;/condition&gt;</span><span
style='color:black;background:black;mso-highlight:black'><o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; <span style='color:#00BBBB'>&lt;/extension&gt;</span><span
style='color:black;background:black;mso-highlight:black'><o:p></o:p></span></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Lars<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Michael
Collins<br>
<b>Sent:</b> Wednesday, June 17, 2009 10:23 AM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] eavesdrop extension condition in
default.xml?<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>On Wed, Jun 17, 2009 at 12:06 PM, Lars Zeb &lt;<a
href="mailto:larclap@yahoo.com">larclap@yahoo.com</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<p>In conf/dialplan/default.xml, the eavesdrop extension's condition is -
expression=&quot;^88(.*)$|^\*0(.*)$&quot;&gt;<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>Is this intended? I thought it was defined to eavesdrop on internal
extensions. Why wouldn't it be something like -
expression=&quot;^88(\d{3,5})$|^\*0(\d{3,5})$&quot;&gt;? The way it is now, if
I dial 888-555-1212 (rather than 1-888-555-1212), it goes into the eavesdrop
extension.<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal>Lars, <br>
&quot;8885551212&quot; should never match regex&nbsp; expression
&quot;^88(\d{3,5})$&quot; . It looks to me like your eavesdrop is matching on
&quot;^88(.*)$&quot; which most definitely WILL match 8885551212. Please check
your dialplan's eavesdrop extension's regex and make sure it is correct.<br>
<br>
-MC<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p>Log:<o:p></o:p></p>

<p><span style='font-size:9.0pt;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-&gt;eavesdrop] continue=false</span><o:p></o:p></p>

<p><span style='font-size:9.0pt;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><o:p></o:p></p>

<p><span style='font-size:9.0pt;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><o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>Thanks, Lars<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p>

</blockquote>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>