<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Mar 15, 2015 at 1:33 PM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=sonny.rajagopalan@gmail.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">sonny.rajagopalan@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">Yes, I think the dial does get executed (sonny calling outbound 202-555-1212):<div><br></div><div><div>core set verbose 3</div><div>Console verbose was OFF and is now 3.</div><div> -- Executing [912025551212@from-internal:1] Log("PJSIP/sonny-00000031", "NOTICE, Dialing out from "" <sonny> to 12025551212 through fromgw") in new stack</div><div>[Mar 15 19:27:06] NOTICE[16648][C-00000022]: Ext. 912025551212:1 @ from-internal: Dialing out from "" <sonny> to 12025551212 through fromgw</div><div> -- Executing [912025551212@from-internal:2] Dial("PJSIP/sonny-00000031", "PJSIP/12025551212@sonnyGW1") in new stack</div><div> -- Called PJSIP/12025551212@sonnyGW1</div><div><br></div><div>the number 202-555-1212 does not ring.</div></div></div></blockquote><div><br></div><div>You're probably going to have to turn on debug for the pjsip endpoint with 'pjsip set logger host <server>' and look at the actual outbound INVITE and any response.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>at hangup on caller (sonny):</div><div><br></div><div> == Spawn extension (from-internal, 912025551212, 2) exited non-zero on 'PJSIP/sonny-00000031'</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 3:25 PM, George Joseph <span dir="ltr"><<a href="mailto:george.joseph@fairview5.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=george.joseph@fairview5.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">george.joseph@fairview5.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"><div class="gmail_extra"><div class="gmail_quote">On Sun, Mar 15, 2015 at 10:34 AM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=sonny.rajagopalan@gmail.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">sonny.rajagopalan@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">That was the issue, thanks. I now am able to get the caller ringing on an outbound call, but an external phone number (E164) I am dialing does not ring.</div></blockquote><div><br></div><div>Any error messages? If you set 'core set verbose 3' and try it, does the Dial get executed?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 12:19 PM, George Joseph <span dir="ltr"><<a href="mailto:george.joseph@fairview5.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=george.joseph@fairview5.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">george.joseph@fairview5.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"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 8:32 AM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=sonny.rajagopalan@gmail.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">sonny.rajagopalan@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 setup my Asterisk 13.1.0 server with PJSIP on AWS/EC2. My basic configuration works, and I am connected to a SIP trunk using <a href="http://SIP.US" target="_blank">SIP.US</a>, and have set up my inbound calling which works correctly (when I call my PBX DID, the call does come into my PBX network).<div><br></div><div>The issue is that I am not able to make outbound calls, because the call fails with the error: </div><div><br></div><div><div>res_pjsip_outbound_authenticator_digest.c:125 digest_create_request_with_auth: Unable to create request with auth.No auth credentials for any realms in challenge.<br></div></div><div><br></div><div>CLI> pjsip show endpoint sonnyGW1<br></div><div><div><br></div><div>... =========================================================================================<br></div><div><br></div><div> Endpoint: sonnyGW1 Not in use 0 of inf</div><div> OutAuth: sonnyGW1_auth/sonny </div><div> Aor: sonnyGW1 0</div><div> Contact: sonnyGW1/sip:<a href="http://65.254.44.194:5060" target="_blank">65.254.44.194:5060</a> Unknown nan</div><div> Transport: transport-udp udp 0 0 <a href="http://0.0.0.0:5060" target="_blank">0.0.0.0:5060</a></div><div> Identify: sonnyGW1/sonnyGW1</div><div> Match: <a href="http://65.254.44.194/32" target="_blank">65.254.44.194/32</a></div></div><div><br></div><div>My pjsip.conf is as below<br></div><div><br></div><div><div>[sonnyGW1]</div><div>type=registration</div><div>transport=transport-udp</div><div>outbound_auth=sonnyGW1_auth</div><div>server_uri=sip:<a href="http://gw1.sip.us" target="_blank">gw1.sip.us</a></div><div>client_uri=<a href="mailto:sip%3Asonny@gw1.sip.us" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=sip%3Asonny@gw1.sip.us&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">sip:sonny@gw1.sip.us</a></div><div>contact_user=sonny</div><div>retry_interval=60</div><div>forbidden_retry_interval=600</div><div>expiration=3600</div><div><br></div><div>[sonnyGW1_auth]</div><div>type=auth</div><div>auth_type=userpass</div><div>password=somepassword</div><div>username=sonny</div><div>realm=<a href="http://gw1.sip.us" target="_blank">gw1.sip.us</a></div></div></div></blockquote><div><br></div><div>You probably need to remove the 'realm' line so that it will match any realm in the challenge.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>[sonnyGW1]</div><div>type=aor</div><div>contact=sip:<a href="http://65.254.44.194:5060" target="_blank">65.254.44.194:5060</a></div><div><br></div><div>[sonnyGW1]</div><div>type=endpoint</div><div>transport=transport-udp</div><div>context=gateway1</div><div>allow=!all,ulaw</div><div>outbound_auth=sonnyGW1_auth</div><div>aors=sonnyGW1</div><div><br></div><div>[sonnyGW1]</div><div>type=identify</div><div>endpoint=sonnyGW1</div><div>match=65.254.44.194</div></div><div><br></div><div>My extensions.conf stub for the appropriate section looks like this (from <a href="https://wiki.asterisk.org/wiki/display/AST/Dialing+PJSIP+Channels" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Dialing+PJSIP+Channels</a>) :</div><div><br></div><div><div>exten => _9XXXX.,1,Log(NOTICE, Dialing out from ${CALLERID(all)} to ${EXTEN:1} through gateway1)</div><div>exten => _9XXXX.,n,Dial(PJSIP/${EXTEN:1}@sonnyGW1)</div><div>; Have also tried</div><div>; exten => _9XXXX.,n,Dial(PJSIP/sip:${<a>EXTEN:1}@65.254.44.194:5060</a>)</div><div>exten => _9XXXX.,n,Playtones(congestion)</div><div>exten => _9XXXX.,n,Hangup()</div></div><div><br></div><div>I do know that this code is being executed as I see the log in the first line above.</div><div><br></div><div>Have I correctly set up authentication for outbound calling?</div><div><br></div><div>Any help appreciated. Thanks!</div></div><span><font color="#888888"><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></font></span></blockquote></div><span><font color="#888888"><br></font></span></div></div><span><font color="#888888"><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></font></span></blockquote></div><span><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div></div><span class="HOEnZb"><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div></div>