<p>You need a $ after &#39;lookup&#39; for it to be a regex. </p>
<p>Brian Foster<br>
Endigo Computer LLC</p>
<p>Sent from a mobile device.</p>
<div class="gmail_quote">On Jul 26, 2012 4:01 PM, &quot;Phil Quesinberry&quot; &lt;<a href="mailto:philq@qsystemsengineering.com">philq@qsystemsengineering.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>






<div>


<p dir="LTR"><span lang="en-us"><font face="Calibri">And while I</font></span><span lang="en-us"><font face="Calibri">’</font></span><span lang="en-us"><font face="Calibri">m asking dumb questions</font></span><span lang="en-us"><font face="Calibri">…</font></span><span lang="en-us"></span></p>


<p dir="LTR"><span lang="en-us"><font face="Calibri">When doing CNAM dips from <a href="http://opencnam.com" target="_blank">opencnam.com</a>, often</font></span><span lang="en-us"> <font face="Calibri">you get a result of</font></span><span lang="en-us"> <font face="Calibri">“</font></span><span lang="en-us"><font face="Calibri">Currently running a lookup for phone</font></span><span lang="en-us"> <font face="Calibri">‘</font></span><span lang="en-us"><font face="Calibri">xxxxxxxxxx</font></span><span lang="en-us"><font face="Calibri">’…</font></span><span lang="en-us"><font face="Calibri"> on incoming calls</font></span><span lang="en-us"><font face="Calibri">, typically for wireless or other unknown name callers</font></span><span lang="en-us"><font face="Calibri"> and I wanted to change that to</font></span><span lang="en-us"> <font face="Calibri">“</font></span><span lang="en-us"><font face="Calibri">Wireless/Unknown</font></span><span lang="en-us"><font face="Calibri">”</font></span><span lang="en-us"><font face="Calibri">  Since caller_id_name is apparently read-only, I am attempting to set effective_caller_id_name.  I put the following in public.xml right below the</font></span><span lang="en-us"> <font face="Calibri">“</font></span><span lang="en-us"><font face="Calibri">fix_cidnam_plus</font></span><span lang="en-us"><font face="Calibri">”</font></span><span lang="en-us"><font face="Calibri"> entry, in other words after a CNAM lookup has been performed.</font></span><span lang="en-us"></span></p>


<p dir="LTR"><span lang="en-us"><font face="Calibri">   &lt;extension name=&quot;fix_currently_running&quot; continue=&quot;true&quot;&gt;</font></span></p>

<p dir="LTR"><span lang="en-us"><font face="Calibri">      &lt;condition field=&quot;caller_id_name&quot; expression=&quot;^Currently running a lookup&quot;&gt;</font></span></p>

<p dir="LTR"><span lang="en-us"><font face="Calibri">        &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=Wireless/Unknown&quot;/&gt;</font></span></p>

<p dir="LTR"><span lang="en-us"><font face="Calibri">      &lt;/condition&gt;</font></span></p>

<p dir="LTR"><span lang="en-us"><font face="Calibri">    &lt;/extension&gt;</font></span><span lang="en-us"></span></p>

<p dir="LTR"><span lang="en-us"><font face="Calibri">If I crafte</font></span><span lang="en-us"><font face="Calibri">d</font></span><span lang="en-us"><font face="Calibri"> my regex properly, then it should</font></span><span lang="en-us"> <font face="Calibri">be matching on the first part of the string and</font></span><span lang="en-us"> <font face="Calibri">setting the variable appropriately.  Is</font></span><span lang="en-us"> <font face="Calibri">‘</font></span><span lang="en-us"><font face="Calibri">effective_caller_id_name</font></span><span lang="en-us"><font face="Calibri">’</font></span><span lang="en-us"><font face="Calibri"> the variable I should be</font></span><span lang="en-us"> <font face="Calibri">setting?</font></span></p>


<p dir="LTR"><span lang="en-us"><font face="Calibri">Many thanks,</font></span><span lang="en-us"></span></p>

<p dir="LTR"><span lang="en-us"></span></p>

<p dir="LTR"><span lang="en-us"><i></i></span><span lang="en-us"><i></i></span><i><span lang="en-us"></span></i><i><span lang="en-us"><font face="Times New Roman">Phil Quesinberry</font></span></i><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"></span></p>


<p dir="LTR"><span lang="en-us"><font face="Arial">Q Systems Engineering, Inc.</font></span></p>

<p dir="LTR"><span lang="en-us"><font face="Arial">Electronic Controls and Embedded Systems Development</font></span></p>

<p dir="LTR"><span lang="en-us"><font face="Arial"><a href="tel:%28410%29%20969-8002" value="+14109698002" target="_blank">(410) 969-8002</a></font></span></p>

<p dir="LTR"><span lang="en-us"></span><a href="http://www.qsystemsengineering.com" target="_blank"><span lang="en-us"></span><span lang="en-us"><u></u></span><u><span lang="en-us"></span></u><u><span lang="en-us"><font color="#0000FF" face="Arial">http://www.qsystemsengineering.com</font></span></u><span lang="en-us"></span></a><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"></span></p>


<p dir="LTR"><span lang="en-us"></span></p>

</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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>