<div dir="ltr">I have gone over the config with a fine tooth comb, it matches another 
config of a server in which the caller id works fine.  What I am seeing 
however is that in this system the variable is not exported to the 
dialplan.  I may be missing something, and most likely I am.  I do have a
 question though.  Is there a way to see what variables are defined for a
 particular user in the FreeSWITCH console?<br><br><br><div><div>Here is some output of the Lua script on the server not pushing caller id<br><br>2014-12-09 16:54:22.819251 [NOTICE] switch_cpp.cpp:1328 Debug from gen_dir_user_xml.lua, generated XML:<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>  &lt;section name=&quot;directory&quot;&gt;<br>    &lt;domain name=&quot;<a href="http://voip.net" target="_blank">voip.net</a>&quot;&gt;<br>      &lt;user id=&quot;26342&quot; mailbox=&quot;26342&quot;&gt;<br>        &lt;params&gt;<br>          &lt;param name=&quot;password&quot; value=&quot;XXXXXX&quot;/&gt;<br>          &lt;param name=&quot;vm-password&quot; value=&quot;26342&quot;/&gt;<br>          &lt;param name=&quot;vm-enabled&quot; value=&quot;true&quot;/&gt;<br>          &lt;param name=&quot;dial-string&quot; value=&quot;{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}&quot;/&gt;<br>    &lt;/params&gt;<br>        &lt;variables&gt;<br>          &lt;variable name=&quot;toll_allow&quot; value=&quot;local,domestic&quot;/&gt;<br>          &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>          &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;Michelle&quot;/&gt;<br>          &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;1321XXXXXXX&quot;/&gt;<br>      &lt;variable name=&quot;accountcode&quot; value=&quot;PA&quot;/&gt;<br>      &lt;!--&lt;variable name=&quot;callgroup&quot; value=&quot;techsupport&quot;/&gt;--&gt;<br>        &lt;/variables&gt;<br>      &lt;/user&gt;<br>    &lt;/domain&gt;<br>  &lt;/section&gt;<br>&lt;/document&gt;<br><br><br></div>And some output from the Lua script on the server with CID functioning<br><br>2014-12-09 21:50:55.458996 [NOTICE] switch_cpp.cpp:1328 Debug from gen_dir_user_xml.lua, generated XML:<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>  &lt;section name=&quot;directory&quot;&gt;<br>    &lt;domain name=&quot;<a href="http://sip.voice.com" target="_blank">sip.voice.com</a>&quot;&gt;<br>      &lt;user id=&quot;53201&quot; mailbox=&quot;53201&quot;&gt;<br>        &lt;params&gt;<br>          &lt;param name=&quot;password&quot; value=&quot;XXXXXXX&quot;/&gt;<br>          &lt;param name=&quot;vm-password&quot; value=&quot;53201&quot;/&gt;<br>          &lt;param name=&quot;dial-string&quot; value=&quot;{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}&quot;/&gt;<br>        &lt;/params&gt;<br>        &lt;variables&gt;<br>          &lt;variable name=&quot;toll_allow&quot; value=&quot;local,domestic&quot;/&gt;<br>          &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>          &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;Voice.com&quot;/&gt;<br>          &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;1303XXXXXX&quot;/&gt;<br>          &lt;!--&lt;variable name=&quot;callgroup&quot; value=&quot;techsupport&quot;/&gt;--&gt;<br>        &lt;/variables&gt;<br>      &lt;/user&gt;<br>    &lt;/domain&gt;<br>  &lt;/section&gt;<br>&lt;/document&gt;<br><br><br></div>Of
 course I removed any identifiable information, but it looks like the 
CID is being set.  What am I missing here that is not allowing for the 
variable to be passed to the dialplan?<br><br><br><div>This is what I get when the dialplan executes<br><br>EXECUTE sofia/internal/<a href="mailto:26342@voip.net" target="_blank">26342@voip.net</a> <br>set(effective_caller_id_number=)<br>2014-12-09 17:00:24.839237 [DEBUG] mod_dptools.c:1435 sofia/internal/<a href="mailto:26342@voip.net" target="_blank">26342@voip.net</a> SET [effective_caller_id_number]=[UNDEF]<br><br><br></div>Kinda
 strange and I could not find a discrepancy between the dialplan 
configuration of the working server vs the non-working server<br><br><br><br><div>Here is the version running on the server that works properly<br><br>FreeSWITCH Version 1.4.13+git~20141103T195300Z~b942d0faa8~64bit (git b942d0f 2014-11-03 19:53:00Z 64bit)<br><br></div>And the version of the server having issue with CID<br><br>FreeSWITCH Version 1.4.13+git~20141103T195300Z~<div dir="ltr">b942d0faa8~64bit (git b942d0f 2014-11-03 19:53:00Z 64bit)<br><br><br><br></div><div>I used diff and compared both servers conf directory recursively.  I could not find a discrepancy in the files aside from Switch name, etc.<br><br><br></div><div>What am I missing?<br><br></div><div>Could there be anything that that would overwrite the CID variable after it is set by Lua (Generating the user profile)?<br><br><br></div><br><br></div>