[Freeswitch-users] Javascript call recording revisited

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


Thanks a million Tihomir,

Will try immediately!

Have a nice weekend wherever you are!

 

 

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

 

another thing, its better not to record directly into mp3 ... takes a lot of cpu.

better dump down into native or wav than to an async conversion to mp3 if needed. 

 

On 9 March 2018 at 21:07, Tihomir Culjaga <tculjaga at gmail.com <mailto:tculjaga at gmail.com> > wrote:

bridge_pre_execute_aleg_app  pointso to application

bridge_pre_execute_aleg_data points to application argument

 

you need to set them both.

 

 

also, you should set them on A-leg.

 

and use:

 

session.setVariable("varName","varValue")

 

 

 

 

 

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

‘Evening one and all.

Im going crazy trying to record calls from javascript scripting

This is what I have done:

 

I have installed mod_shout 

$ apt-get install freeswitch-mod-shout

 

enable in /autoload ../modules.xml

 

reloaded freeswitch

$ service freeswitch restart

 

Checked that module was loaded

fs_cli -x "show modules" | grep shout

 

And set it up before bridge:

set "bridge_pre_execute_aleg_app record_session /tmp/test.mp3"

 

 

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()) {

sessOut.execute("set", "bridge_pre_execute_aleg_app record_session /tmp/test.mp3");

bridge(session, sessOut);

}

}

 

But nothing appears in “/tmp” !!!!

Where am I going wrong?

 

 

 

 

 

_________________________________________________________________________
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/02177736/attachment-0001.html>


More information about the FreeSWITCH-users mailing list