[asterisk-users] 401 error

Joshua C. Colp jcolp at sangoma.com
Fri Mar 10 04:44:09 CST 2023


On Thu, Mar 9, 2023 at 10:43 PM Jerry Geis <jerry.geis at gmail.com> wrote:

> I have a SIP trunk - calls going out work fine.
>
> Trying to setup an incoming call with a DNIS
>
> When I dial the number - I see nothing on the CLI.
> The person says the server is returning 401
>
> How do I debug that. Using asterisk 18.8.0
>

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).

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230310/a4a4514c/attachment.html>


More information about the asterisk-users mailing list