Hey guys, I'm going crazy trying to set up LiveKit...
# telephony
p
Hey guys, I'm going crazy trying to set up LiveKit Cloud with Twilio over SIP Trunk. It worked earlier — I didn't change anything — and then suddenly I started getting 503 errors from the LiveKit SIP URI. It seems like Twilio automatically adds the phone number to the SIP URI (sip:+phonenumber@domain). I would expect an error if that were the case, but a 503 error seems to indicate an issue with the infrastructure itself. Is this known and described anywhere or is there a way to check the logs on the cloud instances?
r
What is the ID of the trunk that is having the issue. It starts with
ST_
If you have a specific calI ID that starts with
SCL_
that would be super helpful too
I suspect the issue is related to
allowedAddresses
or phone number mismatch on your trunk.
p
ST_h6g3i9aS7oHV I would expect rather a 403 if there was an authentication issue? Calls are not reaching the Dashboard rn. I could provide the Twilio Error Log but would rather not have it in here publicly šŸ˜…
Sorry did close slack by accident
r
Do you have a PCAP from Twilio?
p
Yes. May I dm you?
r
yes
p
thanks!
m
hello im facing the same problem, did you guys find the solution ?
r
@mammoth-psychiatrist-40638 You have a link to a call ID from your LiveKit dashboard that has failed. Or the trunk ID that is getting that issue?
m
yes i have the truck id
r
can I have it šŸ™‚
m
ST_5oZcXhuYqUtb
šŸ‘€ 1
r
Can I see the last few lines of your agent code (the worker options bit)
m
for now im testing the dispatch rule, without an agent. is that a wrong approach ?
r
that is why the agent is not answering šŸ™‚ Looks like the call in is working. But there is no agent to answer
m
ok i want to fix it and ill get back to you very soon thank you sir
r
Once you have an agent I think you should be good to go. I do recommend adding an
agent_name
once you are ready for that.
m
yeah i had one but it wasn't working that's why i removed it and tried it without for debugging reasons. can i name it anything in the dispatch rule ?
r
if you leave it blank in the dispatch rule and in the agent code it will dispatch as a "default" agent.
Once you have that working you can add an agent name to both and test again.
m
does this look correct, I'm not sure
r
I think you want rule type
individual
and then room prefix would be
sip-call
m
amazing man i tried it, now the call is ringing but there is no answer. (no more 503 error)
do you think its the agent not joining the room ? or is it something else
r
Can I see your agent log?
m
sure just a moment
want to move to private chat ?
r
you can post in a private chat if you want. Just link this conversation so I know what it is about.
m
Im also stuck on this - getting 503 error on Twilio Dashboard call history • I set up the TwiML Bin with the sip • Created SIP • Created Dispatch Rule Call dials but just hangs up I dont see any logs on the livekit dashboard Ive deployed an agent and it works in the agents-playground my trunk id
ST_Vec9hc3TDyiY
Do I need sip_trunk_username and password on both tiML Bin and Livekit SIP side?
Also the doc says
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Sip username="<sip_trunk_username>" password="<sip_trunk_password>">
sip:<your_phone_number>@mbjw2m5qd5p.sip.livekit.cloud
</Sip>
</Dial>
</Response>
but AI told me to use my
SIP_URI
- i found it on the configuration page in my dashboard and it doesn't include my phone number - whats the correct one to use or are they the same? • if I should use the one with
phone_number
what format should it be
nvm figured it out