[Asterisk-Users] compression quality of wav voicemail attachments

Randy Smith forhire at tigermtn.com
Mon Feb 24 21:36:49 MST 2003


> I believe the one attached is the first one listed in
> /etc/asterisk/voicemail.conf in the formats line.
> 
> Mark

> I believe the one attached is the first one listed in
> /etc/asterisk/voicemail.conf in the formats line.

Hi Mark,

I've been playing with this. It appear that it uses the last valid format 
listed. Hence the default attaches the large wav. If I set format=wav49 then 
I get the following error:

WARNING[114703]: File app_voicemail.c, Line 263 (base_encode): Failed to open 
log file: /var/spool/asterisk/vm/100/INBOX/msg0022.wav49: No such file or 
directory

It appears that the pharsing for the wav49 extension which is .WAV isn't 
correct in app_voicemail.c. I can't attach the wav49 format although gsm and 
wav work fine.

I'd like to be able to specify on a per mailbox instance which file is 
attached. I invision something like:

100 => 1234,First User,1user at domain.com,wav49
101 => 1234,Second User,2user at domain.com,wav
102 => 1234,Third User,3user at domain.com,gsm

Is this something that can be done? I'm playing with the code but I must 
admit my skills are limited.

Thanks,

Randy




More information about the asterisk-users mailing list