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 class="gmail_quote">On Fri, Mar 30, 2012 at 11:33 AM, DJB International <span dir="ltr">&lt;<a href="mailto:djbinter@gmail.com">djbinter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In general, caller_id_name and caller_id_number are read-only values.  In this case, if you want to set them for inline use purpose, you can set them to other variables like in_cid_name and in_cid_num, then you can call that variables by using it as {in_cid_name} and/or {in_cid_num} to run to dialplan matching later.<br>

<br>-djbinter<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Mar 30, 2012 at 3:27 AM, Brian Foster <span dir="ltr">&lt;<a href="mailto:bdfoster@endigotech.com" target="_blank">bdfoster@endigotech.com</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">
As the subject says, I&#39;m having issues setting the caller id name and number on an inbound call when doing some cleanups and a lookup. These dialplans are based on what information is listed for Mod_callcenter, and I have a feeling that they are wrong. I&#39;ll volunteer myself to change them if they are.<div>


<br></div><div>Alright, so here&#39;s the dialplan:</div><div><br></div><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;caller_id_number=$1&quot; inline=&quot;true&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;caller_id_name=$1&quot; inline=&quot;true&quot;/&gt;</div>


<div>      &lt;/condition&gt;</div><div>    &lt;/extension&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;^${caller_id_number}$|^$&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;cidlookup&quot; data=&quot;$1&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div><br></div><div>Call log here: <a href="http://pastebin.freeswitch.org/18786" target="_blank">http://pastebin.freeswitch.org/18786</a></div>


<div><br></div><div>I&#39;ve tried setting the effective_caller_id_(name/number) but no luck there. Is there something I&#39;m doing wrong here?</div><div><br></div><div>-BDF</div><span><font color="#888888"><div>
<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></font></span></div>
<br></div></div>_________________________________________________________________________<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></blockquote></div><br>
<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>
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"><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>