using websocket how can I create a telephony agent...
# ask-ai
r
using websocket how can I create a telephony agent I don't want to use sip with livekit server is it possible?
t
Thanks for reaching out, Rahul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I completely understand that setting up a telephony agent can feel a bit tricky, especially when it comes to protocols like SIP. When connecting to the Public Switched Telephone Network (PSTN), SIP is actually the standard protocol required, so creating a telephony agent without it isn’t possible. But don’t worry—LiveKit makes this much easier by handling the SIP part behind the scenes, so your agent doesn’t have to deal with SIP directly. Here’s a simple breakdown of how it works: • LiveKit’s SIP service takes care of all the SIP signaling with phone carriers for you. • Your agent connects to LiveKit through WebSocket and treats phone participants just like any other WebRTC participants in the room. • Media flows through WebRTC, and your agent interacts with participants using the same APIs as with any other WebRTC user. To get everything up and running, you’ll need: • A LiveKit server with the SIP service enabled. • An outbound SIP trunk set up with a provider such as Twilio. • Your agent deployed and connected to LiveKit via WebSocket. If you’d like to dive deeper or need more guidance, the LiveKit SIP Service documentation is a great resource to explore. Sources: Agents telephony integration | LiveKit Docs | README.md | README.md | OpenAI and LiveKit partner to turn Advanced Voice into an API | Agents telephony integration | LiveKit docs