<div dir="ltr"><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">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">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></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 4:47 PM, Joel White <span dir="ltr">&lt;<a href="mailto:joelewhite@gmail.com" target="_blank">joelewhite@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"><div dir="ltr">Sorry for the delay in response.  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 class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 1:56 PM, Stanislav Sinyagin <span dir="ltr">&lt;<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@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"><p dir="ltr">Probably your ITSP does not allow you to set the caller ID? Did you run a SIP packet trace to see what caller ID is sent out?</p>
<div class="gmail_quote"><span>On Nov 13, 2014 4:45 PM, &quot;Joel White&quot; &lt;<a href="mailto:joelewhite@gmail.com" target="_blank">joelewhite@gmail.com</a>&gt; wrote:<br type="attribution"></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr"><div><div>I have several installations of FreeSWITCH.  I have managed to get one to dynamically create the user directory from PostgreSQL and it properly sets the outbound caller id.  I have another system, very similar in how it was configured.  The second installation also dynamically generates the user directory from PostgreSQL as well.  I am however having an issue with setting the caller id on this other system.  I have went through with a fine tooth comb and am having a hard time locating the discrepancy between the two systems.<br><br></div>Has anyone had an issue similar to this?<br><br></div></div>
<br></span>_________________________________________________________________________<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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></blockquote></div>
<br>_________________________________________________________________________<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>