[asterisk-bugs] [Asterisk 0012939]: setting volgain results in tempfile errors and 0-length email attachments

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jul 28 15:08:32 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12939 
====================================================================== 
Reported By:                rickbradley
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12939
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-06-27 11:40 CDT
Last Modified:              2008-07-28 15:08 CDT
====================================================================== 
Summary:                    setting volgain results in tempfile errors and
0-length email attachments
Description: 
Running on Ubuntu Linux 8.04 (Hardy Heron).  Installed Asterisk 1.4.21 from
source.  Everything works fine, including voicemail, until I turn on
volgain in voicemail.conf.  At that point, voicemails record, but
attachments sent out have 0 byte size, and asterisk -r verbose/debug
console logs show the following:

    -- Executing [555 at internal:25] VoiceMail("Zap/1-1",
"1000 at default&1001 at default&1002 at default") in new stack
    -- <Zap/1-1> Playing 'vm-intro' (language 'en')
    -- <Zap/1-1> Playing 'beep' (language 'en')
    -- Recording the message
    -- x=0, open writing: 
/var/spool/asterisk/voicemail/default/1000/tmp/jPJzyw format: wav,
0x81f0fe8
    -- User ended message by pressing #
    -- <Zap/1-1> Playing 'auth-thankyou' (language 'en')
[Jun 27 11:38:05] NOTICE[11365]: app_voicemail.c:2632 copy_message:
Copying message from 1000 at default to 1001 at default
[Jun 27 11:38:05] WARNING[11365]: app_voicemail.c:1652 base_encode: Failed
to open file: /var/spool/asterisk/voicemail/default/1001/tmp/bWHwPM.wav: No
such file or directory
[Jun 27 11:38:05] NOTICE[11365]: app_voicemail.c:2632 copy_message:
Copying message from 1000 at default to 1002 at default
[Jun 27 11:38:05] WARNING[11365]: app_voicemail.c:1652 base_encode: Failed
to open file: /var/spool/asterisk/voicemail/default/1002/tmp/pYh3h3.wav: No
such file or directory
    -- Executing [555 at internal:26] Playback("Zap/1-1", "vm-goodbye") in
new stack
    -- <Zap/1-1> Playing 'vm-goodbye' (language 'en')
    -- Executing [555 at internal:27] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (internal, 555, 27) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'



Voicemail.conf has the following directives in it:


====================================================================== 

---------------------------------------------------------------------- 
 (0090768) Corydon76 (administrator) - 2008-07-28 15:08
 http://bugs.digium.com/view.php?id=12939#c90768 
---------------------------------------------------------------------- 
I think I know why.  Hardy Heron will install sox (the command line
program) with no support for any actual codec, unless you specifically tell
it to install the codecs.  You can install all of them with the package
name 'libsox-fmt-all'.  The inability for sox to decode or reencode any of
the formats would cause this exact error.

I have uploaded a patch that should detect this error and print an error
to the screen, as well as attaching the (non-volume-gained) file, thus
eliminating this issue in the future.  Please test it out and confirm that
it at least fixes the problem of 0-byte attachments. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-07-28 15:08 Corydon76      Note Added: 0090768                          
======================================================================




More information about the asterisk-bugs mailing list