Please join #freeswitch on irc.freenode.net as many nice folks there can provide help to solve your problem. /b On Sep 9, 2008, at 2:48 AM, vidhya sagar dixit wrote:
when i used your suggested code call hanged up as soon as i answered . in log i got this ..
2008-09-09 13:12:33 [WARNING] switch_scheduler.c:114 task_thread_loop() Task was executed late by 1220946153 seconds 2 switch_ivr_schedule_hangup (17c471d2-0e6b-4b61-89f9-59f56997c94c)
the call flow is as folllowing ..
1.user dials 1212 from softphone 2. call sent to test.js 3. answered the call on the first line of test.js 4.play a welcome note. 5. Now originate an outgoing PSTN call (new_session.) 6.call should be disconnected after given time(scheduled hangup).
On Tue, Sep 9, 2008 at 12:59 PM, vidhya sagar dixit <vids.cs@gmail.com> wrote: Ok let me try this .. will let you know shortly.
On Tue, Sep 9, 2008 at 12:44 PM, Brian West <brian@freeswitch.org> wrote: 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@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@freeswitch.org
_______________________________________________ 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
-- Thanks and Regards
Vidhya Sagar Dixit
-- Thanks and Regards
Vidhya Sagar Dixit _______________________________________________ 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
Brian West sip:brian@freeswitch.org