[Freeswitch-users] session_record

Michael Collins msc at freeswitch.org
Thu Dec 2 04:00:30 MSK 2010


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 at 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 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
>
>
> _______________________________________________
> 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/abe345c8/attachment-0001.html 


More information about the FreeSWITCH-users mailing list