[Freeswitch-users] Javascript

Francesco Facco de Lagarda francesco at delagarda.com
Sat Mar 10 11:50:22 UTC 2018


Yes Tihomir,

It works fine!

Thanks again

 

From: FreeSWITCH-users <freeswitch-users-bounces at lists.freeswitch.org> On Behalf Of Tihomir Culjaga
Sent: venerdì 9 marzo 2018 21:00
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Javascript

 

i use ESL instead of JavaScript, but the logic is the same :=)

 

try this :=)

 

if (session.ready()) {

 

             

var sessOut = new Session("sofia/gateway/realtoneFXO/" +  dialedNum + "@ <http://192.168.0.216:5060/> 192.168.0.216:5060")

if (sessOut.ready()) {

 

             session.setVariable("bridge_pre_execute_aleg_app", "record_session");

             session.setVariable("bridge_pre_execute_aleg_data" , "/path/to/recordingFile.wav");

 

bridge(session, sessOut);

}

}

 

 

T.

 

 

 

 

On 8 March 2018 at 15:26, Francesco Facco de Lagarda <francesco at delagarda.com <mailto:francesco at delagarda.com> > wrote:

Thank you Tihomir, I am VERY new to this.. can you please elaborate just a little more?

Thanks in advance!

 

From: FreeSWITCH-users <freeswitch-users-bounces at lists.freeswitch.org <mailto:freeswitch-users-bounces at lists.freeswitch.org> > On Behalf Of Tihomir Culjaga
Sent: giovedì 8 marzo 2018 12:16
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org <mailto:freeswitch-users at lists.freeswitch.org> >
Subject: Re: [Freeswitch-users] Javascript

 

Just set bridge_pre_execute_bleg/aleg_app/data for record application before you execute bridge .

Sent from my iPhone


On 8 Mar 2018, at 11:12, Francesco Facco de Lagarda <francesco at delagarda.com <mailto:francesco at delagarda.com> > wrote:

Good morning all..

Could someone please tell me how to initiate a call recording in javascript?

 

Simplyfied code I have:

 

if (session.ready()) {

var sessOut = new Session("sofia/gateway/realtoneFXO/" +  dialedNum + "@192.168.0.216:5060 <http://192.168.0.216:5060> ")

if (sessOut.ready()) {

bridge(session, sessOut);

}

}

 

Any help appreciated.. have a happy and productive day and Happy Women’s day for any ladies there!

 

 

Francesco

 

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180310/ac29f50d/attachment.html>


More information about the FreeSWITCH-users mailing list