<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Please join #freeswitch on irc.freenode.net as many nice folks there can provide help to solve your problem.<div><br></div><div>/b</div><div><br><div><div>On Sep 9, 2008, at 2:48 AM, vidhya sagar dixit wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">when i used your suggested code call hanged up as soon as i answered . in log i got this ..<br><br>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)<br> <br><br>the call flow is as folllowing ..<br><br>1.user dials 1212 from softphone <br>2.&nbsp; call sent to test.js <br>3. answered the call on the first line of test.js <br>4.play a welcome note.<br>5. Now originate an outgoing PSTN call (new_session.)<br> 6.call should be disconnected after given time(scheduled hangup).<br><br><br><div class="gmail_quote">On Tue, Sep 9, 2008 at 12:59 PM, vidhya sagar dixit <span dir="ltr">&lt;<a href="mailto:vids.cs@gmail.com">vids.cs@gmail.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Ok let me try this .. will let you know shortly.<div><div></div><div class="Wj3C7c"> <br><br><br><div class="gmail_quote">On Tue, Sep 9, 2008 at 12:44 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The way you're doing this doesn't seem right. &nbsp;Can you provide me the<br> exact call flow?<br> <br> I would also recommend putting a space between the " and the words<br> alloted_timeout" so that the args are passed to sched_hangup<br> correctly. &nbsp;Press F8 and see if it complains about it.<br> <div><br> new_session.execute("sched_hangup",+"+"+calllength+" alloted_timeout");<br> <br> </div><font color="#888888">/b<br> </font><div><br> <br> On Sep 9, 2008, at 2:01 AM, vidhya sagar dixit wrote:<br> <br> > ====================<br> ><br> > session.answer();<br> ><br> > //.......<br> > //Do some stuff like ivr play etc .......<br> ><br> > //......<br> ><br> > var dialstr = "sofia/external/<a href="mailto:911234567890@11.22.33.44" target="_blank">911234567890@11.22.33.44</a>";<br> > var calllength = "60";<br> ><br> > // now originate a new session<br> ><br> > new_session = new Session();<br> > new_session.setCallerData("<br> > caller_id_name", "Vidhya");<br> > new_session.setCallerData("caller_id_number", "911140500000");<br> > new_session.originate(session, dialstr,60);<br> ><br> ><br> > new_session.execute("sched_hangup",+calllength<br> > +"alloted_timeout"); // for scheduled hangup.<br> ><br> > bridge(session, new_session);<br> ><br> > new_session.hangup();<br> ><br> ><br> > session.hangup();<br> ><br> > ===================<br> <br> </div><div><div></div><div>Brian West<br> <a href="mailto:sip%3Abrian@freeswitch.org" target="_blank">sip:brian@freeswitch.org</a><br> <br> <br> <br> <br> <br> <br> <br> _______________________________________________<br> Freeswitch-users mailing list<br> <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> </div></div></blockquote></div><br><br clear="all"><br></div></div><div class="Ih2E3d">-- <br>Thanks and Regards <br><br>Vidhya Sagar Dixit<br> </div></div> </blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards <br><br>Vidhya Sagar Dixit<br> </div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Brian West</div><div><a href="sip:brian@freeswitch.org">sip:brian@freeswitch.org</a></div><div><br></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>