<div dir="ltr">Thank you for your assistance guys :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 12:31 PM, Joel White <span dir="ltr"><<a href="mailto:joelewhite@gmail.com" target="_blank">joelewhite@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I implemented the suggestion that Chris gave and it works fine.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Dec 15, 2014 at 11:48 AM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word">Double check configs and the sip traffic for differences. Also double check firmware on devices.<div><div><div><br><div><blockquote type="cite"><div>On Dec 15, 2014, at 1:13 AM, Joel White <<a href="mailto:joelewhite@gmail.com" target="_blank">joelewhite@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>I will implement this tomorrow. I do have a question though, with all that being said.... the system I have running in the cloud does send out the CID specified in the Database using this methodology. Why would it work on one and not the other when their configs are identical?<br><br></div>Just curious<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 1:51 PM, Chris Tunbridge <span dir="ltr"><<a href="mailto:blasterjr@gmail.com" target="_blank">blasterjr@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Errr yeah, sorry Michael is right they're origination not effective :P<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Dec 11, 2014 at 8:34 AM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></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 style="word-wrap:break-word"><span>you should be looking at the origination_caller_id_* vars, not effective</span><div><br><div><blockquote type="cite"><span><div>On Dec 11, 2014, at 10:26 AM, Chris Tunbridge <<a href="mailto:blasterjr@gmail.com" target="_blank">blasterjr@gmail.com</a>> wrote:</div><br></span><div><div><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> <action application="export" data="effective_caller_id_name=${user_data(${username}@${domain_name} var outbound_caller_id_name)}"/><br> <action application="export" data="effective_caller_id_number=${user_data(${username}@${domain_name} var outbound_caller_id_number)}"/><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"><<a href="mailto:joelewhite@gmail.com" target="_blank">joelewhite@gmail.com</a>></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><?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="<a href="http://voice.com/" target="_blank">Voice.com</a>"/><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></div></div></blockquote></div></div></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div><br></div></div></div></div><br></div></div><span class="">_________________________________________________________________________<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></span></blockquote></div></div>
</blockquote></div></div>