frenchie
frenchie

Reputation: 51927

calling the PTSN from a browser

I have a webpage with a dial button and I want to be able to make outbound phone calls and listen for inbound calls. What are my options? I've looked at WebRTC but I don't understand what asterisk (or freeswitch?) do. If the the user has a VOIP account then what needs to be done for the webpage to connect to that account and how do I get started?

Thanks.

Upvotes: 0

Views: 1158

Answers (1)

sipsorcery
sipsorcery

Reputation: 30699

Your options are WebRTC (only in the later browsers) or a browser plugin.

In the plugin case it will generally be a fully fledged SIP & RTP stack that will let you send and receive calls to a SIP Provider who will in turn gateway calls to the PSTN for you. Asterisk/FreeSWITCH etc. aren't needed unless you want calls from the plugin to go through your own server. The SIP Provider will be using a product along those lines.

If you use WebRTC then you can take advantage of a native browser javascript API to initiate a VoIP call. If you want to make and receive calls to the PSTN, as opposed to between other WebRTC supporting browsers, then you will need some kind of signalling gateway to translate between ROAP (which is the signalling protocol used by WebRTC) to SIP (or another VoIP signalling protocol).

The approach I'd recommend would be to use something like phono. It will mean your calls go through someone else's servers but it's a quick and easy way to get started.

Upvotes: 1

Related Questions