i have two asterisk servers version 16 and i want to send fax from server 1 to server 2. I created a sip trunk in asterisk server 1 :
[sip_provider_39]
type = endpoint
transport=0.0.0.0-udp
context=fax-tx
disallow=all
allow=ulaw
outbound_auth=sip_provider_39
aors=sip_provider_39
direct_media = no
t38_udptl = yes
t38_udptl_ec = none
t38_udptl_maxdatagram = 400
t38_udptl_nat = no
t38_udptl_ipv6 = no
[sip_provider_39]
type = aor
contact=sip:4010@192.168.1.26:5060
[sip_provider_39]
type = identify
endpoint = sip_provider_39
match= 192.168.1.26
[sip_provider_39]
type = auth
auth_type = userpass
username=4010
password=mypassword
[sip_provider_39]
type=registration
transport=0.0.0.0-udp
outbound_auth=sip_provider_39
retry_interval = 30
max_retries = 10
expiration = 30
contact_user = 4010
server_uri=sip:192.168.1.26
client_uri=sip:4010@192.168.1.26
retry_interval = 60
and in server 2 this is the extension 4010 :
[4010]
type=endpoint
transport=0.0.0.0-udp
context= incoming-fax
disallow=all
allow=alaw,ulaw
trust_id_outbound=yes
callerid=Spaceman Spiff <4010>
auth=auth_4010
aors=4010
[4010]
type=aor
max_contacts=2
remove_existing=yes
qualify_frequency=60
authenticate_qualify=no
[identify_4010]
type=identify
endpoint=4010
[auth_4010]
type=auth
auth_type=userpass
password=mypassword
username=4010
but when i send the fax i get this issue in asterisk 1cli:
[Apr 2 08:04:46] WARNING[23220]: res_pjsip_outbound_authenticator_digest.c:551 digest_create_request_with_auth: Endpoint: ‘sip_provider_39’: Authentication credentials not accepted by server.
and server 2 cli:
NOTICE[27027]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request ‘INVITE’ from ‘“Anonymous” sip:anonymous@anonymous.invalid’ failed for ‘192.168.1.8:5060’ (callid: 99834a4d-b245-47d3-adc6-20f5cb311d4d) - Failed to authenticate