FYI,<div><br></div><div>Will and I figured it out. It was much more involved. Long story short we did a combo of originate on the cmd line and having a long destination_number that gets parsed up into several values (target extension, password, etc.). It seems to be working. Once it's tested we'll throw the example up on the wiki</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Wed, Dec 1, 2010 at 3:27 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div 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" target="_blank">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 face="arial" size="4"><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 face="arial" size="3"><span style="font-size:13px">session = new Session('sofia/gateway/mygateway/14164516999');</span></font></div>
<div><font face="arial" size="3"><span style="font-size:13px">session.waitForAnswer(10000);</span></font></div><div><font face="arial" size="3"><span style="font-size:13px"><br></span></font></div><div><font face="arial" size="3"><span style="font-size:13px">if (session.ready()) {</span></font></div>
<div><font face="arial" size="3"><span style="font-size:13px"> session.execute("record_session", "/usr/local/freeswitch/recordings/" + session.uuid + ".wav"); </span></font></div><div>
<font face="arial" size="3"><span style="font-size:13px">}</span></font></div></div><div><font face="arial" size="3"><span style="font-size:13px">---------------</span></font></div><div><font face="arial" size="3"><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 face="arial" size="3"><span style="font-size:13px"><br></span></font></div><div><font face="arial" size="3"><span style="font-size:13px">Thank you for your help.</span></font></div><div>
<font face="arial" size="3"><span style="font-size:13px"><br></span></font></div><div><font face="arial" size="3"><span style="font-size:13px">Will</span></font></div><div><font face="arial" size="3"><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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div><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>
<br></blockquote></div><br></div>