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.

Demonstration

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.

https://ippbx01.starlingtech.hk:8089/static/click2call/index.html

29 comments:

  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

    ReplyDelete
  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

    ReplyDelete
  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.

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

    ReplyDelete
  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.

    ReplyDelete
  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.

    ReplyDelete
  7. Download latest bollywood hollywood hd movies only on Sdmoviespoint

    ReplyDelete
  8. Download latest bollywood hollywood hd movies only on Sdmoviespoint

    ReplyDelete
  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

    ReplyDelete
  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
    development.

    ReplyDelete
  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!

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

    ReplyDelete
  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

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

    see magic

    ReplyDelete
  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.

    ReplyDelete
  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/

    ReplyDelete
  17. Good job friend..

    https://www.dibisikin.com/
    https://www.dibisikin.com/

    ReplyDelete
  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.

    https://cracksz.com/pc-mark-crack-with-serial-key/
    https://cracksz.com/windows-10-loader-crack/
    https://cracksz.com/itools-4-5-0-5-license-key-crack/
    https://crackcut.com/turbocollage-7-2-2-0-crack/
    https://crackcut.com/advanced-systemcare-14-crack/
    https://crackcut.com/mixpad-crack/
    https://cracktips.com/davinci-resolve-crack/
    https://cracktips.com/mirillis-action-crack/
    https://cracktips.com/vmware-workstation-pro-crack/

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

    ReplyDelete
  20. Download Bollywood Hollywood HD Mp4 Movies On Sdmoviespoint

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

    ReplyDelete
  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.

    เว็บหวยดีที่สุด

    ReplyDelete
  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/

    ReplyDelete