SIP - Failed to Authenticate

Hi All -

I am struggling to allow inbound calls from my GSM gateway to make it through. Outbound works fine. When I attempt an inbound call I receive “Failed to Authenticate” and a 401 Unauthorized SIP response. I would like the authentication to happen only by IP address and that is how I have configured using the Permit field. Despite this, I still receive the following response:

[2024-10-29 22:12:22] NOTICE[8868]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request ‘INVITE’ from ‘“+1XXXXXXXXXX” sip:+1XXXXXXXXXX@XXX.XXX.XXX.66’ failed for ‘XXX.XXX.XXX.110:5060’ (callid: baa56301d7e9955286d1c02badc62ad0@XXX.XXX.XXX.132) - Failed to authenticate
<— Transmitting SIP response (578 bytes) to UDP:XXX.XXX.XXX.110:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP XXX.XXX.XXX.132;rport=5060;received=XXX.XXX.XXX.110;branch=z9hG4bKdb7f2a52a60341313e1aa45e69eb1fa7
Call-ID: baa56301d7e9955286d1c02badc62ad0@XXX.XXX.XXX.132
From: “+1XXXXXXXXXX” sip:+17025047207@XXX.XXX.XXX.66;tag=371c1b9179fc601acd09debcab6d2118
To: sip:3@XXX.XXX.XXX.66;tag=z9hG4bKdb7f2a52a60341313e1aa45e69eb1fa7
CSeq: 1613055234 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1730239942/0be16cc846dda3f2132da06fca1da4f1”,opaque=“7d2817342db1024d”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.19.16(21.4.3)
Content-Length: 0

Any ideas? Please let me know if you need any additional information.

Your configuration is wrong. You have’t provided it, so we can’t look at it to work out what is wrong.

Check that you don’t have auth= set.

Are you using FreePBX?

This may be a clue: