How to get an agent in a call on microsoft teams?
# ask-ai
b
How to get an agent in a call on microsoft teams?
t
Thanks for reaching out, Anuar. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Are you hoping to connect the agent to a Microsoft Teams call using a dial-in number (SIP/PSTN), or are you thinking more about a direct API integration with Teams? If you could share a bit more about what you're aiming to do, I'd be happy to guide you through the best approach! Sources: LiveKit Docs | README.md | Agent-assisted warm transfer | LiveKit docs | Web and mobile frontends | LiveKit Docs
b
through API integration
t
LiveKit doesn’t currently offer direct API integration with Microsoft Teams for adding agents to calls. However, LiveKit does support SIP-based telephony, which means you could potentially connect it to Microsoft Teams using third-party SIP trunking gateways that work with Teams Direct Routing. This kind of setup does require some external infrastructure and isn’t directly documented or officially supported by LiveKit. If you’re looking to connect LiveKit agents with Microsoft Teams, you might want to explore using a SIP-to-Teams gateway service or see if your needs can be met through SIP bridging instead of native Teams API control. I’d be happy to help guide you through setting up SIP trunks or explain how a SIP gateway could help link LiveKit and Teams. Just let me know! Sources: Agents telephony integration | LiveKit docs | README.md | Egress API | LiveKit docs | complex-agents/ivr-agent/flask_livekit/extension.py | Azure AI Services and LiveKit | LiveKit Docs
b
how about using the dial-in number (SIP/PSTN)
t
To connect LiveKit agents to Microsoft Teams calls using dial-in numbers (SIP/PSTN), you can take advantage of LiveKit's SIP telephony features. Let me walk you through the key steps and things to keep in mind: 1. PSTN Dial-in Method: If your Microsoft Teams meetings have PSTN dial-in numbers, LiveKit's SIP outbound calling can dial that number to join the meeting. Here's an example:
Copy code
const sipParticipant = await sipClient.createSipParticipant(
  SIP_OUTBOUND_TRUNK_ID,
  '+1234567890', // Teams dial-in number
  roomName,
  {
    participantIdentity: 'teams-bridge',
    dtmfSequence: '123456789#,,987654321#' // DTMF for meeting ID and participant ID
  }
);
2. SIP URI Method: If Teams offers SIP URIs for meetings and your organization has Direct Routing set up, you can connect using LiveKit's SIP capabilities. Just keep in mind this requires specific infrastructure like Session Border Controllers (SBCs) and Teams Direct Routing. Some helpful questions: • Do you have PSTN dial-in numbers available for your Teams meetings? • Is Microsoft Teams Direct Routing configured in your organization? • Which SIP provider are you currently using with LiveKit? The success of this integration really depends on your Microsoft Teams setup and whether SIP-accessible endpoints are available. Please feel free to reach out if you'd like more detailed guidance on setting up SIP trunks or configuring LiveKit for this. I’m here to help! Sources: SIP outbound trunk | LiveKit docs | SIP inbound trunk | LiveKit docs | Agents telephony integration | LiveKit docs | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | packages/sip--um-actually/src/setup-livekit.ts