<div dir="ltr">Dear Brian,<br><br>Thanks for the suggestion .<br>I have already tried like this but this does not work.Please see the sample code below.<br>Please tell me where i am doing wrong. <br><br>====================<br>
<br>session.answer();<br><br>//.......<br>//Do some stuff like ivr play etc .......<br><br>//......<br><br>var dialstr = &quot;sofia/external/<a href="mailto:911234567890@11.22.33.44" target="_blank">911234567890@11.22.33.44</a>&quot;;<br>

var calllength = &quot;60&quot;;<br><br>// now originate a new session <br><br>new_session = new Session();<br>new_session.setCallerData(&quot;<div dir="ltr">caller_id_name&quot;, &quot;Vidhya&quot;);<br>new_session.setCallerData(&quot;caller_id_number&quot;, &quot;911140500000&quot;);<br>

new_session.originate(session, dialstr,60);<br><br><br>new_session.execute(&quot;sched_hangup&quot;,+calllength+&quot;alloted_timeout&quot;); // for scheduled hangup.<br><br>bridge(session, new_session);<br><br>new_session.hangup();<br>
<br><br>session.hangup();<br><br>===================</div><br><br><br><div class="gmail_quote">On Mon, Sep 8, 2008 at 6:46 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</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;">session.execute(&quot;sched_hangup&quot;,&quot;args&quot;);<br>
<br>
/b<br>
<div class="Ih2E3d"><br>
On Sep 8, 2008, at 3:59 AM, vidhya sagar dixit wrote:<br>
<br>
&gt; can any one please answer my question ...?<br>
<br>
</div>Brian West<br>
<a href="mailto:sip%3Abrian@freeswitch.org">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">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>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards <br><br>Vidhya Sagar Dixit<br>
</div>