[Freeswitch-users] Options for initiating call from browser (not WebRTC)

Kamal Mustafa kamal.mustafa at gmail.com
Tue Nov 14 08:20:13 UTC 2017


On 3 May 2017 at 18:41, Oivvio Polite <mylists at polite.se> wrote:

> I now want to replace the PaaS with FreeSwitch. I've done a lot of
> experimenting with FS during the last year, and managed to get
> callrecording of PSTN and WebRTC calls to work.
>
> With those calls origination was from PSTN or WebRTC. Now I want to do
> origination with a HTTP request. When leafing through the FreeSwitch
> book from PACKT I see that I have multiple options for doing this.

Wondering why you don't want to use webrtc (mod_verto) here ? I think
it's the most logical option here. But maybe you don't need the audio
stream to come back real time to the browser. So in this case using
ESL lib is the most straightforward. We use python but should be
similar in other language, which look like:-

def make_call(request):
    number = request.POST.get('number', None)
    if number is not None:
        conn = ESL.ESLconnection(host, port, password)
        command = 'originate
[some_var=....]sofia/gateway/provider/{destination}
&playback(file.mp3)'.format(destination=number)
        ret = self.bgapi(command)



More information about the FreeSWITCH-users mailing list