[Freeswitch-users] record_session wav files are corrupted

fs at tcowan.net fs at tcowan.net
Tue Apr 2 21:28:19 MSD 2013


After making a recording with record_session the wav files are 
corrupted and wont open. Audacity will say the wav is corrupt and itunes 
and windows media player wont play them at all. If I try to import the 
audio as raw format in audacity you can hear some high pitched talking 
that plays back very quickly. I have no clue how to diagnose what is 
wrong or where to even begin diagnosing why the recording isnt working 
right. Is there anything that I could of missed with the setup that 
would cause it not to record properly?

My outbound route looks like this:

<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="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>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list