---
title: "Watch WebRTC Live #70: Using Kamailio to Connect WebRTC to SIP and PSTN – WebRTC.ventures"
description: For our 70th episode of WebRTC Live, Arin welcomed Kamailio Consultant, VoIP Engineer, SIP Expert Fred Posner to discuss bridging WebRTC to SIP via Kamailio and use cases such as call centers, remote workers, and PSTN connectivity.
image: https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/WebRTC-Live-70.png
---

[Skip to content](https://blog.webrtc.ventures/2022/09/webrtclive-kamailio#main-content)

![WebRTC.ventures](https://blog.webrtc.ventures/hubfs/logo-main-light.svg)

- [WebRTC Services](https://webrtc.ventures/webrtc-development-services/)
  
  Show submenu for WebRTC Services 
  
    - [Assess](https://webrtc.ventures/services/assess/)
    - [Build](https://webrtc.ventures/services/build/)
    - [Integrate](https://webrtc.ventures/services/integrate/)
    - [Test](https://webrtc.ventures/services/test/)
    - [Manage](https://webrtc.ventures/services/manage/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
- Our Partners
  
  Show submenu for Our Partners 
  
    - [Amazon Chime SDK](https://webrtc.ventures/partners/amazon-chime-sdk/)
- Stories of Success
  
  Show submenu for Stories of Success 
  
    - [Remote Video Interpreting Platform with Agent Routing](https://webrtc.ventures/successes/remote-video-translation-platform/)
    - [WebRTC to SIP Gateway for ASL Interpreters](https://webrtc.ventures/successes/webrtc-to-sip-gateway-for-asl-interpreters/)
    - [Audio Listening Device to Improve Surgical Outcomes](https://webrtc.ventures/successes/audio-listening-device-to-improve-surgical-outcomes/)
    - [Albania’s First Telemedicine Platform](https://webrtc.ventures/successes/albanias-first-telemedicine-platform/)
    - [Automated Video Storytelling with the Amazon Chime SDK](https://webrtc.ventures/successes/automated-video-storytelling-with-the-amazon-chime-sdk/)
    - [Large Scale Video Conferencing](https://webrtc.ventures/successes/large-scale-video-conferencing/)
    - [Broadcasting and Webcast Control Room](https://webrtc.ventures/successes/live-video-broadcasting-and-webcast-control-room/)
- WebRTC Resources
  
  Show submenu for WebRTC Resources 
  
    - [WebRTC Live](https://webrtc.ventures/webrtc-live/)
    - [WebRTC Tips](https://www.youtube.com/playlist?list=PLayYqdnyegt3QvxX-Rt6wbFIK8727Z5Oz)
    - [WebRTC.ventures Blog](https://webrtc.ventures/blog/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
    - [WebRTC.ventures Training Program](https://webrtc.ventures/webrtc-ventures-training-program/)
- [About Us](https://webrtc.ventures/our-team/)
  
  Show submenu for About Us 
  
    - [Blog](https://webrtc.ventures/blog/)
    - [Our Team](https://webrtc.ventures/our-team/)
    - [Jobs](https://webrtc.ventures/jobs/)

Open main navigation

Close main navigation

- [WebRTC Services](https://webrtc.ventures/webrtc-development-services/)
  
  Show submenu for WebRTC Services 
  
    - [Assess](https://webrtc.ventures/services/assess/)
    - [Build](https://webrtc.ventures/services/build/)
    - [Integrate](https://webrtc.ventures/services/integrate/)
    - [Test](https://webrtc.ventures/services/test/)
    - [Manage](https://webrtc.ventures/services/manage/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
- Our Partners
  
  Show submenu for Our Partners 
  
    - [Amazon Chime SDK](https://webrtc.ventures/partners/amazon-chime-sdk/)
- Stories of Success
  
  Show submenu for Stories of Success 
  
    - [Remote Video Interpreting Platform with Agent Routing](https://webrtc.ventures/successes/remote-video-translation-platform/)
    - [WebRTC to SIP Gateway for ASL Interpreters](https://webrtc.ventures/successes/webrtc-to-sip-gateway-for-asl-interpreters/)
    - [Audio Listening Device to Improve Surgical Outcomes](https://webrtc.ventures/successes/audio-listening-device-to-improve-surgical-outcomes/)
    - [Albania’s First Telemedicine Platform](https://webrtc.ventures/successes/albanias-first-telemedicine-platform/)
    - [Automated Video Storytelling with the Amazon Chime SDK](https://webrtc.ventures/successes/automated-video-storytelling-with-the-amazon-chime-sdk/)
    - [Large Scale Video Conferencing](https://webrtc.ventures/successes/large-scale-video-conferencing/)
    - [Broadcasting and Webcast Control Room](https://webrtc.ventures/successes/live-video-broadcasting-and-webcast-control-room/)
- WebRTC Resources
  
  Show submenu for WebRTC Resources 
  
    - [WebRTC Live](https://webrtc.ventures/webrtc-live/)
    - [WebRTC Tips](https://www.youtube.com/playlist?list=PLayYqdnyegt3QvxX-Rt6wbFIK8727Z5Oz)
    - [WebRTC.ventures Blog](https://webrtc.ventures/blog/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
    - [WebRTC.ventures Training Program](https://webrtc.ventures/webrtc-ventures-training-program/)
- [About Us](https://webrtc.ventures/our-team/)
  
  Show submenu for About Us 
  
    - [Blog](https://webrtc.ventures/blog/)
    - [Our Team](https://webrtc.ventures/our-team/)
    - [Jobs](https://webrtc.ventures/jobs/)
- [Contact us](https://webrtc.ventures/contact/)

[Contact us](https://webrtc.ventures/contact/)

 Sep 1, 2022 12:00:00 AM

# Watch WebRTC Live #70: Using Kamailio to Connect WebRTC to SIP and PSTN

![Picture of Jen Oppenheimer](https://blog.webrtc.ventures/hs-fs/hubfs/Our-Team-Jen.jpg?width=50&name=Our-Team-Jen.jpg) [Jen Oppenheimer](https://blog.webrtc.ventures/author/jen-oppenheimer)

Share: [linkedin-in icon](http://www.linkedin.com/shareArticle?mini=true&url=https://blog.webrtc.ventures/2022/09/webrtclive-kamailio) [X Twitter icon](https://twitter.com/intent/tweet?url=https://blog.webrtc.ventures/2022/09/webrtclive-kamailio) [envelope icon](mailto:?body=https://blog.webrtc.ventures/2022/09/webrtclive-kamailio)

On August 24, 2022, Arin welcomed [Fred Posner](https://qxork.com/) to WebRTC Live, noting it was long overdue to have a speaker on SIP and telephony. Fred has been involved in VoIP for more than twenty years and has been working with Kamailio for more than 15. During the episode, Fred explored using [Kamailio](https://www.kamailio.org/) to connect WebRTC to SIP and, “if you need it,” PSTN.

## What is Kamailio?

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2022-08-30-at-11_34_51-AM.png?width=257&height=148&name=Screen-Shot-2022-08-30-at-11_34_51-AM.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2022-08-30-at-11_34_51-AM.png?width=257&height=148&name=Screen-Shot-2022-08-30-at-11_34_51-AM.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2022-08-30-at-11_34_51-AM.png)

Kamailio is the successor to OpenSER and SER. It can be used to build large platforms for VoIP and real-time communications – presence, WebRTC, instant messaging and other applications; allowing you to easily bridge WebRTC endpoints to the PSTN, enterprise, and more.

- Open source SIP server
- 20 years and running
- Module based (150+ modules)
- Very fast (5,0000+ calls/sec as load balancer in stateless mode)
- Very light (300,000+ endpoints with just 4GB RAM)

## Best usage scenario

Kamailio’s best usage is as a SIP edge router handling bridge and security.

- Load balancing from WebRTC end points to the server application
- Security firewalls can test anything that might protect your end application from aggressive users
- Least Cost Routing (LCR) module implements capability to serially forward a request to one or more gateways
- VoLTE (voice over LTE) setup with Kamailio IMS 

## Proxy vs PBX

SIP Proxy is different from PBX servers like [Asterisk](https://www.asterisk.org/) or [FreeSwitch](https://signalwire.com/freeswitch).

- Helps facilitate calls
- Doesn’t answer calls
- Doesn’t initiate calls
- No audio/video processing keeps it light

## Kamailio as a WebRTC Bridge

The most common way Fred is seeing WebRTC used with Kamailio is as a bridge to PBX or PSTN. It is easy to deploy for call centers and similar use cases. The WebSocket module handles the framing from WebRTC to SIP.

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2022-08-29-at-5_33_30-PM.png?width=502&height=359&name=Screen-Shot-2022-08-29-at-5_33_30-PM.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2022-08-29-at-5_33_30-PM.png?width=502&height=359&name=Screen-Shot-2022-08-29-at-5_33_30-PM.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2022-08-29-at-5_33_30-PM.png)

## Q&A

Questions for Fred included:

- Is the WebRTC bridge only for legacy systems? Does Kamailio have a specific module to bridge WebRTC with SIP?
- You mentioned that Kamailio does NAT very well. Does it have its own STUN/TURN servers?
- How do you implement high availability for WebRTC?
- What are your thoughts on how SIP has impacted WebRTC design and the pros and cons of SIP vs. VOIP?
- What is the role of video in Kamailio? When and how is it used?
- What are some of the *gotchas* for someone looking at implementing click to call?

## [Watch Episode #](https://youtu.be/IlEA_yO8WOc)[7](https://youtu.be/IOzGpNBeACU)[0](https://youtu.be/IOzGpNBeACU)[!](https://youtu.be/IOzGpNBeACU)

The slides for the presentation can be found [here](https://pgpx.io/webrtclive/posner_webrtc_2022_kamailio.pdf). For more information on Kamailio, visit [www.kamailio.org](https://www.kamailio.org/), [github.com/kamailio](https://www.github.com/kamailio), and #kamspace.matrix.kamailio.dev. The annual [KamailioWorld](https://www.kamailioworld.com/k10-online/) conference will be online this year September 7-8, 2022.

---

**UP NEXT! WebRTC Live #71 with Chad Hart**  
*Wednesday, September 28 at 12:30pm Eastern*.  
[Register today!](https://webrtc.ventures/webrtclive_registration/)

---

**Do you have a topic that you would like to see discussed on WebRTC Live? Let us know by emailing [news@webrtc.ventures](mailto:news@webrtc.ventures).**

---

***Never miss an episode of WebRTC Live,*** *our webinar series hosted by WebRTC.ventures Founder and CEO,* [*Arin Sime*](https://www.linkedin.com/in/arinsime/)*. We feature the latest use cases and technical updates to this increasingly popular coding standard for live video. Watch past episodes on our* [*WebRTC Live page*](https://webrtc.ventures/webrtc-live/)*, our* [*YouTube channel*](https://www.youtube.com/channel/UC7ty8nH5cBP0mqiZFl9bb9g)*, and on* [*our blog*](https://webrtc.ventures/blog/)*. Better yet, use the form in the sidebar to join our mailing list and be among the first to hear about upcoming episodes and the latest news in WebRTC!*

[CPaaS](https://blog.webrtc.ventures/tag/cpaas), [Managed Services](https://blog.webrtc.ventures/tag/managed-services), [Events](https://blog.webrtc.ventures/tag/events), [Video Conferencing](https://blog.webrtc.ventures/tag/video-conferencing), [Real Time Weekly](https://blog.webrtc.ventures/tag/real-time-weekly), [WebRTC Architecture](https://blog.webrtc.ventures/tag/webrtc-architecture), [Broadcasting](https://blog.webrtc.ventures/tag/broadcasting), [Medical](https://blog.webrtc.ventures/tag/medical), [WebRTC Live](https://blog.webrtc.ventures/tag/webrtc-live), [Showcase](https://blog.webrtc.ventures/tag/showcase), [Thoughts](https://blog.webrtc.ventures/tag/thoughts), [Vonage](https://blog.webrtc.ventures/tag/vonage), [Daily](https://blog.webrtc.ventures/tag/daily), [Jobs](https://blog.webrtc.ventures/tag/jobs), [Contact Centers](https://blog.webrtc.ventures/tag/contact-centers), [Telehealth](https://blog.webrtc.ventures/tag/telehealth), [Education](https://blog.webrtc.ventures/tag/education), [Technical](https://blog.webrtc.ventures/tag/technical), [General](https://blog.webrtc.ventures/tag/general), [Story of success](https://blog.webrtc.ventures/tag/story-of-success), [The WebRTC.ventures Blog](https://blog.webrtc.ventures/tag/the-webrtc-ventures-blog), [Testing](https://blog.webrtc.ventures/tag/testing), [Gaming](https://blog.webrtc.ventures/tag/gaming), [DevOps](https://blog.webrtc.ventures/tag/devops), [Symbl.ai](https://blog.webrtc.ventures/tag/symbl-ai)

## Related posts

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/WebRTC-and-Security-1.png?height=200&name=WebRTC-and-Security-1.png)](https://blog.webrtc.ventures/2020/11/webrtclive-webrtc-and-security)

## [Watch WebRTC Live #48: WebRTC and Security with Google's Natalie Silvanovich](https://blog.webrtc.ventures/2020/11/webrtclive-webrtc-and-security)

![Picture of Jen Oppenheimer](https://blog.webrtc.ventures/hs-fs/hubfs/Our-Team-Jen.jpg?width=50&name=Our-Team-Jen.jpg) [Jen Oppenheimer](https://blog.webrtc.ventures/author/jen-oppenheimer) 

 Nov 17, 2020 12:00:00 AM

On November 11, 2020, WebRTC.ventures produced our 48th episode of WebRTC Live. Arin’s guest was...

[Read more](https://blog.webrtc.ventures/2020/11/webrtclive-webrtc-and-security)

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/WebRTC-For-The-Curious-with-Sean-DuBois-1.png?height=200&name=WebRTC-For-The-Curious-with-Sean-DuBois-1.png)](https://blog.webrtc.ventures/2020/11/webrtclive-webrtc-for-the-curious)

## [Watch WebRTC Live #47: “WebRTC For The Curious with Sean DuBois"](https://blog.webrtc.ventures/2020/11/webrtclive-webrtc-for-the-curious)

![Picture of Jen Oppenheimer](https://blog.webrtc.ventures/hs-fs/hubfs/Our-Team-Jen.jpg?width=50&name=Our-Team-Jen.jpg) [Jen Oppenheimer](https://blog.webrtc.ventures/author/jen-oppenheimer) 

 Nov 2, 2020 12:00:00 AM

On October 28, 2020, WebRTC.ventures produced our 47th episode of WebRTC Live. Arin’s guest was...

[Read more](https://blog.webrtc.ventures/2020/11/webrtclive-webrtc-for-the-curious)

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Introducing-WebRTC-Live-3.png?height=200&name=Introducing-WebRTC-Live-3.png)](https://blog.webrtc.ventures/2019/08/introducing-webrtc-live)

## [Introducing WebRTC Live!](https://blog.webrtc.ventures/2019/08/introducing-webrtc-live)

[webrtc](https://blog.webrtc.ventures/author/webrtc) 

 Aug 23, 2019 12:00:00 AM

Last week, WebRTC.ventures produced its first episode of WebRTC Live! Formerly known as WebRTC...

[Read more](https://blog.webrtc.ventures/2019/08/introducing-webrtc-live)

### WebRTC.Ventures Services

...

- Assess
- Build
- Integrate
- Test
- Deploy & Manage

### Contact Us

...

**Video should be an opportunity, not a headache.**   
 We’re here to build, integrate, assess and optimize, test, and even deploy and manage your live video application. 

[Contact us](https://blog.webrtc.ventures/2022/09/webrtclive-kamailio#contact)

### WebRTC Live

...

 View [past episodes](https://blog.webrtc.ventures/webrtc-live/) of our webinar interview series about the latest webRTC use cases and technical updates. Join our mailing list to learn about upcoming episodes! 

![WebRTC Live](https://blog.webrtc.ventures/hs-fs/hubfs/Template%20Images/widged-bannet.webp?height=90&name=widged-bannet.webp)

![logo-main-light](https://blog.webrtc.ventures/hubfs/logo-main-light.svg "logo-main-light")

We’re one of the few agencies in the world dedicated to WebRTC development. This dedication and experience is why so many people trust us to help bring live video application dreams to life.

 

### Let's get started!

###### **[Contact us today](https://webrtc.ventures/contact/)**

**[info@webrtc.ventures](mailto:info@webrtc.ventures)**

<https://www.linkedin.com/company/webrtc-ventures> <https://www.youtube.com/@WebrtcVentures>

### Join our mailing list

We don't e-mail often (a few times a month max), and it will be worth it when we do! Of course, we respect your privacy and will not share your contact information.

© 2023 WebRTC.ventures, an [AgilityFeat](https://agilityfeat.com/) company / [Privacy Policy](https://webrtc.ventures/privacy-policy//)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Jen Oppenheimer",
    "url" : "https://blog.webrtc.ventures/author/jen-oppenheimer"
  },
  "dateModified" : "2024-04-03T18:08:25.101Z",
  "datePublished" : "2022-09-01T04:00:00.000Z",
  "headline" : "Watch WebRTC Live #70: Using Kamailio to Connect WebRTC to SIP and PSTN – WebRTC.ventures",
  "image" : [ "https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/WebRTC-Live-70.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.webrtc.ventures/2022/09/webrtclive-kamailio",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.webrtc.ventures/hubfs/logo-main-light.svg"
    }
  }
}
```