Failed to authenticate invite request

I’m migrating a very old asterisk to the latest version 20.x. Therefore I made a fresh restart with a new server and fresh ubuntu. I installed asterisk and tried to set up my old configuration with pjsip. I can register with my provider by everything I call mysql I get this error:

[Jun 17 14:52:51] NOTICE[3155]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'INVITE' from '<;user=phone>' failed for '10.PROVIDERIP:5060' (callid: - Failed to authenticate

Here is my pjsip configuration:

type = global
user_agent = Asterisk PBX
endpoint_identifier_order = ip,username

type = transport
protocol = udp
bind =

port = 5060

type = aor
contact =

type = identify
endpoint = myprovider
match = 10.PROVIDERIP
; match ip matches logs

type = auth
username = myprovider
password = mypassword

type = endpoint
context = incoming
dtmf_mode = rfc4733
disallow = all
allow = alaw
allow = ulaw
outbound_proxy = 10.PROVIDERID
direct_media = no
from_user = myusername
from_domain =
auth = myprovider
outbound_auth = myprovider
aors = myprovider

type = registration
retry_interval = 20
max_retries = 10
contact_user = myusername
expiration = 120
transport = transport_udp
outbound_auth = auth_reg_sip.myprovider
client_uri =
server_uri =

type = auth
password = myusername
username = mypassword

You have configured Asterisk to challenge incoming calls from your provider for authentication. Most providers won’t do this, so remove this line.

Thank you so much, it’s now working

This might be OK, but would be unusual. Most people expect loose routing, which would require \;lr appending. This would only affect outbound calls.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.