c
hi
t
Thanks for reaching out, Arun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi — welcome to LiveKit! How can I help you today? • Are you trying to set up a room, troubleshoot a connection, integrate an SDK, or something else? • If you have an error, paste the message, SDK/language, and room or project ID (if applicable).
c
can i have inbound and ousbuton call for same agent
t
Yes — a single agent can handle both inbound and outbound calls. • Use dispatch rules to route incoming (SIP) calls to the agent for inbound handling. • For outbound calls, dispatch the agent with job metadata that includes the phone number to dial. • In your agent code, check the job metadata (for example a
phone_number
field). If present, initiate an outbound call; if absent, treat it as an inbound call. If you want, tell me which SDK/language and how you currently dispatch jobs and I can give a short example for your setup. Sources: Agents telephony integration | LiveKit docs
c
in same number?
t
Yes — you can use the same phone number for both inbound and outbound calls with the same agent. • Inbound: calls to your number are routed to the agent via a dispatch rule. • Outbound: the agent places calls using the same SIP trunk or LiveKit Phone Number as the caller ID. • Implementation: have your agent check job metadata (e.g., a
phone_number
field). If present, initiate an outbound call; if absent, treat it as inbound. Do you want a short code example for a specific SDK/language or instructions for configuring your SIP trunk/dispatch rule? Sources: https://blog.livekit.io/introducing-livekit-phone-numbers-zero-to-ringing-in-60-seconds/#/portal/signup| | Agents telephony integration | LiveKit docs