[Home]

Summary:ASTERISK-15412: Error parsing format= parameter in voicemail.conf
Reporter:Bennie Sexton (bsexton)Labels:
Date Opened:2010-01-06 17:55:38.000-0600Date Closed:2010-01-07 10:13:01.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:There appears to be a possible bug in the parsing of the format= line in voicemail.conf. It seems to work OK so long as I specifiy one, two, or four formats but does not work as expected with three formats.

format=wav49|ulaw works as expected with this result:

   -- Recording the message
   -- x=0, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/gYyxx3 format: wav49, 0x2c0c798
   -- x=1, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/gYyxx3 format: ulaw, 0x2c72de8

format=wav49|ulaw|g729 does not work as expected and has the following result:

   -- Recording the message
   -- x=0, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/SYUeVb format: wav49, 0x2c0c798
   -- x=1, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/SYUeVb format: ulaw, 0x2c72de8

format=wav49|ulaw|g729|g723sf works with the following result:

   -- Recording the message
   -- x=0, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/R7XOJH format: wav49, 0x2c0c798
   -- x=1, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/R7XOJH format: ulaw, 0x2c08a28
   -- x=2, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/R7XOJH format: g729, 0x27aa068
   -- x=3, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/R7XOJH format: g723sf, 0x2c735b8

format=wav49|ulaw|g723sf does not work as expected and has the following result:

   -- Recording the message
   -- x=0, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/Kkg3XC format: wav49, 0x2c0c798
   -- x=1, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/Kkg3XC format: ulaw, 0x2c72f48
[Jan  6 18:50:51] WARNING[14307]: file.c:1160 ast_writefile: No such format 'g'
   -- x=2, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/Kkg3XC format: g, (nil)
[Jan  6 18:50:51] WARNING[14307]: app.c:868 __ast_play_and_record: Error creating writestream '/var/spool/asterisk/voicemail/default/6000/tmp/Kkg3XC', format 'g'

format=wav49|g729|ulaw|ulaw generates my desired result, but only by specifying ulaw twice, and has the following result:

   -- Recording the message
   -- x=0, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/2nPMtT format: wav49, 0x2c0c798
   -- x=1, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/2nPMtT format: g729, 0x27aa068
   -- x=2, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/2nPMtT format: ulaw, 0x2c556d8
Comments:By: Bennie Sexton (bsexton) 2010-01-06 17:59:13.000-0600

This report is in the wrong place. It should be under Asterisk and not Asterisk-GUI. I am sorry. Can someone who has the abililty to do so please move the report to the appropriate area?

By: Leif Madsen (lmadsen) 2010-01-07 10:13:01.000-0600

Duplicate of ASTERISK-15410