<p>You can just not use a regex.</p>
<p>Do you need to escape the spaces?</p>
<p>Brian Foster<br>
Endigo Computer LLC</p>
<p>Sent from a mobile device.</p>
<div class="gmail_quote">On Jul 26, 2012 5:47 PM, "Phil Quesinberry" <<a href="mailto:philq@qsystemsengineering.com">philq@qsystemsengineering.com</a>> 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"></span><span lang="en-us"><font color="#1F497D" face="Calibri">If</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"></font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">you</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> put the $</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">at the end then it will</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">try to</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">match the entire string instead of just the beginning of it, which won</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">’</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">t work</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> in this case</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> </font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">I</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">s</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"></font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">there a way to match just the beginning of the string in</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">FS</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">?</font></span><span lang="en-us"></span><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Thanks,</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">- Phil</font></span><span lang="en-us"></span><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><font face="Courier New">You need a $ after 'lookup' for it to be a regex.</font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Courier New">Brian Foster</font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Courier New">Endigo Computer LLC</font></span></p>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><font face="Tahoma">_____________________________________________<br>
</font></span><span lang="en-us"><b></b></span><span lang="en-us"><b></b></span><span lang="en-us"><b><font face="Tahoma">From:</font></b></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><font face="Tahoma"> Phil Quesinberry<br>
</font></span><span lang="en-us"><b></b></span><span lang="en-us"><b></b></span><span lang="en-us"><b><font face="Tahoma">Sent:</font></b></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><font face="Tahoma"> Thursday, July 26, 2012 3:59 PM<br>
</font></span><span lang="en-us"><b></b></span><span lang="en-us"><b></b></span><span lang="en-us"><b><font face="Tahoma">To:</font></b></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><font face="Tahoma"> '<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>'<br>
</font></span><span lang="en-us"><b></b></span><span lang="en-us"><b></b></span><span lang="en-us"><b><font face="Tahoma">Subject:</font></b></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><font face="Tahoma"> Setting effecting_caller_id_name</font></span></p>
<p dir="LTR"><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri">And while I’m asking dumb questions…</font></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 you get a result of “Currently running a lookup for phone ‘xxxxxxxxxx’… on incoming calls, typically for wireless or other unknown name callers and I wanted to change that to “Wireless/Unknown” 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 “fix_cidnam_plus” entry, in other words after a CNAM lookup has been performed.</font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri"> <extension name="fix_currently_running" continue="true"></font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri"> <condition field="caller_id_name" expression="^Currently running a lookup"></font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri"> <action application="set" data="effective_caller_id_name=Wireless/Unknown"/></font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri"> </condition></font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri"> </extension></font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri">If I crafted my regex properly, then it should be matching on the first part of the string and setting the variable appropriately. Is ‘effective_caller_id_name’ the variable I should be setting?</font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Calibri">Many thanks,</font></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><span lang="en-us"><i></i></span><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><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"></span><span lang="en-us"><u></u></span><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><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>