[Freeswitch-users] record_session wav files are corrupted
Steven Ayre
steveayre at gmail.com
Fri Apr 5 19:37:01 MSD 2013
Do you have mod_sndfile loaded?
Steve
On 4 Apr 2013, at 16:06, fs at tcowan.net wrote:
> On 04-02-2013 05:17, Steven Schoch wrote:
>> On Tue, Apr 2, 2013 at 10:28 AM, <fs at tcowan.net> wrote:
>>
>>> If I try to import the
>>> audio as raw format in audacity you can hear some high pitched
>>> talking
>>> that plays back very quickly.
>>
>> When you import as raw data, try changing the sample rate to 8000.
>>
>> The reason Audacity can't open the file is because the header, which
>> specifies the encoding, channels, sample rate, etc. is damaged or
>> missing.
>>
>> --
>> Steve
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
> Well why would the header to damaged or missing. I have updated the
> config to the following and it still doesnt work. If I look at the
> header info with windows by going to file properties it doesnt list
> anything in the header info. The file is just a bunch of high pitched
> noise if I dont import as raw. I can hear the audio fine when importing
> raw and 8000hz rate. I am not sure what else I need to do to make this
> work.
>
> I followed the steps listed on:
> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session
>
> <extension name="bandwidth.10d" >
> <condition field="destination_number" expression="^(\d{10})$" >
> <action application="set"
> data="sip_h_X-accountcode=${accountcode}" />
> <action application="set" data="sip_h_X-Tag=" />
> <action application="set" data="call_direction=outbound" />
> <action application="set" data="hangup_after_bridge=true" />
> <action application="set"
> data="effective_caller_id_name=${outbound_caller_id_name}" />
> <action application="set"
> data="effective_caller_id_number=${outbound_caller_id_number}" />
> <action application="set" data="inherit_codec=true" />
> <action application="set" data="record_sample_rate=8000" />
> <action application="set" data="RECORD_TITLE=Recording
> ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"
> />
> <action application="set" data="RECORD_SOFTWARE=FreeSWITCH" />
> <action application="set" data="RECORD_STEREO=true" />
> <action application="set" data="RECORD_DATE=${strftime(%m-%d-%Y
> %H:%M)}" />
> <action application="set" data="RECORD_ARTIST=FreeSWITCH" />
> <action application="set" data="RECORD_COPYRIGHT=(c) 2013" />
> <action application="set" data="RECORD_COMMENT=FreeSWITCH" />
> <action application="record_session"
> data="$${base_dir}/recordings/${domain_name}/outbound10d-${strftime(%m-%d-%Y-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"
> />
> <action application="bridge"
> data="sofia/gateway/customer1-bandwidth/$1" />
> </condition>
> </extension>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list