<div dir="ltr"><div><div><div>What I am getting on the FreeSWITCH side is this...<br><br></div>Name passes, but DID is set without @ IP<br><br></div>From: Test Phone 2 <1XXXYYYY><br><br></div>Call does go through, but not with the information I would like....<br>
<div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 7, 2014 at 12:13 PM, Joel E 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">I have been playing with this for a couple days.<br>
<br>
What I have pulls from the usr_preferences DB and "Should" insert CID Name and CID Number<br>
<br>
What I am ending up with is that the name portion is being sent, not the number.  Is there a certain format that I should add the DID in usr_preferences?<br>
<br>
Also when I changed the AVP type in the DB from a 0 to a 1 the value for CID DID changes...<br>
<br>
can someone help me with correcting this behavior?<br>
<br>
            avp_db_load("$from","$avp(s:<u></u>callerid-name)");<br>
            avp_db_load("$from","$avp(s:<u></u>caller-did)");<br>
uac_replace_from("$avp(s:<u></u>callerid-name)","$avp(s:<u></u>callerid-did)");<br>
            xlog("SIP From Header returned $hdr(From)\n");<br>
            xlog("AVP CallerID-Name returned $avp(s:callerid-name)\n");<br>
            xlog("AVP CallerID-Ext returned $avp(s:callerid-did)\n");<br>
<br>
<br>
Thank you,<br>
Joel<br>
<br>
---<br>
This email is free from viruses and malware because avast! Antivirus protection is active.<br>
<a href="http://www.avast.com" target="_blank">http://www.avast.com</a><br>
<br>
</blockquote></div><br></div>