Dear asterisk users, I am presently playing with an asterisk@home. I am trying to find the best codec solution for my voicemail records. I want to use ARI (Asterisk Recording Interface) to read the messages. I first used the default wav encoding that was not appropriate because my navigator does not handle wav mime types correctly and I have difficulties playing wav files in my basic linux environement. So my plan is to switch to another codec. I checked about the available modules for sound files: root@asterisk1 modules]# cd /usr/lib/asterisk/modules/ root@asterisk1 modules]# ls -1 format_* format_au.so format_g723.so format_g726.so format_g729.so format_gsm.so format_h263.so format_ilbc.so format_jpeg.so format_mp3.so format_pcm_alaw.so format_pcm.so format_sln.so format_vox.so format_wav_gsm.so format_wav.so So I imagine I can use .au and .mp3 format for audio files. That's what I want. But I cannot find now the appropriate format to specify in voicemail.conf format directive. I set format=mp3 first and format=au But when the voicemail prompt for the message I have 0 second to leave the message (and no message is saved). Astersik cli error is then: -- Recording the message -- x=0, open writing: /var/spool/asterisk/voicemail/default/801/INBOX/msg0003 format: mp3, (nil) I do not understand the message, I find the nil a bit strange there ! I imagine mp3 and au are not correct parameters for the format defintion in voicemail.conf. Could you indicate me the appropriate setting to use theses two files format ? My other question is: Is there any plan you know about having support for vorbis codec in the future ? Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5603 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060214/755d05ed/smime.bin
Vincent R?gnard wrote:> Could you indicate me the appropriate setting to use theses two files > format ?From http://www.voip-info.org/wiki-Asterisk+config+voicemail.conf: format The format setting selects audio file format(s) to use when storing voice mail messages. The value is a string defining the audio format(s) of the message file. The default format string is wav49|gsm|wav, meaning that Asterisk will save the voicemail message in all three supported formats. When emailing the attachment, however, it will send only the first of the formats defined here. What the value of saving in more than one format is, I don't know. * wav49: In this format, the file size will be small, the quality good, and it's a good choice for sending voicemail messages in email. The file will have a .wav extension, which all Windows users should have no problems with, and users on other platforms should also be able to easily play these sound files. * gsm: Voicemail saved in this format will have about the same file size and same audio quality as wav49. It may be less well supported by client operating systems if sent to users in email, however. * wav: This is an uncompressed sound format, so the file size is very large. Not recommended. * g723sf: The sample voicemail.conf file has this option commented out. If you try to activate it, you will find that it doesn't work. So I don't think you can use mp3 or au format here... -- Best regards, Bartosz Piec