Problem with voicemail to email

I am setting up a basic Asterisk system per Asterisk - The Definitive Guide, Third Edition. Everything seems to be working fine with one exception. I think I’ve configured voicemail to delete messages after I send them, but the files remain. There is surely some configuration error, but it eludes me.

$ cat /etc/redhat-release CentOS release 6.3 (Final) $ uname -r 2.6.32-279.14.1.el6.x86_64 $ sudo asterisk -rx "core show version" Asterisk SVN-branch-1.8-r376788 built by asteriskpbx @ mypbx.mydomain.com on a x86_64 running Linux on 2012-11-29 15:41:39 UTC $ sudo dahdi_scan [1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P (VPM100M) location=PCI Bus 05 Slot 03 basechan=1 totchans=4 irq=18 type=analog port=1,FXS port=2,none port=3,none port=4,FXO
I followed this guy’s suggestions to use the ssmtp client instead of configuring sendmail and the emails get delivered just fine with attachments.

http://www.jonathanmanning.com/2011/07/15/how-to-configure-asterisk-to-send-voicemail-email-via-gmail-smtp-guide/

Here is my voicemail.conf

[code]; From egrep -v ‘^\s*$|^\s*;’ voicemail.conf.sample
[general]
format=wav49|gsm|wav
attach=yes
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3
emaildateformat=%A, %B %d, %Y at %r
pagerdateformat=%A, %B %d, %Y at %r

; My changes to the sample
;----------------------------------------
servermail=voicemail@mypbx.mydomain.com
mailcmd=/usr/sbin/ssmtp -t
fromstring=Phone Greetings VM
pagerfromstring=Phone Greetings VM
;-----------------------------------------------

[zonemessages]
eastern=America/New_York|‘vm-received’ Q ‘digits/at’ IMp
central=America/Chicago|‘vm-received’ Q ‘digits/at’ IMp
central24=America/Chicago|‘vm-received’ q ‘digits/at’ H N 'hours’
military=Zulu|‘vm-received’ q ‘digits/at’ H N ‘hours’ 'phonetic/z_p’
european=Europe/Copenhagen|‘vm-received’ a d b ‘digits/at’ HM

; The one mailbox for voicemail on the POTS phone
[potsvoicemail]
100 => 1234,My Home,distributionlist@mydomain.com,delete=yes[/code]
I don’t see any failure when I monitor a test call.

[code]$ sudo asterisk -vvvvvvvr
Asterisk SVN-branch-1.8-r376788, Copyright © 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk SVN-branch-1.8-r376788 currently running on mypbx (pid = 14775)
Verbosity was 3 and is now 7
– Starting simple switch on ‘DAHDI/4-1’
– Executing [s@OutsideLines:1] Answer(“DAHDI/4-1”, “”) in new stack
– Executing [s@OutsideLines:2] WaitExten(“DAHDI/4-1”, “2”) in new stack
– Timeout on DAHDI/4-1, continuing…
– Executing [s@OutsideLines:3] Playback(“DAHDI/4-1”, “tt-weasels”) in new stack
– <DAHDI/4-1> Playing ‘tt-weasels.gsm’ (language ‘en’)
– Executing [s@OutsideLines:4] WaitExten(“DAHDI/4-1”, “2”) in new stack
– Timeout on DAHDI/4-1, continuing…
– Executing [s@OutsideLines:5] VoiceMail(“DAHDI/4-1”, “100@postvoicemaill”) in new stack
– <DAHDI/4-1> Playing ‘vm-intro.gsm’ (language ‘en’)
– <DAHDI/4-1> Playing ‘beep.gsm’ (language ‘en’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/potsvoicemail/100/tmp/vztzJL format: wav49, 0x7fabf0008588
– x=1, open writing: /var/spool/asterisk/voicemail/potsvoicemail/100/tmp/vztzJL format: gsm, 0x7fabf0008df8
– x=2, open writing: /var/spool/asterisk/voicemail/potsvoicemail/100/tmp/vztzJL format: wav, 0x7fabf0008fd8
– User hung up
== Parsing ‘/var/spool/asterisk/voicemail/potsvoicemail/100/INBOX/msg0000.txt’: == Found
== Parsing ‘/var/spool/asterisk/voicemail/potsvoicemail/100/INBOX/msg0000.txt’: == Found
== Spawn extension (OutsideLines, s, 5) exited non-zero on ‘DAHDI/4-1’
– Hanging up on ‘DAHDI/4-1’
– Hungup 'DAHDI/4-1’
mypbx*CLI> quit
Executing last minute cleanups
$ ls /var/spool/asterisk/voicemail/potsvoicemail/100/INBOX/
msg0000.gsm msg0000.txt msg0000.wav msg0000.WAV[/code]
If someone could show me what I’ve done wrong, I would really appreciate it.

Thanks,

Cedric
cedric.king@king-thompson.com