<html><body bgcolor="#FFFFFF"><div>Is that your entire script?</div><div><br></div><div>Once the record_session executes the script will continue, reach the end. The call will then hangup.</div><div><br></div><div>Look at calling session.sleep(ms) within a loop while session.ready() is true.<br><br>Steve on iPhone</div><div><br>On 1 Dec 2010, at 19:14, Will Smith <<a href="mailto:willbelair@yahoo.com">willbelair@yahoo.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" face="arial" size="4"><span class="Apple-style-span" style="font-size: 10pt;">hi ,</span></font><div style="font-family: arial; font-size: 10pt; ">I have a problem to record files.</div><div style="font-family: arial; font-size: 10pt; ">here is my javascript:</div><div style="font-family: arial; font-size: 10pt; ">---------------</div><div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">session = new Session('sofia/gateway/mygateway/14164516999');</span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">session.waitForAnswer(10000);</span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size:
13px;"><br></span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">if (session.ready()) {</span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"> session.execute("record_session", "/usr/local/freeswitch/recordings/" + session.uuid + ".wav"); </span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">}</span></font></div></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">---------------</span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">after press answer key on my keypad, the call disconnected. What I am missing
here?</span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">Thank you for your help.</span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">Will</span></font></div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div></td></tr></tbody></table><br></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>