<div dir="ltr"><div dir="ltr">On Thu, Mar 9, 2023 at 10:43 PM Jerry Geis <<a href="mailto:jerry.geis@gmail.com">jerry.geis@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><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></div></blockquote><div><br></div><div>There are two different SIP channel drivers. If using chan_sip then "sip set debug on" will show you the SIP traffic, if using chan_pjsip then "pjsip set logger on" will. After confirming it you then look at the configuration. You would need to ensure that you are matching the incoming traffic against either a peer for chan_sip (host= in a peer), or an endpoint in chan_pjsip (identify section). You'd also need to confirm that you haven't configured it to challenge those calls for authentication (insecure=very in chan_sip, and not having auth or inbound_auth set on endpoint in chan_pjsip).</div></div><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></div>