<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><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br> <section name="directory"><br> <domain name="<a href="http://voip.net" target="_blank">voip.net</a>"><br> <user id="26342" mailbox="26342"><br> <params><br> <param name="password" value="XXXXXX"/><br> <param name="vm-password" value="26342"/><br> <param name="vm-enabled" value="true"/><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br> </params><br> <variables><br> <variable name="toll_allow" value="local,domestic"/><br> <variable name="user_context" value="default"/><br> <variable name="outbound_caller_id_name" value="Michelle"/><br> <variable name="outbound_caller_id_number" value="1321XXXXXXX"/><br> <variable name="accountcode" value="PA"/><br> <!--<variable name="callgroup" value="techsupport"/>--><br> </variables><br> </user><br> </domain><br> </section><br></document><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><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br> <section name="directory"><br> <domain name="<a href="http://sip.voice.com" target="_blank">sip.voice.com</a>"><br> <user id="53201" mailbox="53201"><br> <params><br> <param name="password" value="XXXXXXX"/><br> <param name="vm-password" value="53201"/><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br> </params><br> <variables><br> <variable name="toll_allow" value="local,domestic"/><br> <variable name="user_context" value="default"/><br> <variable name="outbound_caller_id_name" value="Voice.com"/><br> <variable name="outbound_caller_id_number" value="1303XXXXXX"/><br> <!--<variable name="callgroup" value="techsupport"/>--><br> </variables><br> </user><br> </domain><br> </section><br></document><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>