I am using asterisk 1.6.0.17. I loaded a wav file into the system but when i play the file it is played as a gsm. I notice a bit of quality is lost. What i tried to go is unload the format_gsm.so and format_wav_gsm.so from Asterisk. When i unload these the file plays as a .slin .
Even when i play the sounde in /var/lib/asterisk/sounds/ they all play as .gsm even though there is only .wav files there. Is there a way i can get these to play as .wav?
When you say .gsm, am I correct in saying you don’t actually mean there is a .gsm file anywhere, but rather a GSM codec is being selected?
What is the configuration for the channel on which the GSM codec is being selected? If it is SIP, what are the allow settings. What are the equivalent settings on the other end of the connection? (If you don’t know these, and you are using SIP, sip set debug on will help.)
There are no .gsm files. All sound files are .wav.
If i setup an extension on my system and dial 1000 where it should play ‘test.wav’ in the Asterisk CLI it would say ‘Playing test.gsm’.
I removed format_gsm.so, format_gsm_wav.so, format_sln.so and format_sln16.so so now when i play the file i am getting ‘Playing test.slin’.
It is sip i am using and have tried various codecs, ulaw,alaw, g729. None of them allow me to play the audio files as .wav. This happens with a local extension or ringing out on a trunk so i am just thinking Asterisk itself is converting the audio before playing.
Definatly not. I was thinking the same thing and searched the whole file system, there is no .gsm file. Also if i unload the format_gsm.so module from asterisk it will say playing test.slin. There are no .slin files on the file system either. If i reload the gsm module it reverts to test.gsm
It has to be asterisk doing some kind of conversion before playing .wav audio files. If i load asterisk 1.4 there is not a problem, it plays as .wav files but i cant get it to play as a .wav in 1.6.
If the extension is bogus, you need to answer the other questions I asked, about which codecs Asterisk is configured to consider acceptable and which the other end considers acceptable.
If things get complicated, you may need to provide the codec conversions costs (CLI command, although I forget the name). These are calibrated for the specific machine.
[code]core show translation
Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)