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

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


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yury Kirsanov updated ASTERISK-29095:
-------------------------------------

    Description: 
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!

  was:
Hi,
We have an Asterisk server that has PJSIP configured in UDP 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!


> 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