Posted: Fri Apr 25, 2003 9:28 pm Post subject: [Asterisk-Dev] format of voicemail files and extensions prob
I was having a problem with the size of the files in the attachments of email I decided to change the format= line in the voicemail.conf file to read "format=wav49" which is believe is a gsm compressed windows client playable file format much smaller than the "wav" format. when I changed this I started getting email with the msg0000.wav49 extensions sent to my email.... I checked the app_voicemail.c files and put in some debugging statements that logged the contents of format... and sure enough it was trying to encode/sendmail a filename built with the "format" char * variable which at this point in runtime is set to "wav49" . somewhere during the voicemail record function it saves the format=wav49 files into an uppercase "msg0000.WAV" extension. some code is mismatched here. the following if statement inserted into the front of the app_voicemail.c's sendmail function fixed (not elegantly) the problem. I started getting the UPPER case WAV files sent to my email client and it played almost 90% of the way thru, (I think the end of the file is corrupt maybe) .
if (!strcmp(format, "wav49"))
strcpy(format, "WAV");
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