It should work with absolute path, I would suggest to try

@con.execute("record", "/opt/freeswitch/sounds/123.wav", .........

and make sure the dir exists

2010/5/31 Bob Coleman <bobc@devassert.com>
I think you only have to specify it relative to the sounds directory, no need for full path.
 
Test it by just specifying the name without a path.

On Tue, May 25, 2010 at 6:10 PM, Thirupathi <s_thirupathikumar@yahoo.com> wrote:
Hi,

i am using record function to record the user information through channel into the voice file.


@con.execute("record", "#{record_file_path} #{record_duration} #{silence_threshold}")

I have specified the full path with the record_file_path variable. But i got the below error
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.]

Is there any record function available in the freeswitch so that it will create the file automatically in the specified record_file_path parameter.

Thanks and Regards,
Thirupathi


_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org




--
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn