Hi,
I trying to Setup SIP trunks between Asterisk Servers. One is on chan_sip, the other with PJSIP.
On PJSIP side, got this error :
[Dec 31 16:37:30] NOTICE[4004724]: res_pjsip/pjsip_configuration.c:2526 ast_sip_retrieve_auths: Couldn’t find auth ‘Trunk-SIP-Centrex2’. Cannot authenticate
[Dec 31 16:37:30] WARNING[4004724]: res_pjsip_outbound_registration.c:840 handle_client_registration: Failed to set initial authentication credentials
[Dec 31 16:37:30] WARNING[4004724]: res_pjsip/pjsip_configuration.c:2552 ast_sip_retrieve_auths_vector: Auth object ‘Trunk-SIP-Centrex2’ could not be found
[Dec 31 16:37:30] WARNING[4004724]: res_pjsip_outbound_registration.c:1318 handle_registration_response: Failed to create authenticated REGISTER request to server ‘sip:217.X.X.X’ from client ‘sip:Trunk-SIP-Centrex2@217.X.X.X’
[Dec 31 16:37:30] WARNING[4004724]: res_pjsip_outbound_registration.c:1397 handle_registration_response: Fatal response ‘401’ received from ‘sip:217.X.X.X’ on registration attempt to ‘sip:Trunk-SIP-Centrex2@217.X.X.X’, stopping outbound registration
The configuration is :
[Trunk-SIP-Centrex2]
type=registration
outbound_auth=Trunk-SIP-Centrex2
server_uri=sip:217.X.X.X
client_uri=sip:Trunk-SIP-Centrex2@217.X.X.X
retry_interval=60[Trunk-SIP-Centrex2]
type=auth
auth_type=userpass
username=Trunk-SIP-Centrex2
password=MYPASSWORD[Trunk-SIP-Centrex2]
type=aor
contact=sip:217.X.X.X:5060[Trunk-SIP-Centrex2]
type=endpoint
context=External
disallow=all
allow=alaw
outbound_auth=Trunk-SIP-Centrex
aors=Trunk-SIP-Centrex2[Trunk-SIP-Centrex2]
type=identify
endpoint=Trunk-SIP-Centrex2
match=217.X.X.X
On the other side (CHAN_SIP) :
register=>Trunk-SIP-Centrex2:MYPASSWORD@217.Y.Y.Y
; Trunk vers Centrex2
[Trunk-SIP-Centrex2]
disallow=all
allow=alaw
allow=g729
allow=ulaw
directmedia=no
secret=MYPASSWORD
type=friend
host=dynamic
context=Trunk-SIP-Entreprise
call-limit=90
insecure=port,invite
Someone see where i’m wrong ?
Thanks for your help !