<div dir="ltr">Most CNAM info is pulled from a database (or multiple databases) run by the various telcos using the ANI number passed as the search term.  This is usually the name the account is under.  Many of the telcos charge for each entry pulled from the database.  This is why you'll sometimes just see Cellular Caller or the state the call is coming from.  The receiving switch can be configured to use the CNAM sent by the caller, but I have yet to come across one on the PSTN.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- <br>Matt Brei<br>Network Security/IP Telephony Engineer<br><a href="mailto:mattbrei@gmail.com" target="_blank">mattbrei@gmail.com</a><br></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Feb 29, 2016 at 2:58 PM, Phil Mickelson <span dir="ltr"><<a href="mailto:phil@cbasoftware.com" target="_blank">phil@cbasoftware.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">Glad I could help with the number!  Unfortunately, I have no idea about the name.  Sorry.<span class="HOEnZb"><font color="#888888"><div><br></div><div>Phil Mickelson</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 29, 2016 at 3:56 PM, Tickling Contest <span dir="ltr"><<a href="mailto:tickling.contest@gmail.com" target="_blank">tickling.contest@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">Thank you for your quick response! It did help. I was trying callerId="SomeURLEncodedName" and it did not work.<div><br></div><div>This worked: </div><div><br></div><div>appArgs=externalCall&callerId="<a href="tel:2125551212" value="+12125551212" target="_blank">2125551212</a>"</div><div><br></div><div>and it shows the DID number in the PSTN callee @ incoming call time. Thank you!</div><div><br></div><div>But this did not work:</div><div><br></div><div>appArgs=externalCall&callerId="Johnny Boy <<a href="tel:2125551212" value="+12125551212" target="_blank">2125551212</a>>"<br></div><div><br></div><div>and neither did the body params based method in my original post above.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 29, 2016 at 3:42 PM, Phil Mickelson <span dir="ltr"><<a href="mailto:phil@cbasoftware.com" target="_blank">phil@cbasoftware.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 use the Node.js to access ARI but I think it's basically the same.  You'd use the option callerId instead of setting the variables value.  So, it might be something like:<div><br></div><div>appArgs=externalCall&callerId=<a href="tel:2125551212" value="+12125551212" target="_blank">2125551212</a>.</div><div><br></div><div>I've never tried to set the name, just the number.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>Phil Mickelson</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Feb 29, 2016 at 3:34 PM, Tickling Contest <span dir="ltr"><<a href="mailto:tickling.contest@gmail.com" target="_blank">tickling.contest@gmail.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 dir="ltr">Hello,<div><br></div><div>I am using Asterisk 13.6.0. Consider a caller "Johnny Boy" <100> who is connected as an endpoint to the Asterisk PBX. I wanted to know how to set up the caller ID on my ARI originate () REST API so I PSTN callees will see the caller ID "Johnny Boy" <<a href="tel:2125551212" value="+12125551212" target="_blank">2125551212</a>> on their screen (where <a href="tel:2125551212" value="+12125551212" target="_blank">2125551212</a> is the DID number granted by the SIP trunk for the PBX).</div><div><br></div><div>On extensions.conf, I could use dialplan application Set () and it works (that is, I see the correct name appearing on the PSTN callee):</div><div><div><br></div><div>exten => 200,1,Answer()</div><div>same  =>      n,Set(CALLERID(name)=Johnny Boy)</div><div>same  =>      n,Set(CALLERID(num)=<a href="tel:2125551212" value="+12125551212" target="_blank">2125551212</a>)</div><div>same  =>      n,Dial(PJSIP/<a href="tel:%2B18565551212" value="+18565551212" target="_blank">+18565551212</a>@siptrunk)</div><div>same  =>      n,Hangup()</div></div><div><br></div><div>But when I try something similar using ARI, I call originate() with query params like so (see <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-originate" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-originate</a>) :</div><div><br></div><div>?app=sillyARIApp&endpoint=PJSIP%2F%2B18565551212%40siptrunk&appArgs=externalCall<br></div><div><br></div><div>and per <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-originate" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-originate</a>, also provide body params like so:</div><div><br></div><div>{"variables" : { "CALLERID(name)": "Johnny Boy", "CALLERID(num)": "<a href="tel:2125551212" value="+12125551212" target="_blank">2125551212</a>" }}<br></div><div><br></div><div>Unfortunately, this does not work. What am I missing?</div><div><br></div><div>Any help is deeply appreciated.</div><div><br></div><div>Thanks!</div></div>
<br></div></div>_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
<br></blockquote></div><br></div>