Hi,
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 '<sip:1234PHONE@sip.myprovider.com;user=phone>' failed for '10.PROVIDERIP:5060' (callid: ID@sip.myprovider.com) - Failed to authenticate
Here is my pjsip configuration:
[global]
type = global
user_agent = Asterisk PBX
endpoint_identifier_order = ip,username
[transport_udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
[myprovider]
port = 5060
[myprovider]
type = aor
contact = sip:123MYNUMBER@sip.myprovider.com:5060
[myprovider]
type = identify
endpoint = myprovider
match = 10.PROVIDERIP
; match ip matches logs
[myprovider]
type = auth
username = myprovider
password = mypassword
[myprovider]
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 = sip.myprovider.com
auth = myprovider
outbound_auth = myprovider
aors = myprovider
[reg_sip.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 = sip:myusername@sip.myprovider.com
server_uri = sip:sip.myprovider.com
[auth_reg_sip.myprovider]
type = auth
password = myusername
username = mypassword