I don’t understand why this is happening.
[voipms]
type = registration
transport = simpletrans
outbound_auth = voipms
client_uri = sip:132688_test@toronto1.voip.ms:5060 ; (one of our multiple rvers, you can choose the one closer to your location)
server_uri = sip:toronto1.voip.ms:5060 ; (one of our multiple servers , you can choose the one closer to your location)
[voipms]
type = auth
auth_type = userpass
username = 132688_test ; (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
password = mypw ; your password
[voipms]
type = aor
contact = sip:132688_test@toronto1.voip.ms ; (one of our multiple servers, you can choose the one closer to your location)
[voipms]
type = endpoint
transport = simpletrans
context = union-123
disallow = all
allow = ulaw
; allow=g729 ; uncomment if you support g729
from_user = 132688_test ; (Replace with your 6 digit Main S User ID or Sub Account username, i.e. 123456 or 123456_sub)
auth = voipms
outbound_auth = voipms
aors = voipms
; NAT parameters:
rtp_symmetric = yes
rewrite_contact = yes
send_rpid = yes
;direct_media = no
[voipms]
type = identify
endpoint = voipms
match = toronto1.voip.ms ; (one of our multiple servers, you can choose the one closer to your location)
[atu-107]
type = registration
transport = simpletrans
outbound_auth = atu-107
client_uri = sip:132688_atu-107@toronto1.voip.ms:5060 ; (one of our multiple rvers, you can choose the one closer to your location)
server_uri = sip:toronto1.voip.ms:5060 ; (one of our multiple servers , you can choose the one closer to your location)
[atu-107]
type = auth
auth_type = userpass
username = 132688_atu-107 ; (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
password = mypw ; your password
[atu-107]
type = aor
contact = sip:132688_atu-107@toronto1.voip.ms ; (one of our multiple servers, you can choose the one closer to your location)
[atu-107]
type = endpoint
transport = simpletrans
context = atu-107
disallow = all
allow = ulaw
; allow=g729 ; uncomment if you support g729
from_user = 132688_atu-107 ; (Replace with your 6 digit Main S User ID or Sub Account username, i.e. 123456 or 123456_sub)
auth = atu-107
outbound_auth = atu-107
aors = atu-107
; NAT parameters:
rtp_symmetric = yes
rewrite_contact = yes
send_rpid = yes
;direct_media = no
[atu-107]
type = identify
endpoint = atu-107
match = toronto1.voip.ms ; (one of our multiple servers, you can choose the one closer to your location)
Can someone please help me. The first trunk works fine and I am able to place inbound calls. The second one shows an error on the cli whenever I try to place a call. I can’t for the life of me figure out why that’s the case, they both look the same to me.
This is the error: ] NOTICE[237926]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request ‘INVITE’ from ‘“BASIM JABBAR KH” sip:mynumber@158.85.70.148’ failed for ‘158.85.70.148:5060’ (callid: 1083aa2d0a667f6d04a5a00b652dbe03@158.85.70.148:5060) - Failed to authenticate