Phil, <br>I have a question about this line from your trace:<br><br><p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Regex (FAIL) [fix_cidnam_plus] caller_id_name(</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">) =~ /^\+1?([2-9]\d\d[2-9]\d{6})$/ break=on-false</font></span></p>
Are you thinking that "4435551212" should match the regex in extension "fix_cidnam_plus"? The reason I ask is that I think your regex may have a small gotcha. It looks to my like you are making the leading "1" optional by having "1?" in front of the rest of the regex. However, it looks to me like the "+" is not optional, so unless the phone number is "+4435551212" it won't match that regex. If the + is meant to be optional then the easy way to test would be to add a "?" right after the "+":<br>
<br><span style="font-family:courier new,monospace"><condition field="caller_id_name" expression="^\+?1?([2-9]\d\d[2-9]\d{6})$"></span><br><br>Of course, if you were banking on having the + in there then I'm all wet and you can ignore me...<br>
<br>-MC<br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 9:19 AM, Phil Quesinberry <span dir="ltr"><<a href="mailto:philq@qsystemsengineering.com" target="_blank">philq@qsystemsengineering.com</a>></span> wrote:<br>
<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">Ok, the prob</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">lem here is that the variable caller_id_name</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">contains the Caller ID number instead of the CNAM that was looked up. </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 the</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">re a</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> variable to look at and change</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">for the CNAM info? </font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">Info shows the CNAM info in Caller-Caller-ID-Name but attempts to match on va</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">riations of that have failed.</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Obviously I</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">m missing some basic piece of info here but</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">I haven</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 been able to find it, even within the FreeSwitch book.</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">I</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">ve pasted a small section of</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">the relevant console output below.</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">I should also mention that I</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">m doing this check within public.xml since I want it to apply to all incoming calls.</font></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"></span><span lang="en-us"><font color="#1F497D" face="Calibri">- Phil</font></span><span lang="en-us"></span><span lang="en-us"></span></p>
<br>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">2012-07-31 11:33:30.800571 [INFO] mod_dialplan_xml.c:485 Processing</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> <443</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">5551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">>->410</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">5551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> in context public</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> parsing [public->outside_call] continue=true</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Absolute Condition [outside_call]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Regex (PASS) [outside_call] ${module_exists(mod_cidlookup)}(true) =~ /true/ break=on-false</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Regex (PASS) [outside_call] caller_id_name(4435</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">) =~ /^44355</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">51212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">$|^$/ break=on-false</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Regex (PASS) [outside_call] caller_id_number(4435</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">) =~ /^1?([2-9]\d\d[2-9]\d{6})$/ break=on-false</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Action cidlookup(4435</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">)</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> parsing [public->fix_cidnam_plus] continue=true</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Regex (FAIL) [fix_cidnam_plus] caller_id_name(</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">) =~ /^\+1?([2-9]\d\d[2-9]\d{6})$/ break=on-false</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> parsing [public->currently_running] continue=true</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Absolute Condition [currently_running]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Action info()</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Dialplan: sofia/external/</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">@140.239</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">.xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"> Regex (FAIL) [currently_running]</font></span><span lang="en-us"></span><span lang="en-us"> <font color="#1F497D" face="Calibri">c</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">aller_</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">id</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">n</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">ame(</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri"><a href="tel:4435551212" value="+14435551212" target="_blank">4435551212</a></font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">) =~ /^Currently running a lookup/ break=on-false</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"><font color="#1F497D" face="Calibri">Caller-Direction: [inbound]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Caller-Username: [4435</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Caller-Dialplan: [XML]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Caller-Caller-ID-Name: [</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">SMITH,JOHN</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Caller-Caller-ID-Number: [4435</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Caller-Network-Addr: [140.239.</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">xx.x</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Caller-ANI: [4435</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">551212</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">]</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">Caller-Destination-Number: [410</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">55512</font></span><span lang="en-us"></span><span lang="en-us"><font color="#1F497D" face="Calibri">12]</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"><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 10:29 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"> RE: 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 color="#1F497D" face="Calibri">The reply is different each time, depending upon the number being looked up. So, I just want to look at the first part of the string. If FS can’t do a regex match without the trailing $, I’m guessing there’s a way to just do it in XML.</font></span></p>
<p dir="LTR"><span lang="en-us"><font color="#1F497D" face="Calibri">I’ll try and see what I can find after the storm passes unless you have a better idea, I need to shut this computer down right now.</font></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></p>
<p dir="LTR"><span lang="en-us"></span></p>
<p dir="LTR"><span lang="en-us"></span><span lang="en-us"><font face="Courier New">You can just not use a regex.</font></span></p>
<p dir="LTR"><span lang="en-us"><font face="Courier New">Do you need to escape the spaces?</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></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</font></span></p>
<p dir="LTR"><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 5:46 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"> RE: 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 color="#1F497D" face="Calibri">If you put the $ at the end then it will try to match the entire string instead of just the beginning of it, which won’t work in this case. Is there a way to match just the beginning of the string in FS?</font></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></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></p>
<p dir="LTR"><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><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>