[Freeswitch-dev] Record in Freeswitch

Seven Du dujinfang at gmail.com
Sun May 30 19:34:50 PDT 2010


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 at 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 at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100531/f7b58002/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list