OVH Trunk settings

Hello everyone,

I am new to FreePBX (v17) and Asterisk (v22.8.2), and I am trying to configure a SIP trunk (provided by OVH).

I was able to configure the line on a softphone from my local network (the same network that my IPBX has access to, and it works).

OVH provides me with the following information:

Domain / Registrar

https://sip-domain.io

Outbound proxy

https://xxxxx-ovh-1.sip-proxy.io

I have tried almost every configuration I could find in FreePBX, playing with:
SIP Server, SIP Server Port, Outbound Proxy, From Domain, From User, Client URI, and Server URI, but I cannot get the status to show as REGISTERED.

I am probably missing a configuration step, but I have not found anything about configuring OVH with their new VoIP architecture.

Could you please help me?

Many thanks in advance,
Boris

Searching the forum I ran across a similar thread from a few years back. So maybe give this a look-see!

https://community.freepbx.org/t/freepbx-14-connection-with-ovh/73622/16

Hi,
Thank you very much for your response.

I looked at this discussion and I also saw some tutorials on the setup at the time, but it seems that adding the proxy is what is causing me problems.

Here are some of my logs, but I have the impression that it is the authentication that is not working.

<— Transmitting SIP request (621 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
REGISTER sip:xxxxxx-ovh-1.sip-proxy.io:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=zzzzzzzzzzzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
From: sip:[email protected];tag=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
To: sip:[email protected]
Call-ID: wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww
CSeq: 7200 REGISTER
Contact: sip:[email protected]:5060;line=auzlcqg
Expires: 3600
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, INFO, MESSAGE
Route: sip:sip-domain.io
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP response (352 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 100 Trying
Call-ID: wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww
CSeq: 7200 REGISTER
From: sip:[email protected];tag=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
To: sip:[email protected]
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;received=BBB.BBB.BBB.BBB;rport=5060;branch=zzzzzzzzzzzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
Content-Length: 0

<— Received SIP response (426 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 404 Domain not bound
Call-ID: wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww
CSeq: 7200 REGISTER
From: sip:[email protected];tag=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
To: sip:[email protected];tag=00-08184-0368ce3e-48097fac0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;received=BBB.BBB.BBB.BBB;rport=5060;branch=zzzzzzzzzzzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
Server: Cirpack/v4.88 (gw_sip)
Content-Length: 0

[2026-06-10 18:40:41] WARNING[1881]: res_pjsip_outbound_registration.c:1579 handle_registration_response: ‘404’ fatal response received from ‘sip:sip-domain.io’ on registration attempt to ‘sip:[email protected]’, retrying in ‘30’ seconds

Thank you very much,
Boris

When I see port 5060 I think the default for chan_sip, not chan_pjsip. As far as I’m aware chan_sip has been deprecated at the point of FreePBX v17, right?

Please try these settings:

Username: 0033123456789
Secret: (password provided by OVH)
SIP Server: sip-domain.io
Outbound Proxy: sip:xxxx-ovh-1.sip-proxy.io\;lr\;hide
From Domain: sip-domain.io
From User: (same as Username)

Note backslash semicolon in two places in Outbound Proxy.
If no luck, paste a new pjsip logger trace, but most importantly:

Post a screenshot of the relevant settings (mask personal info).

Hi,
Sorry for the late reply; I’m based in Europe.

Thank you for this lead. I tried to understand the difference between SIP and PJSIP, and it seems that one is the transport/signaling protocol while the other is an implementation/library that provides additional functionality, but I’m still not entirely sure I have understood it correctly.

I’m continuing to look into this topic, and I will also ask OVH whether it is possible to communicate using PJSIP with their SIP Trunk offering.

Thanks

I had assumed, based on your 00331xxxxxxxx example, that you are in Paris. I’m in the 6ème, possibly within spitting distance :wink:

SIP is a communication protocol, now used by almost all VoIP systems. Asterisk has had two drivers. The older one, chan_sip, is obsolete and not present in V22, so I assumed that you are using pjsip and the suggested settings are for a pjsip trunk.

Haha, indeed, I am in France, but my actual number starts with 00335.
I’m based in Toulouse :stuck_out_tongue:

Thank you very much for the clarification. If I understand correctly, PJSIP is therefore the library/driver used by Asterisk to communicate using the SIP protocol?

Here is a screenshot of the configuration that works with my softphone.

I changed the settings as you suggested. I no longer get the error message in the console.

However, when I try to place a call from an external number to an internal extension, I get the following errors, and the trunk status still does not change to “Registered”.

On the other hand, I can see on my OVH account that a session was successfully established when I applied the settings you recommended.

In parallel, here is the initial information I received from OVH support:

  • UDP session lifetime must be equal to or greater than 180 seconds

  • SIP ports to allow: 5060, 5080, and 5962 (UDP)

  • RTP port range to allow: 30000 to 40000 (UDP)

  • Disable the SIP ALG feature

Once again, thank you very much for your help.
Here my current FreePBX settings

Log:
<— Transmitting SIP request (460 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=zzzzzzzzzzzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
From: sip:[email protected];tag=wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
CSeq: 57512 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP response (380 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 200 OK
Call-ID: yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
CSeq: 57512 OPTIONS
From: sip:[email protected];tag=wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww
To: sip:[email protected];tag=00-32278-008d0fdc-0e74950d3
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;received=BBB.BBB.BBB.BBB;rport=5060;branch=zzzzzzzzzzzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
Content-Length: 0

<— Received SIP request (927 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185208 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 28
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3034
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-ZHYQ-0452821d-1fb67f7a
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799224 178116799224 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 DDD.DDD.DDD.DDD
t=0 0
m=audio 34928 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-ZHYQ-0452821d-1fb67f7a
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3034
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-ZHYQ-0452821d-1fb67f7a
CSeq: 59185208 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,opaque=“78078e773aa0b71e”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185208 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 28
To: sip:[email protected];user=phone;tag=z9hG4bK-ZHYQ-0452821d-1fb67f7a
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-ZHYQ-0452821d-1fb67f7a
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,uri=“sip:[email protected]:5060”,response=“d107e7a07ba576309443493cf4a68a33”,algorithm=MD5,opaque=“78078e773aa0b71e”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185210 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 27
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3035
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-WPLC-04528220-5cef7d4a
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799226 178116799226 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 EEE.EEE.EEE.EEE
t=0 0
m=audio 30862 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-WPLC-04528220-5cef7d4a
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3035
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-WPLC-04528220-5cef7d4a
CSeq: 59185210 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,opaque=“07a498be7310aad7”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185210 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 27
To: sip:[email protected];user=phone;tag=z9hG4bK-WPLC-04528220-5cef7d4a
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-WPLC-04528220-5cef7d4a
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,uri=“sip:[email protected]:5060”,response=“d107e7a07ba576309443493cf4a68a33”,algorithm=MD5,opaque=“07a498be7310aad7”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185212 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 26
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3036
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-HHON-04528221-0cc66133
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799227 178116799227 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 DDD.DDD.DDD.DDD
t=0 0
m=audio 33810 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-HHON-04528221-0cc66133
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3036
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-HHON-04528221-0cc66133
CSeq: 59185212 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,opaque=“0f86c21050c1c123”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185212 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 26
To: sip:[email protected];user=phone;tag=z9hG4bK-HHON-04528221-0cc66133
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-HHON-04528221-0cc66133
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,uri=“sip:[email protected]:5060”,response=“d107e7a07ba576309443493cf4a68a33”,algorithm=MD5,opaque=“0f86c21050c1c123”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185214 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 25
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3038
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-XOKL-04528223-3d449e6e
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799228 178116799228 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 DDD.DDD.DDD.DDD
t=0 0
m=audio 34070 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-XOKL-04528223-3d449e6e
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3038
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-XOKL-04528223-3d449e6e
CSeq: 59185214 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,opaque=“0d0dc26f6cf0a39b”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185214 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 25
To: sip:[email protected];user=phone;tag=z9hG4bK-XOKL-04528223-3d449e6e
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-XOKL-04528223-3d449e6e
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,uri=“sip:[email protected]:5060”,response=“d107e7a07ba576309443493cf4a68a33”,algorithm=MD5,opaque=“0d0dc26f6cf0a39b”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185215 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 24
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3039
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-UVWW-04528225-398afa68
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799229 178116799229 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 EEE.EEE.EEE.EEE
t=0 0
m=audio 33286 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:682 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - No matching endpoint found after 5 tries in 0.279 ms
[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-UVWW-04528225-398afa68
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3039
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-UVWW-04528225-398afa68
CSeq: 59185215 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,opaque=“45e5209e1730d33e”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185215 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 24
To: sip:[email protected];user=phone;tag=z9hG4bK-UVWW-04528225-398afa68
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-UVWW-04528225-398afa68
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,uri=“sip:[email protected]:5060”,response=“d107e7a07ba576309443493cf4a68a33”,algorithm=MD5,opaque=“45e5209e1730d33e”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185217 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 23
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3041
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-LBYY-0452822f-29abc9d8
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799230 178116799230 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 EEE.EEE.EEE.EEE
t=0 0
m=audio 33090 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:682 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - No matching endpoint found after 6 tries in 0.349 ms
[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-LBYY-0452822f-29abc9d8
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3041
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-LBYY-0452822f-29abc9d8
CSeq: 59185217 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,opaque=“50e1b6031530a953”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185217 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 23
To: sip:[email protected];user=phone;tag=z9hG4bK-LBYY-0452822f-29abc9d8
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-LBYY-0452822f-29abc9d8
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,uri=“sip:[email protected]:5060”,response=“d107e7a07ba576309443493cf4a68a33”,algorithm=MD5,opaque=“50e1b6031530a953”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185225 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 22
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3042
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-QNAO-04528231-7750bf46
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799233 178116799233 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 DDD.DDD.DDD.DDD
t=0 0
m=audio 37950 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:12] NOTICE[1881]: res_pjsip/pjsip_distributor.c:682 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - No matching endpoint found after 7 tries in 0.419 ms
[2026-06-11 10:53:13] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-QNAO-04528231-7750bf46
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3042
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-QNAO-04528231-7750bf46
CSeq: 59185225 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,opaque=“388609b858ed1516”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185225 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 22
To: sip:[email protected];user=phone;tag=z9hG4bK-QNAO-04528231-7750bf46
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-QNAO-04528231-7750bf46
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167992/7a9c23a6891fc706e5893d41912d8c23”,uri=“sip:[email protected]:5060”,response=“d107e7a07ba576309443493cf4a68a33”,algorithm=MD5,opaque=“388609b858ed1516”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185227 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 21
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3043
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-GMNH-04528239-226afef0
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799336 178116799336 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 EEE.EEE.EEE.EEE
t=0 0
m=audio 33438 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:13] NOTICE[1881]: res_pjsip/pjsip_distributor.c:682 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - No matching endpoint found after 8 tries in 0.489 ms
[2026-06-11 10:53:13] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-GMNH-04528239-226afef0
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3043
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-GMNH-04528239-226afef0
CSeq: 59185227 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167993/e8e41c6766be45dd1fede1852e3cb19b”,opaque=“780233bb2a32acf9”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185227 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 21
To: sip:[email protected];user=phone;tag=z9hG4bK-GMNH-04528239-226afef0
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-GMNH-04528239-226afef0
Content-Length: 0

<— Received SIP request (1154 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Authorization: Digest username=“anonymous”,realm=“asterisk”,nonce=“1781167993/e8e41c6766be45dd1fede1852e3cb19b”,uri=“sip:[email protected]:5060”,response=“2dfb18f72170a0db883bdc10af7ea978”,algorithm=MD5,opaque=“780233bb2a32acf9”
Call-ID: [email protected]
Contact: sip:AAA.AAA.AAA.AAA:5060
Content-Type: application/sdp
CSeq: 59185234 INVITE
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 20
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3044
To: sip:[email protected];user=phone
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-BIGQ-0452823d-340884e1
User-Agent: Cirpack/v4.88 (gw_sip)
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE,UPDATE
Content-Length: 295

v=0
o=anonymous 178116799340 178116799340 IN IP4 AAA.AAA.AAA.AAA
s=SIP Call
c=IN IP4 DDD.DDD.DDD.DDD
t=0 0
m=audio 35892 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

[2026-06-11 10:53:13] NOTICE[1881]: res_pjsip/pjsip_distributor.c:682 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - No matching endpoint found after 9 tries in 0.559 ms
[2026-06-11 10:53:13] NOTICE[1881]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘INVITE’ from ‘“De 09EXTPHONE” sip:[email protected];user=phone’ failed for ‘AAA.AAA.AAA.AAA:5060’ (callid: [email protected]) - Failed to authenticate
<— Transmitting SIP response (659 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;rport=5060;received=AAA.AAA.AAA.AAA;branch=z9hG4bK-BIGQ-0452823d-340884e1
Record-Route: sip:AAA.AAA.AAA.AAA:5060;transport=udp;lr;session=3044
Call-ID: [email protected]
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
To: sip:[email protected];user=phone;tag=z9hG4bK-BIGQ-0452823d-340884e1
CSeq: 59185234 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1781167993/e8e41c6766be45dd1fede1852e3cb19b”,opaque=“69eff8b05f74aa11”,algorithm=MD5,qop=“auth”
Server: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Received SIP request (404 bytes) from UDP:AAA.AAA.AAA.AAA:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Call-ID: [email protected]
CSeq: 59185234 ACK
From: “De 09EXTPHONE” sip:[email protected];user=phone;tag=27180-FP-03800d1e-359633bb3
Max-Forwards: 20
To: sip:[email protected];user=phone;tag=z9hG4bK-BIGQ-0452823d-340884e1
Via: SIP/2.0/UDP AAA.AAA.AAA.AAA:5060;branch=z9hG4bK-BIGQ-0452823d-340884e1
Content-Length: 0

<— Transmitting SIP request (460 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=z9hG4bKPjdf6cf1a4-86cf-41d6-a848-f5b8ed5101d3
From: sip:[email protected];tag=34cab7c2-0aea-4caf-b6c3-7d778df25e55
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 70f71385-3705-488f-a088-8f528c7b3de4
CSeq: 50317 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Transmitting SIP request (460 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=z9hG4bKPjdf6cf1a4-86cf-41d6-a848-f5b8ed5101d3
From: sip:[email protected];tag=34cab7c2-0aea-4caf-b6c3-7d778df25e55
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 70f71385-3705-488f-a088-8f528c7b3de4
CSeq: 50317 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Transmitting SIP request (460 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=z9hG4bKPjdf6cf1a4-86cf-41d6-a848-f5b8ed5101d3
From: sip:[email protected];tag=34cab7c2-0aea-4caf-b6c3-7d778df25e55
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 70f71385-3705-488f-a088-8f528c7b3de4
CSeq: 50317 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

== Endpoint OVH_SIP is now Unreachable
– Contact OVH_SIP/sip:[email protected]:5060 is now Unreachable. RTT: 0.000 msec
<— Transmitting SIP request (460 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=z9hG4bKPjdf6cf1a4-86cf-41d6-a848-f5b8ed5101d3
From: sip:[email protected];tag=34cab7c2-0aea-4caf-b6c3-7d778df25e55
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 70f71385-3705-488f-a088-8f528c7b3de4
CSeq: 50317 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Transmitting SIP request (460 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=z9hG4bKPjdf6cf1a4-86cf-41d6-a848-f5b8ed5101d3
From: sip:[email protected];tag=34cab7c2-0aea-4caf-b6c3-7d778df25e55
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 70f71385-3705-488f-a088-8f528c7b3de4
CSeq: 50317 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

<— Transmitting SIP request (460 bytes) to UDP:AAA.AAA.AAA.AAA:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP BBB.BBB.BBB.BBB:5060;rport;branch=z9hG4bKPjdf6cf1a4-86cf-41d6-a848-f5b8ed5101d3
From: sip:[email protected];tag=34cab7c2-0aea-4caf-b6c3-7d778df25e55
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 70f71385-3705-488f-a088-8f528c7b3de4
CSeq: 50317 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-17.0.28(22.8.2)
Content-Length: 0

I am puzzled – OVH knew the IP address to send the incoming call, so it must have been registered (at least at some point). What does Reports->Asterisk Info->Peers show for the trunk endpoint?

In any case, Asterisk attempted to authenticate the incoming call, which it shouldn’t have; it somehow didn’t recognize the trunk IP address. I have no idea why. Try these workarounds, in order:

  1. Set Match Inbound Authentication to Ip.
  2. Set Match Inbound Authentication to Auth Username and set Authentication to Both.
  3. Set Match Inbound Authentication to Ip and Set Match (Permit) to AAA.AAA.AAA.AAA

The last one is not a long term fix, because if OVH changes the IP address of their proxy, it will fail.

You need a Match/Permit setting that matches all possible values of AAA.AAA.AAA.AAA (and nothing else). Otherwise Asterisk has no way of working out where the request came from, as AAA.AAA.AAA.AAA obviously isn’t one of the addresses associated with your Server domain name setting. You will need to ask OVH from which address blocks they an originate calls incoming to you.

Makes sense, but I’m pretty sure that this used to be automatic, e.g., pjsip including the Outbound Proxy in the addresses that would match the trunk.

It’s not something that is done by chan_pjsip. If you want to match by address, you need an explicit type=identify section. It is FreePBX that defaults this to the server, and it doesn’t have the proxy in a form that can be directly used (and I think I did look at the code once, and noted that it didn’t use the outbound proxy).

Indeed, it may not be the cleanest solution, but option 3 works perfectly.

A big thank you to everyone for your help and support. Now that I have something that is starting to work, I’ll look into how to improve and make it more reliable.

Just to summarize in case someone else runs into the same issues:

The configuration shown in the screenshots works if you add “Match Inbound Authentication to IP” with the IP address of the OVH server.

Additionally, to make inbound routing based on the DID work correctly, I had to replace from-pstn with from-pstn-toheader in the SIP trunk configuration page (although this part is fairly well documented).

Hopefully this will help someone facing the same problem in the future :blush: