<div dir="ltr">Errr yeah, sorry Michael is right they&#39;re origination not effective :P<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 8:34 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.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 style="word-wrap:break-word"><span class="">you should be looking at the origination_caller_id_* vars, not effective</span><div><br><div><blockquote type="cite"><span class=""><div>On Dec 11, 2014, at 10:26 AM, Chris Tunbridge &lt;<a href="mailto:blasterjr@gmail.com" target="_blank">blasterjr@gmail.com</a>&gt; wrote:</div><br></span><div><div class="h5"><div><div dir="ltr"><div>The variable outbound_caller_id_number and outbound_caller_id_name are not related to the caller id on outbound calls.  <br><br>On your outbound dial plan you need to set something like the following<br><br>      &lt;action application=&quot;export&quot; data=&quot;effective_caller_id_name=${user_data(${username}@${domain_name} var outbound_caller_id_name)}&quot;/&gt;<br>      &lt;action application=&quot;export&quot; data=&quot;effective_caller_id_number=${user_data(${username}@${domain_name} var outbound_caller_id_number)}&quot;/&gt;<br><br></div><div>This will cause the system to pull the settings from the users profile and use it for the outgoing call.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 12:27 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">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;<a href="http://Voice.com" target="_blank">Voice.com</a>&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></div></div></blockquote></div></div></div></div></div></blockquote></div><br></div></div><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>
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">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>