Solution time!<div><br></div><div>&lt;!-- This is for cleaning up the CID and CNAM --&gt;</div><div><div><br></div><div>    &lt;extension name=&quot;cid_number_cleanup&quot; continue=&quot;true&quot;&gt;</div><div>      &lt;condition field=&quot;caller_id_number&quot; expression=&quot;^(?:\+)(\d+)$&quot;&gt;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=$1&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div><br></div><div>    &lt;extension name=&quot;cid_name_cleanup&quot; continue=&quot;true&quot;&gt;</div>
<div>      &lt;condition field=&quot;caller_id_name&quot; expression=&quot;^(?:\+)(\d+)$&quot;&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=$1&quot;/&gt;</div><div>      &lt;/condition&gt;</div>
<div>    &lt;/extension&gt;</div><div><br></div><div>&lt;!-- This is where we do the actual lookup. I give cidlookup 10 digits, I add a 1 if needed in cidlookup.conf.xml --&gt;</div><div><br></div><div>    &lt;extension name=&quot;cid_lookup-country_code_1&quot; continue=&quot;true&quot;&gt;</div>
<div>      &lt;condition field=&quot;${module_exists(mod_cidlookup)}&quot; expression=&quot;true&quot;/&gt;</div><div>      &lt;condition field=&quot;caller_id_name&quot; expression=&quot;^(?:\+)(\d+)$|^$&quot;/&gt;</div>
<div>      &lt;condition field=&quot;caller_id_number&quot; expression=&quot;^(?:\+1)?([2-9]\d\d[2-9]\d{6})$&quot;&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=${cidlookup $1}&quot;/&gt;</div>
<div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div><br></div><br><div class="gmail_quote">On Fri, Mar 30, 2012 at 4:06 PM, Brian Foster <span dir="ltr">&lt;<a href="mailto:bdfoster@endigotech.com">bdfoster@endigotech.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="http://pastebin.freeswitch.org/18791" target="_blank">http://pastebin.freeswitch.org/18791</a> &lt;&lt; Entire Call<div>
<br></div><div>It seems like a pretty common question, and there doesn&#39;t seem to be a good answer to just cleaning up the caller id and doing a lookup. Even the documentation on the wiki is wrong. To me, if anything, I&#39;d like to get something that&#39;s correct on the wiki in order to facilitate new users. I&#39;ve gotten this to work as well, and I don&#39;t remember having to go through much to get it working. I wonder if something has changed?</div>

<div><br></div><div>-BDF</div><div><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Mar 30, 2012 at 3:37 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
<br><br><div class="gmail_quote"><div>On Fri, Mar 30, 2012 at 12:20 PM, Brian Foster <span dir="ltr">&lt;<a href="mailto:bdfoster@endigotech.com" target="_blank">bdfoster@endigotech.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I need to change the caller_id_name and caller_id_number. I&#39;ve got ATA&#39;s that don&#39;t like the plus in front of the number. At the same time, I&#39;m doing a cidlooup, so that&#39;s going to have to be changed as well.<div>



<br></div><div>-BDF<br><br></div></blockquote></div><div><br>It looks like PB 18786 doesn&#39;t have very much information. I&#39;d recommend getting the whole call from start to finish, and get the SIP trace as well. Also, if you&#39;re creating a new leg with a bridge then you&#39;ll need to export effective_caller_id_number or set it in the {} in front of the dialstring. Lastly, be sure to use the <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#sip_cid_type" target="_blank">sip_cid_type</a> var to select which field has the caller ID info in it.  <br>

<font color="#888888">
<br>-MC<br></font></div></div>
<br></div></div><div class="im">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><div class="im"><br><br clear="all"><div><br></div>-- <br>Brian D. Foster<br>Endigo Computer LLC<br>Email: <a href="mailto:bdfoster@endigotech.com" target="_blank">bdfoster@endigotech.com</a><br>
Phone: <a href="tel:317-800-7876" value="+13178007876" target="_blank">317-800-7876</a><br>
Indianapolis, Indiana, USA<br><br>This message contains confidential information and is intended for those listed in the &quot;To:&quot;, &quot;CC:&quot;, and/or &quot;BCC:&quot; fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.<br>

<br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Brian D. Foster<br>Endigo Computer LLC<br>Email: <a href="mailto:bdfoster@endigotech.com" target="_blank">bdfoster@endigotech.com</a><br>Phone: 317-800-7876<br>
Indianapolis, Indiana, USA<br><br>This message contains confidential information and is intended for those listed in the &quot;To:&quot;, &quot;CC:&quot;, and/or &quot;BCC:&quot; fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.<br>
<br>
</div>