I was trying to get format_wav to work for both 8 and 16 khz files
automatically (at least for reading). I found that asterisk does not
check the format type returned by the file read and just assumes that
it is the same as the original handler when it opened the file.
Why was the patch from bug ID 0013657 removed from asterisk 1.6?
When my auto format read did not work I ended up re-writing almost the
same code as the patch already in the bug tracker (except I used the
same wav_open handler and checked the format type to select the frequency).
I also named file extension "wav16" because "Wav" and "WAV" and "wav" are
the same on some systems.
Any thoughts as to re-adding this 16khz wav file code back into trunk?
Or any ideas how to get 8/16khz wav files to work based on the frequency
stored in the file header?
The reason for this is greater use of 16khz audio in VoIP systems.
Currently I am using G.722 with 16khz promps, MOH, and TTS applications.
--
Andrew Lindh
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Any thoughts as to re-adding this 16khz wav file code back into trunk?
Or any ideas how to get 8/16khz wav files to work based on the frequency
stored in the file header?
In Asterisk, the sample rate will already be known before the format
module's open() function ever gets called; it can't autoselect sample
rates after that. So that means that 8kHz and 16kHz must be different
'formats' in Asterisk-land, as you've already worked on.
The patch that had been added was removed because used case changes
*only* to signify the difference between 8kHz and 16kHz and that was not
a good way to handle it. Using a different extension (like wav16 as you
have done) would be fine.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming@digium.com
Check us out at www.digium.com & www.asterisk.org
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum