FYI,

Will and I figured it out. It was much more involved. Long story short we did a combo of originate on the cmd line and having a long destination_number that gets parsed up into several values (target extension, password, etc.). It seems to be working. Once it's tested we'll throw the example up on the wiki

-MC

On Wed, Dec 1, 2010 at 3:27 PM, Steven Ayre <steveayre@gmail.com> wrote:
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