It should work with absolute path, I would suggest to try<div><br></div><div><span class="Apple-style-span" style="font-family: verdana, helvetica, sans-serif; font-size: 13px; ">@con.execute("record", "/opt/freeswitch/sounds/123.wav", .........</span></div>
<div><font class="Apple-style-span" face="verdana, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, helvetica, sans-serif">and make sure the dir exists<br></font><br><div class="gmail_quote">
2010/5/31 Bob Coleman <span dir="ltr"><<a href="mailto:bobc@devassert.com">bobc@devassert.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
I think you only have to specify it relative to the sounds directory, no need for full path.</div>
<div> </div>
<div>Test it by just specifying the name without a path. <br><br></div>
<div class="gmail_quote"><div><div></div><div class="h5">On Tue, May 25, 2010 at 6:10 PM, Thirupathi <span dir="ltr"><<a href="mailto:s_thirupathikumar@yahoo.com" target="_blank">s_thirupathikumar@yahoo.com</a>></span> wrote:<br>
</div></div><blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><div><div></div><div class="h5">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top"><span style="font-family:verdana,helvetica,sans-serif">Hi, <br><br>i am using record function to record the user information through channel into the voice file.</span><br style="font-family:verdana,helvetica,sans-serif">
<br style="font-family:verdana,helvetica,sans-serif"><span style="font-family:verdana,helvetica,sans-serif">@con.execute("record", "#{record_file_path} #{record_duration} #{silence_threshold}")</span><br style="font-family:verdana,helvetica,sans-serif">
<br style="font-family:verdana,helvetica,sans-serif"><span style="font-family:verdana,helvetica,sans-serif">I have specified the full path with the record_file_path variable. But i got the below error</span><br style="font-family:verdana,helvetica,sans-serif">
<span style="font-family:verdana,helvetica,sans-serif">2010-05-24 12:53:32.917541 [ERR] mod_sndfile.c:194 Error Opening File [/opt/freeswitch/sounds/123.wav] [System error : No such file or directory.]</span><br style="font-family:verdana,helvetica,sans-serif">
<br style="font-family:verdana,helvetica,sans-serif"><span style="font-family:verdana,helvetica,sans-serif">Is there any record function available in the freeswitch so that it will create the file automatically in the specified record_file_path parameter.</span><br style="font-family:verdana,helvetica,sans-serif">
<br style="font-family:verdana,helvetica,sans-serif"><font style="font-family:verdana,helvetica,sans-serif" color="#0000ff" size="1" face="verdana">
<div style="margin:0in 0in 0pt" class="MsoNormal"><span style="color:blue;font-size:10pt">Thanks and Regards, <br>Thirupathi</span><span style="font-size:10pt"></span></div></font></td></tr></tbody></table><br><br></div>
</div>_______________________________________________<br>
FreeSWITCH-dev mailing list<br><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Blog: <a href="http://www.dujinfang.com">http://www.dujinfang.com</a><br>Proj: <a href="http://www.freeswitch.org.cn">http://www.freeswitch.org.cn</a><br>
</div>