Tuesday, January 19, 2021

Configure Asterisk to support WebRTC

What is WebRTC

Web Real-Time Communication (WebRTC) is a collection of standards, protocols, and JavaScript APIs, the combination of which enables peer-to-peer audio, video, and data sharing between browsers (peers).  It is supported on all modern browsers and native clients in major platforms.

You may be an user of WebRTC already because many famous audio/video communication applications involve this technology.  Examples are Whatspp, Google Meet and Facebook Messenger.

WebRTC also enables browser-based VoIP telephony, which means that you can make and receive calls within a web browser.  There is no need to install a softphone.

Here, we focus on what benefits WebRTC brings to your business and how it works with the Asterisk-based IPPBX.

Benefits of using WebRTC together with your IPPBX

  • When your web site visitor needs assistance on a product or an online service, he can simply click on a call button and get in touch with your agent instantly, no matter he is in front of a PC or using mobile phone.

  • The online call is free for visitors and they can talk with your agent from anywhere worldwide.  it improves customer experience and your relationship with them.

  • It eliminates the need for toll-free numbers, saving your telco expenses

  • Enabled with WebRTC, IPPBX can despatch the online call to your agents like traditional incoming call; it can go through IVR, ACD and various call routing rules.

  • You can even embed the call button in your email communications with customers

  • Webrtc call is encrypted and secured.  It is safe to use it over public internet.

Configuring Asterisk to  support WebRTC

There are a couple of things worth your consideration when configuring Asterisk to support webrtc.

  • Preferably you use updated version of Asterisk (version 15.5 or higher) 

  • Use chan_pjsip which is the newer SIP stack for Asterisk

  • Since WebRTC API includes no provisioning for signalling, we have to enable websocket as a transport where SIP signaling protocol takes place

  • You need a SSL certificate for the websocket to work.

  • In case your existing Asterisk (where your IPPBX extensions and call features are located) is of earlier versions, you can install a newer version to act as a gateway between WebRTC call and your existing asterisk.

Calling the WebRTC API from your web site

Most modern browsers have built-in support for WebRTC API and these API could be called via javascript.  In general, to add a browser call button in your web site html code, you would have to include the required js library and write some javascript codes to take control of the audio stream (ie your MIC & Speaker), establish call with the IPPBX (call signalling) and carry out the audio transmission.


