facing SIP/2.0 404 Not Found D40 Reason: Q.850;ca...
# ask-ai
o
facing SIP/2.0 404 Not Found D40 Reason: Q.850;cause=1;text="UNALLOCATED_NUMBER" when we send SIP INVITE from livekit to telnyx, for outbound calls. do you know how to debug? we made calls to a mint mobile esim as well as US zoom phone numbers.
t
Thanks for reaching out, Jaivarsan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're seeing a SIP 404 with Reason: Q.850;cause=1;text="UNALLOCATED_NUMBER" when LiveKit dials out to Telnyx — that means the terminating carrier (Telnyx or their upstream carrier) is reporting the destination number is not allocated/in service. I'll walk you through focused debugging steps. Which part of this would you like to start with: verifying numbers, checking LiveKit trunk/API params, or reviewing Telnyx call logs? Quick checklist to follow (run these in order): 1. Verify the destination numbers • Ensure numbers are in E.164 format (example:
+15105550100
) with no extra characters. • Confirm the Mint Mobile eSIM and the Zoom numbers are active by calling them from a regular mobile phone. 1. Test with a known-working number • Use
CreateSIPParticipant
to dial a number you know works (personal mobile). If that succeeds, the problem is with the original numbers or carrier routing. 1. Confirm LiveKit outbound trunk settings •
address
points to the correct SIP endpoint (e.g.,
sip.telnyx.com
). • Authentication credentials (username/password) for the trunk are correct. •
destination_country
or any region pinning settings match the destination if you use them. 1. Validate
CreateSIPParticipant
request fields •
sip_trunk_id
is the correct trunk ID. •
sip_call_to
is the target number in E.164 with no formatting characters. 1. Check Telnyx call logs and SIP traces • Review the Telnyx portal logs for the failed INVITE and the carrier response — this will show whether Telnyx sent the 404 or an upstream carrier did. • Save the full SIP trace (INVITE + responses) to share with Telnyx if needed. 1. If numbers are active but still failing • Provide the SIP INVITE and full SIP response (headers and body) from the Telnyx logs so we can inspect routing, Request-URI, and any called-party formatting issues. • Note the exact
sip_call_to
used,
sip_trunk_id
, and timestamp of the call attempts. If you want, paste: • one example
CreateSIPParticipant
request (redact secrets), • the SIP INVITE/response from Telnyx logs, • and a failed-call timestamp. I’ll review those and point out the exact field or routing issue to fix. Sources: SIP troubleshooting guide | LiveKit docs | Make outbound calls | LiveKit docs | Making outbound calls | LiveKit docs | Agents telephony integration | LiveKit docs | Create and configure a Plivo SIP trunk | LiveKit docs
o
this is the INVITE
Copy code
INVITE sip:+16462100273@us-sandbox-skit.sip.telnyx.com;transport=udp SIP/2.0
Via: SIP/2.0/UDP 161.115.181.28:9000;branch=z9hG4bK.00a4yZ7R7RJycRG1;alias
CSeq: 2 INVITE
Call-ID: SFesU3bN2x9GJCDJkg2YKMGr5AW
Content-Length: 290
To: sip:+16462100273@us-sandbox-skit.sip.telnyx.com;transport=udp
From: "+12024280408" sip:+12024280408@5zhkj90x7t9.sip.livekit.cloud:9000;transport=udp;tag=SCL_o69UEHhPU3jW
Contact: sip:161.115.181.28:9000;transport=udp
Content-Type: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Proxy-Authorization: Digest username="skitussandbox", realm="us-sandbox-skit.sip.telnyx.com", nonce="5cea4a2a-ed57-4a1e-b10c-637544f17d3d", uri="sip:+16462100273@us-sandbox-skit.sip.telnyx.com;transport=udp", algorithm=MD5, cnonce="06e5b296fe4f96b9", opaque="dadf18a8-b8ec
-4e41-ae57-fbd62208219c/10.239.109.36", qop=auth, nc=00000001, response="9957caf0214d2e6bfc360c197236165b"
X-CallType: OUTBOUND
X-Virtual-Number: +12024280408
Max-Forwards: 70

v=0
o=- 6069457223229607017 6069457223229607017 IN IP4 161.115.181.28
s=LiveKit
c=IN IP4 161.115.181.28
t=0 0
m=audio 53578 RTP/AVP 9 0 8 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
is the telnyx number: +12024280408 we haven't made any outbound calls work. all the calls we are trying with different working numbers we are getting 404.
t
Thanks — I reviewed the INVITE. I’ll highlight the most likely causes and the exact checks to run next. What I’m responding to: the INVITE you pasted and the fact every outbound call to Telnyx returns SIP 404 UNALLOCATED_NUMBER. Immediate checks (run these now): 1. Confirm destination numbers • Ensure each dialed number is valid and active and formatted in E.164 (example:
+16462100273
). Try calling the destination from a regular mobile to confirm it’s reachable. 1. Confirm source number is assigned to your Telnyx connection • Make sure
+12024280408
is listed under Assigned Phone Numbers for your Telnyx SIP Connection (Voice → SIP Trunking → Connections → your connection). If it’s not assigned, Telnyx will reject outbound calls. 1. Verify Outbound Voice Profile / Termination domain • Ensure the Telnyx connection has an Outbound Voice Profile linked. • Your INVITE targets
us-sandbox-skit.sip.telnyx.com
(sandbox). Sandbox domains may restrict which numbers can be terminated. Confirm you should be using the sandbox domain for these destinations; if using production numbers, use the production termination domain for your connection (the Termination SIP Domain shown in your Telnyx connection details). 1. Confirm credentials and auth • Your INVITE contains Proxy-Authorization. Verify the username/password in your LiveKit outbound trunk exactly match the Telnyx SIP Connection credentials. 1. Check Request-URI and To header formatting • Your Request-URI is
sip:+16462100273@us-sandbox-skit.sip.telnyx.com;transport=udp
and To header matches — that looks fine. Ensure Telnyx expects
+
and E.164 (some setups expect digits only in the to-user portion). If Telnyx requires no
+
, try
16462100273
. 1. Try TCP transport • Some carriers block or mishandle UDP. Configure your LiveKit outbound trunk to use TCP (set
transport = "SIP_TRANSPORT_TCP"
) and retry. 1. Test with a known-working number and capture logs • Dial a proven-working mobile number. If that also 404s, the problem is trunk/config (not the destination). • Pull the Telnyx call logs / full SIP trace (INVITE and all responses) for a failed attempt and note the timestamp. If you want me to inspect further, paste: • One example failed-call timestamp, • The Telnyx SIP response body / headers from their logs (full 404 response), • The
sip_trunk_id
and the
sip_call_to
value you used (redact secrets). I’ll point out the exact field or routing problem to fix. Would you like me to start by checking whether
+12024280408
is assigned to your Telnyx connection or by reviewing a Telnyx SIP response? Sources: Secure trunking | LiveKit docs | Create and configure Telnyx SIP trunk | LiveKit docs | Create and configure a Plivo SIP trunk | LiveKit docs