Skip to main content

Introduction

Session Initiation Protocol (SIP) is a widely adopted signaling protocol used to establish, manage, and terminate voice and video calls over IP networks. By integrating SIP with VideoSDK, you can connect traditional telephony systems (like desk phones, PBXs, or SIP trunks) directly to VideoSDK meetings running over WebRTC. This enables seamless communication between SIP endpoints and participants in VideoSDK-powered meetings, bridging the gap between legacy telephony and modern web-based collaboration.

High Level Architecture

The following architecture diagram illustrates how SIP endpoints connect with VideoSDK meetings. The system leverages key components such as Inbound Gateway, Outbound Gateway, Routing Rules, and VideoSDK Cloud to facilitate secure and reliable communication between SIP devices and WebRTC-based meetings.

System Components

  • External SIP Providers: Third-party services (such as Twilio, Vonage, Plivo, Telnyx, etc.) that provide SIP trunks and phone numbers for inbound and outbound calling.
  • Inbound Gateway: Validates incoming calls from SIP providers and routes them to the appropriate VideoSDK meeting.
  • Outbound Gateway: Holds the configuration for SIP providers and manages outbound calls from VideoSDK meetings to external phone numbers.
  • Routing Rules: Define how inbound and outbound calls are routed based on specific rules and number matching logic.
  • VideoSDK Cloud: Manages meeting rooms and orchestrates real-time communication between SIP and WebRTC participants.

Process Flow

  1. Inbound Call: An external SIP provider (e.g., Twilio, Vonage) sends a call to the Inbound Gateway, which validates and routes the call to the designated VideoSDK meeting.
  2. Outbound Call: A VideoSDK meeting participant requests to dial out, and the Outbound Gateway uses the configured SIP provider to place the call to the target phone number.
  3. Routing: Routing Rules determine how both inbound and outbound calls are directed based on number matching and custom logic.
  4. Real-time Interaction: All participants, whether on SIP or WebRTC, can communicate seamlessly within the VideoSDK meeting.

Got a Question? Ask us on discord