<div dir="ltr">That's the extent of my vague memories of chan_sip then, someone else may be able to answer.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 10, 2023 at 11:05 AM Jerry Geis <<a href="mailto:jerry.geis@gmail.com">jerry.geis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 10, 2023 at 9:49 AM Jerry Geis <<a href="mailto:jerry.geis@gmail.com" target="_blank">jerry.geis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 9, 2023 at 9:42 PM Jerry Geis <<a href="mailto:jerry.geis@gmail.com" target="_blank">jerry.geis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have a SIP trunk - calls going out work fine.<div><br><div>Trying to setup an incoming call with a DNIS</div><div><br></div><div>When I dial the number - I see nothing on the CLI.</div><div>The person says the server is returning 401 </div><div><br></div><div>How do I debug that. Using asterisk 18.8.0</div><div><br></div><div>Thanks</div><div><br></div><div>Jerry</div></div></div></blockquote><div><br></div><div>Thanks I am using chan_sip. Turning on "sip set debug on" I do se it.</div><div><br></div><div><br></div><div><br></div><div>Using INVITE request as basis request - 0gQAAC8WAAACBAAALxYAAJJTfs5d3xOERBazRh4eM17uDp4m3CsM7ZnaEtaSRzwP@IP<br>Found peer 'JJ' for 'phone' from IP:5060<br><br><--- Reliably Transmitting (no NAT) to IP:5060 ---><br>SIP/2.0 401 Unauthorized^M<br>Via: SIP/2.0/UDP IP:5060;branch=z9hG4bK+13778ac6c6ac51ac853b3fb4a387e5b71+sip+3+ae5ab1a2;received=IP^M<br>From: "Caller" <sip:phone@IP:5060>;tag=IP+3+67d18b6f+9e6ad02d^M<br>To: <sip:Called-Number@dnsname>;tag=as128621a0^M<br>Call-ID: 0gQAAC8WAAACBAAALxYAAJJTfs5d3xOERBazRh4eM17uDp4m3CsM7ZnaEtaSRzwP@IP^M<br>CSeq: 503124310 INVITE^M<br>Server: Asterisk PBX 18.14.0^M<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE^M<br>Supported: replaces, timer^M<br>WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="6cbb5c2f"^M<br>Content-Length: 0^M<br></div><div> </div><div>I dont see a reason why it failed.</div><div>I tried nat=yes, made no difference.</div><div>I tried insecure=very, made no difference.</div><div><br></div><div>I do have:</div><div>externip=X</div><div>localnet=Y</div><div>localnet=Z </div><div>set in sip.conf</div><div><br></div><div>As I mentioned - I can call out over this SIP trunk.</div><div>What next ? </div><div>Jerry</div></div></div></blockquote><div><br></div><div><br></div><div>Just added insecure=very again, stopped and started.</div><div><br></div><br>[JJ]<br>type=friend<br>dtmfmode=rfc2833<br>secret=yes<br>username=NUMBER<br>defaultuser=NUMBER<br>disallow=all<br>allow=ulaw<br>allow=alaw<br>context=smvoice-incoming<br>host=dnsname<br>canreinvite=yes<br>qualify=yes</div><div class="gmail_quote">insecure=very</div><div class="gmail_quote"><br></div><div class="gmail_quote">Got the same 401.</div><div class="gmail_quote">Thanks</div><div class="gmail_quote"><br></div><div class="gmail_quote">Jerry<br><div> <br></div></div></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</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" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div>