Is that your entire script? Once the record_session executes the script will continue, reach the end. The call will then hangup. Look at calling session.sleep(ms) within a loop while session.ready() is true. Steve on iPhone On 1 Dec 2010, at 19:14, Will Smith <willbelair@yahoo.com> wrote:
hi , I have a problem to record files. here is my javascript: --------------- session = new Session('sofia/gateway/mygateway/14164516999'); session.waitForAnswer(10000);
if (session.ready()) { session.execute("record_session", "/usr/local/freeswitch/recordings/" + session.uuid + ".wav"); } --------------- after press answer key on my keypad, the call disconnected. What I am missing here?
Thank you for your help.
Will
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org