[Freeswitch-users] Scheduled hangup from javascript
Brian West
brian at freeswitch.org
Tue Sep 9 00:14:27 PDT 2008
The way you're doing this doesn't seem right. Can you provide me the
exact call flow?
I would also recommend putting a space between the " and the words
alloted_timeout" so that the args are passed to sched_hangup
correctly. Press F8 and see if it complains about it.
new_session.execute("sched_hangup",+"+"+calllength+" alloted_timeout");
/b
On Sep 9, 2008, at 2:01 AM, vidhya sagar dixit wrote:
> ====================
>
> 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();
>
> ===================
Brian West
sip:brian at freeswitch.org
More information about the FreeSWITCH-users
mailing list