Hello, Has anyone been able to integrate livekit w...
# telephony
g
Hello, Has anyone been able to integrate livekit with exotel for inbound and outbound calls?
r
I've seen folks here report that they have it working. But I think it requires you to contact their support team to enable it.
g
I just searched
exotel
in this slack community and found many people trying to connect exotel to livekit via sip. I couldn't find anyone who got it working. Earlier today, I had connected with Sruti from exotel team today. They asked for FQDN and Port. I gave them my SIP url without the
sip:
as FQDN We tried to add the sip uri to the connect applet. We also tried to add voicebot applet and use the
wss://
url. Nothing worked. But I can see one of the call had worked. But there was an error. Any idea what this error could be?
r
you can find your SIP URI here: https://cloud.livekit.io/projects/p_/settings/project port will be 5060 for UDP or TCP
you can't use a wss:// for SIP. you need to use the SIP URI
What was the error. Do you have a PCAP?
g
Thanks. SIP Endpoint is SIP URI without the
sip:
right? How will I know what is my FQDN? Is it SIP Endpoint?
r
it is the SIP URI
Did you see the call on your dashboard? If so what was the call ID? it will start with
SCL_
g
Yes correct.
SCL_pcFzsqk7zdQt
I think. The support team had configured the SIP Trunk and probably it had worked. But since I had not added Trunk and Dispatch Rules. Authentication failed!. Then She might have removed the SIP Trunk config from exotel and instead started using applet with wss.
image.png
r
Did you delete the trunk that the call came in on?
I don't see it
g
Trunk was not configured at all on Livekit when she tried calling.
r
How do you see it on your dashboard in that case?
To make it work you will need a trunk setup in your LiveKit account and a dispatch rules that points to your agent
g
I had only shared FQDN and Destination Protocol with her.
r
Not sure what you mean. Who was setting up your tunk in LiveKit?
You will need to configure a trunk and dispatch rule here: https://cloud.livekit.io/projects/p_/telephony/config
You can follow a guide like this one but substitute your exotel info: https://docs.livekit.io/sip/quickstarts/configuring-twilio-trunk/
g
Sorry. Let me explain. Exotel Support team has asked me for FQDN and Destination protocol. I had shared my SIP URI and Destination protocol as TCP or UDP. I had not set up Trunk and Dispatch Rule. There was a call in the telephony -> calls section. with the above call id. Not sure if the call would appear in livekit without a trunk and a dispatch rule or not. But it had failed with this reason.
call was not authorized by trunk configuration
But now I have a set up a trunk and a dispatch rule. I'll get on a call with exotel team tomorrow and try again.
Hopefully I've setup the trunk and dispatch rule properly this time. I've 2 agents in my livekit and both doesn't have name. They only have agent id. In the dispatch rule should I leave the agent field blank in that case?
r
ok., so you can call the number yourself?
I see you have specified and agent_name in your dispatch rule. Make your your agent codes worker options agent_name matches that
🙂 1
g
Got it. Thanks. I'll get in touch with exotel support team and get the FQDN set up properly tomorrow and try again.
They have removed the FQDN connection as of now because they thought SIP didn't work. That's why we pivoted to Voice Applet and wss:// We'll try the SIP approach again tomorrow.
👍🏼 1
f
Hi @great-oil-76675 are you able to do the connect with the exotel and are you able to do the outbound calling also ?
g
Yes. But not the way I thought it would work. Hence moved to pipecat and using exotel applet to handle the agent transfer etc.