<div dir="ltr">On Thu, Mar 21, 2013 at 8:25 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">This regex looks perfectly fine to me. Also, it works fine in fs_cli:<br>
freeswitch@default&gt; regex 123|^\+?<a href="tel:%2812243336164" value="+12243336164" target="_blank">(12243336164</a>\|<a href="tel:12025551212" value="+12025551212" target="_blank">12025551212</a>)$</blockquote><div><br>
</div><div style>My bad.  It turns out I had the error pattern in a different file, which had this incorrect line:</div><div>    &lt;condition field=&quot;caller_id_number&quot; expression=&quot;^+12243336164$&quot;&gt;</div>
<div style>In that case, the + was not escaped, so it tried to repeat the start, which it can&#39;t.</div><div style>Condition deleted, problem solved.  Sorry to trouble you.</div><div style><br></div><div style>On Thu, Mar 21, 2013 at 9:38 PM, SS <span dir="ltr">&lt;<a href="mailto:8f27e956@gmail.com" target="_blank">8f27e956@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Is the problem not that you wrote,<br>field=&quot;caller_id_number&quot;<br>
<br>and shouldn&#39;t it be,<br>field=&quot;${caller_id_number}&quot;<br></blockquote><div><br></div><div style>It probably would work either way.  I just looked at the source, in mod_dialplan_xml.c, line 354, and found that if the field contains a dollar sign, then it is expanded and that is used to match the expression.  However, if it does not contain a dollar sign, then it fetches the data from a variable of that name.</div>
<div style><br></div><div style>That means that you can&#39;t put the name of a field in a channel variable and use that in the field parameter as a way of doing double-indirection (which would be a bad idea anyway).</div>
<div style><br></div><div style>-- </div><div style>Steve</div></div><div style><br></div><div style> </div></div></div></div>