[asterisk-bugs] [JIRA] (ASTERISK-29095) 401 Unauthorized on every request

Yury Kirsanov (JIRA) noreply at issues.asterisk.org
Thu Sep 24 08:58:36 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252239#comment-252239 ] 

Yury Kirsanov commented on ASTERISK-29095:
------------------------------------------

Well, this looks like a bug to me as according to official Asterisk documentation when a valid Contact header is provided (it's valid, I've checked it thoroughly) and Expires: 0 header exists Asterisk shouldn't be asking for any additional authentication. Here's a cut from that document:

Procedure:

The UA sends a REGISTER request with a valid Contact header and with an Expires header of 0 to Asterisk for an endpoint & AOR defined in pjsip.conf.
Asterisk responds with a 200 OK
Pass Conditions:

Asterisk properly un-registers the contact
Asterisk responds with a 200 OK

> 401 Unauthorized on every request
> ---------------------------------
>
>                 Key: ASTERISK-29095
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29095
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 16.12.0, 16.13.0
>         Environment: Ubuntu 18.04.5 LTS
>            Reporter: Yury Kirsanov
>
> Hi,
> We have an Asterisk server that has PJSIP configured in TCP transport mode. As this is a test server - only one SIP endpoint created with AOR and AUTH sections. Authentication mode is set to "auth_username,username,ip,anonymous". I can register to the PBX fine with my softphone, but upon each request Asterisk for some reason asks for credentials, even for de-registration, which is important to me. According to Asterisk documentation:
> https://wiki.asterisk.org/wiki/display/AST/Tests+for+Registration+Functionality
> section 'Un-registration tests' it shouldn't be asking for credentials as user is already registered in system. Same applies to calls, after successful registration when softphone sends INVITE packet Asterisk first replies with 401 Unauthorized and after authentication processes the call ok. What could be an issue of such behaviour? Thanks!



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list