@User Hi, I am looking for help diagnosing what looks like a Vapi-side digest-auth bug on BYOSIP outbound.
Setup
- Carrier: Fayn.cz
- Vapi BYOSIP credential, provider byo-sip-trunk
- Gateway: sp.fayn.cz:5060 UDP, inboundEnabled: false, outboundEnabled: true
- outboundLeadingPlusEnabled: false (carrier requires E.164 without leading +)
- outboundAuthenticationPlan configured with authUsername + authPassword
* Symptom*
Every outbound call ends with:
call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required
Carrier never receives a usable Proxy-Authorization response. Reproduced across multiple days, multiple destinations (mobile
+ landline), with and without outboundLeadingPlusEnabled, with and without optionsPingEnabled, after carrier password reset. No change.
Troubleshooting
I built a raw Python SIP UDP client using the identical username and password that's in the Vapi credential and pointed it at the same gateway.
Results:
Step 1 — OPTIONS: 200 Alive.
Step 2 — REGISTER (round 2 with digest): 200 OK, registered, Contact accepted, expires 3060s.
Step 3 — INVITE to invalid destination (round 2 with digest): 100 Trying → 404 Not Found (= auth accepted, routing rejected
as expected).
Step 4 — INVITE to real destination (round 2 with digest): 100 Trying → 183 Session Progress → 180 Ringing — **phone actually
rang**.
*407 call IDs: *
- 019e21a3-ec60-7ddd-b7f1-4cb4da3e62db
- 019e2618-3a39-7000-ad64-4801cbca2285
- 019e31d0-bddc-7000-ab68-97dc1249f773
Do you have any pointers or ideas as to how to solve this or where the problem could be?