[asterisk-dev] $5 Bottom Feeder's Bounty: code pointer on vm format bug

Brian Capouch brianc at palaver.net
Mon Apr 9 01:50:18 MST 2007


Negotiable.

On the resource-limited MIPSEL boxes voicemail.conf has to be set to 
format soundfiles in gsm only.  In the trunk versions, but not 1.2/4, 
the voicemail subsystem prints the format suffix of the streamed files 
to the CLI as they play.

The bug is this: recorded outbound unavail/busy/etc. greetings stream 
back in slinear instead of gsm, if the CLI is telling the truth.  Files 
that show up on the CLI with the .slin suffix begin to play, then 
quickly cut out and the CLI shows a move to the next thing in the craw.

The bounty is to show me where that stuff gets done in voicemailmain.

To trigger the bug: set format to gsm only; login to voicemail and auth; 
choose '0' for options; '1' to record greeting; '#' to stop recording; 
'2' to review it and bang!

I know $5 is cheesy.  But I've hunted and hunted and can't find where 
it's done, and it's driving me crazy.  The bug itself isn't that bad to 
work around.

See it in action as the above scenario plays out on the CLI trace hereto 
appended.  The next-to-last line shows the bug.

Thx.

B.

*********** CLI output *********

     -- <SIP/ata1-1008b118> Playing 'vm-login.gsm' (language 'en')

     -- <SIP/ata1-1008b118> Playing 'vm-password.gsm' (language 'en')

     -- <SIP/ata1-1008b118> Playing 'vm-youhave.gsm' (language 'en')

     -- <SIP/ata1-1008b118> Playing 'vm-no.gsm' (language 'en')

     -- <SIP/ata1-1008b118> Playing 'vm-messages.gsm' (language 'en')

     -- <SIP/ata1-1008b118> Playing 'vm-options.gsm' (language 'en')

     -- Recording the message

     -- <SIP/ata1-1008b118> Playing 'vm-rec-unv.gsm' (language 'en')

     -- <SIP/ata1-1008b118> Playing 'beep.gsm' (language 'en')

     -- x=0, open writing: 
/var/spool/asterisk/voicemail/inside-extens/1001/unavail format: gsm, 
0x1008cc40

     -- User ended message by pressing #

     -- <SIP/ata1-1008b118> Playing 'auth-thankyou.gsm' (language 'en')

     -- <SIP/ata1-1008b118> Playing 'vm-review.gsm' (language 'en')

     -- Reviewing the message

     -- <SIP/ata1-1008b118> Playing 
'/var/spool/asterisk/voicemail/inside-extens/1001/unavail.slin' 
(language 'en')

     -- <SIP/ata1-1008b118> Playing 'vm-review.gsm' (language 'en')

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the asterisk-dev mailing list