[Freeswitch-users] Scheduled hangup from javascript

vidhya sagar dixit vids.cs at gmail.com
Tue Sep 9 00:01:26 PDT 2008


Dear Brian,

Thanks for the suggestion .
I have already tried like this but this does not work.Please see the sample
code below.
Please tell me where i am doing wrong.

====================

session.answer();

//.......
//Do some stuff like ivr play etc .......

//......

var dialstr = "sofia/external/911234567890 at 11.22.33.44";
var calllength = "60";

// now originate a new session

new_session = new Session();
new_session.setCallerData("caller_id_name", "Vidhya");
new_session.setCallerData("caller_id_number", "911140500000");
new_session.originate(session, dialstr,60);


new_session.execute("sched_hangup",+calllength+"alloted_timeout"); // for
scheduled hangup.

bridge(session, new_session);

new_session.hangup();


session.hangup();

===================



On Mon, Sep 8, 2008 at 6:46 PM, Brian West <brian at freeswitch.org> wrote:

> session.execute("sched_hangup","args");
>
> /b
>
> On Sep 8, 2008, at 3:59 AM, vidhya sagar dixit wrote:
>
> > can any one please answer my question ...?
>
> Brian West
> sip:brian at freeswitch.org <sip%3Abrian at 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
>



-- 
Thanks and Regards

Vidhya Sagar Dixit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080909/0a95f36b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list