[Freeswitch-users] session_record

Steven Ayre steveayre at gmail.com
Thu Dec 2 02:27:40 MSK 2010


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 at 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 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/20101201/ffb8ca4a/attachment.html 


More information about the FreeSWITCH-users mailing list