[Freeswitch-users] Javascript call recording revisited

Francesco Facco de Lagarda francesco at delagarda.com
Thu Mar 8 18:16:30 UTC 2018


'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")

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?

 

 

 

 

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


More information about the FreeSWITCH-users mailing list