Here is a demonstration showing how you call our Asterisk-based IPPBX by a browser button.  The call is handled by an illustrative agent queue.



  1. Branded Canopy Tents provides all your custom tents, custom canopy, logo tents, custom pop up tents, trade show tents, promotional tents, advertising flags, and trade show displays products and accessories. Branded Canopy Tents only uses the highest quality material and focuses on ensuring customer satisfaction, offering fast response times and fast turnaround times. If you are in the market for a professional company for trade show accessories or printed tents, Branded Canopy Tents is ready to help.

    Custom Pop Up Tents & Canopies

  2. Thanks for right nice information about this best topic Such an Awesome Blog !! Keep up the Good Work !! all details about it really interesting. gk guru

  3. Thanks for sharing nice information about this best topic Such an Awesome Blog !! Keep up the Good Work !! all details about it really interesting.
    Find the best quality custom canopy tent!. We can customise any part of your tent to include. your branding, Logo messaging and theme. These tents are easy to assemble and easy to carry.

  4. Sensitive and important information is worth reading carefully like this one.
    From Best Domain Extensions Leading The Internet

  5. Thanks for providing us very newly helpful information. it definitely help us by creating our own website
    Best custom tents! canopy for any events or trade shows. Get your customers attention through this tent with High quality printing and free 2D/3D graphics available. Order now. Starline Tents.

  6. Very informative blog, thanks for sharing
    Increase your brand awareness within the world's largest professional community. Target audiences in trade show displays, exhibitions, expos, events. To provide you high quality and affordable trade show solutions to meet your budget and marketing needs. It is essential for any business to have a brand identity to stand apart from other competitive businesses in the industry.

  7. Download latest bollywood hollywood hd movies only on Sdmoviespoint

  8. Download latest bollywood hollywood hd movies only on Sdmoviespoint

  9. Such a very useful article. Very interesting to read this article. I would like to thank you for the efforts you had made for writing this awesome article
    Starline Displays

  10. This is very interesting,Wow, fantastic weblog format! Very helpful advice on this article.
    I’ve shared your website in my social networks!thank a lot for your sharing
    NDIS Specialist offers training courses from renowned publishers in Australia.These training
    courses cover a range of skills and knowledge in various areas including Business Services, Community Services,
    Cleaning Operations, Financial Services, Foundation Skills, Health, Information and Communications Technology,
    Retail Services, Tourism, Travel and Hospitality, Training and Education, Transport and Logistics. The NDIS
    providers may choose these courses for their support workers as well as management employees for their skill

  11. Chris Peris

    Thanks for this helpful article. If anyone wants to transfer playlists/songs between spotify/apple music and more. Then you can use MusConv.com. MusConv – the easiest way to transfer your music data!

  12. That is true to become full time blogger and you have made a wonderful explanation.
    KGF Chapter 2

  13. This is an incredible posting! I quite enjoyed reading it, you happen to be a great author. I will remember to bookmark your blog and will eventually come back very soon. Also, share with my community and friends. Take a look for some cool think here Buy Instagram Likes

  14. thanks for this valuable information it really helped me a lot

    see magic

  15. I agree so much. we should all be reinforcing positive feedback within the comment sections. So many good points to take into consideration.
    When people have good things to say about my web site เว็บหวยดีที่สุด... it really makes positive impact.

  16. Very interesting to read this article. I agree so much. I enjoyed reading this, you can be a great writer. I will remember to bookmark your blog and will be back soon. Also, share with my community and friends. Check out some cool thoughts here https://buylinkedinaccount.com/

  17. Good job friend..


  18. It's amazing to go to see this web page and reading the views of all
    friends regarding this article, while I am also
    zealous of getting familiarity.


  19. Pretty good post. I have really enjoyed reading your blog posts amazing blog

  20. Download Bollywood Hollywood HD Mp4 Movies On Sdmoviespoint

    Download Hot Web Series And 18+ Movies Only On SD Movies Point

  21. I agree so much. we should all be reinforcing positive feedback within the comment sections. So many good points to take into consideration.
    When people have good things to say about my web site it really makes positive impact.


  22. Bitcoin ATM in south Africa. Get the latest updates about bitcoin ATM first of its kind in south Africa going live right Here..https://testboo.com/crypto/bitcoin-atm-south-africa-cryptocurrency-machine/

  23. Nice article keep it up
    You can check my article regarding on page SEO easily you can rank your article high on search engines 👇
    secret on page SEO techniques

    Follow my social networks for funny memes and odd news

    Facebook page 👇
    follow Facebook page
    Join Twitter
    Join Telegram

  24. A place to do good business. I bought few different things from 2A Warehouse.
    Great quality kits are coming out of this place. The pricing is reasonable and shipping fast.
    Had a great overall experience dealing with these guys. If you guys have purchased any products from 2A Warehouse,
    you can share your reviews on this thread. Click here to read our review rules and guidelines in detail.

    2a Warehouse Reviews

  25. Very good post & most useful information in this article Thanks
    Torrent Movie Site : Tamilrockers

  26. Its a really great article I have seen today, I appreciated your hard work and experience. I would like to seek more information like this.hasztagi instagram

  27. Simlab Composer Crack Free Download is a complete, easy, affordable, and feature-rich solution enabling you to communicate your 3D ideas with ease.simlabcomposercrack

  28. 2021 new Service For Tourists in New York city
    Sweet and sensational Lucy came to my place last weekend when I booked her through a phone call. And she brought complete erotic aura with herself. She had the amazing skills and she did it excellently to satiate my lust. Really, it was an exciting and then after completely relaxing experience.

  29. I recommend you to have a look at this blog and order a good content for your site. You really need it!

  30. Usually I never comment on blogs but your article is so convincing that I never stop myself

    to say something about it. i am Really very happy to say that this post is very interesting

    to read.
    You’re doing a great job Man, Keep it up.
    I blog at

    Killer Shayari

  31. Thank you so much for the information that you have shared here with all of us. You have made it easier for us...

    digital marketing agency in usa

  32. This is really an important blog with much helpful information. I have been searching for a long time for this types of content. Keep up posting more and thanks for your great staff. you may can visit my site Authority Beast

  33. I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. Thanks for Sharing With US
    tension fabric displays

  34. Roroos automatic watch winder is a handmade precision instrument designed with high performance to keep your timepiece wound and ready, powered with super silent motor.
    Single Watch Winders
    Double Watch Winders
    Triple Watch Winders
    Quad Watch Winders

  35. That was a really great. Helpful and insightful, as always! Thanks for the data and the supporting information.

    Satta Matka Official is #1 India satta matka website; find satta matka fastest result of इंडियन मटका 155, kalyan matka, sattamataka.in net, satta matka Jodi chart, sattamataka143, sattamàtka, golden matka, sattaking143 guessing, satkamatka.com, Sattaking, and more. Our advanced tips & tricks help to play this Satta game properly. The tips provided by our expert Matka guessers help you to win the game and become the Satta king.

  36. Grow your money with onezypher. We are providing expert and effective guidance to our
    clients and HNI clients throughout the globe.

  37. One of the best things about using PayPal is that all your transactions are secured with 24x7 Fraud Prevention technology that simply means you can undergo any transaction without having to worry about the loss of money or any other scam

  38. Cloud Timon Private Limited -Web Development, Web Designing company.

    We worked hard and established as the top ranked web development company in Hyderabad. Our dedication on work, our clear solution approach and reliability in being innovative made us top and made us as solid. With help from our customers, we keep on working and inventing new solutions for customers answers. We Offer Website Development at an Affordable Price in Hyderabad

    The professional web development company in Hyderabad with world-class services like web designing, web development, mobile app development, e-commerce application development, cms web development, custom web development, digital marketing. website designer | web developers | web design and development | Professional Web Design | custom web design | web application

    programming | e-commerce Web Design | software consulting | Web Designing.

    Cloud Timon Private Limited's Keywords

    website designer | web developers | web design and development | Professional Web Design | custom web design | web application | programming | e-commerce Web Design | software consulting | Web Design

    Cloud Timon

    Digital Marketing

    WordPress Web Development

    Web Designing

    Web Development

  39. thanks for this valuable information it really helped me a lotmobile price in bd

  40. Best web site for getting Trimmer related idea and sales Groom Reviews

  41. thanks for this valuable information it really helped me a lotmobile price in bd
    bd Job


  42. The top website in bd plasent to be going my your web jouranalonce more ,it has been months for me. This website is a work website, this is truly a decent.

    if you don't mind share more like that thanks everyone.So So come back to the visit website

    mobile price in bd

  43. Confidence remained low until June because of widespread uncertainty which saw deal volumes drop by almost a third in the first half of the year compared to 2020. mobile price in bangladesh

  44. This comment has been removed by the author.

  45. Merci bcqqqq

  46. Great information really like it.I hope you will keep it on.thank you new laptop price

  47. Nice your post.I hope you will keep it on.thank you new laptop price

  48. Cung cấp thiết bị bếp công nghiệp, bếp nhà hàng – khách sạn, thiết bị inox, bếp Á, bếp Âu với giá cả cạnh tranh, cam kết chất lượng, tiến độ giao hàng – lắp đặt

  49. Pleasure to read your blog...Keep it up your writing...GROW YOUR RESTAURANT

  50. Thanks for right nice information about this best topic Such an Awesome Blog !! Keep up the Good Work !! all details about it really interesting. y2mate

  51. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download Cracked Application and install a crack pro software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named Azharpc.org that has explained an easy way to install all All the Crack software for Windows and Mac.

  52. This comment has been removed by the author.

  53. Al Bait Al Raqi steel structures buildings are simple to build. Each component for simple identification: reduced steel building cost, environmentally friendly and environmentally friendly materials. Exact manufacturing standards make Al Bait Al Raqi a superb alternative for steel structures, no matter your construction project. Al Bait Al Raqi steel structure buildings are more reasonably priced than conventional building stick-built procedures.
    Visit: https://albaitalraqi.com/products/steel-structures/

  54. Al Bait Al Raqi manufactures, delivers, designs, and puts in high-quality prefab houses in UAE and all around the Middle East region. Our prefabricated houses provide all demands and utilize various applications, like amenities, office and kitchen components, security rooms and labor camps, etc.
    visit: https://albaitalraqi.com/products/prefab-modular-buildings/prefab-houses/

  55. Thanks for sharing nice information
    If you have a prefabricated house, prefab caravan, prefab office, containerized units, and no longer need your portable building, want to sell it? Al Bait Al Raqi is ready to offer you a cash or bank transfer for your cabin or building, paying you in full before removing it off your site.

  56. Slot Online Deposit Pulsa have developed very rapidly from time to time. In addition, the bettors who like playing this Daftar Judi Online seem happy and support the existence of casino games that can be Link Mpo Slot. Because that way, bettors can still play whenever and wherever they want. It's different when playing <Agen Judi Mpo which requires them to go to a place just to play Situs Slot Mpo.

    However, how exactly is the development of the casino game. As we all know that casino games are very interesting to play. Likewise with that are played Mpo Slot online. There you will find a variety of very interesting games to play. In essence, in an Mpo Terbaik 2021 you can play a variety of games on just one site. In addition, if you manage to win every match, you will get a lot of very interesting advantages.

  57. Thank you so much Love your blog I would love to share your article with other platforms. creative idea Thanks for sharing!

  58. Awesome Writings!! Thanks The Author for this Nice writings. Will Visit Definitely again. Find Me
    Madrasha Board Dakhil Result 2021"

  59. Perfect, I will implement asterisk to support WebRTC, I've looking for such integration and I finally, finally finded it!

    Thank you so much, seriously man! :)

  60. SAVEMELOT is the best website to find the latest coupons on cars, promo codes, deals & offers to save on retail, travel, food, medicines. we have more than 3000+ coupons

    QEEQ deals