Hi,
Software and system info
- FreePBX v2.3.0RC1.1
- voicemail module v2.0.3.2
- Asterisk 1.4.10
- CentOS 4.5
- sendmail, which listens to connections from localhost on port 25 (unauth) and 587 (auth). It’s using a smarthost to relay mail. Other functions on the same machine (e.g. the hourly errors from the amportal cron job) reliably generate emails that are sent as expected.
Unfortunately, I can’t seem to convince FreePBX/Asterisk to send me voicemails as email attachments. e.g. extension 100 has “Voicemail & Directory Status” set to “Enabled”, the voicemail password is set to one that works via the phone, the email address is valid ([email protected]), “email attachment” is set to “yes”, and yet the voicemail email attachment is never sent. I can check the voicemail via the web ARI and via the phone interface, but like I said, no email. The sendmail logs indicate that nothing is attempting to connect when Asterisk should be sending the email.
Also, I created a brand new extension just for testing this and had the same results. The voicemail was recorded and is accessible via the phone interface, but there’s no attempt to send it via email.
This used to work with a recent FreePBX beta - I’m not sure when exactly it stopped.
Any suggestions? Otherwise, things are working well, but I’d really like to get this going again. )
Here are a few sanitized yet relevant lines from /var/log/asterisk/full
[…begin quote…]
[Aug 8 234733] VERBOSE[30667] logger.c – Executing [s-BUSY@macro-vm3] VoiceMail(“SIP/100-[elided]”, “100@default|b”) in new stack
[Aug 8 234733] VERBOSE[30667] logger.c – <SIP/100-[elided]> Playing ‘/var/spool/asterisk/voicemail/default/100/greet’ (language ‘en’)
[Aug 8 234735] VERBOSE[30667] logger.c – <SIP/100-[elided]> Playing ‘vm-isonphone’ (language ‘en’)
[Aug 8 234736] VERBOSE[30667] logger.c – <SIP/100-[elided]> Playing ‘vm-intro’ (language ‘en’)
[Aug 8 234742] VERBOSE[30667] logger.c – <SIP/100-[elided]> Playing ‘beep’ (language ‘en’)
[Aug 8 234742] VERBOSE[30667] logger.c – Recording the message
[Aug 8 234742] VERBOSE[30667] logger.c – x=0, open writing /var/spool/asterisk/voicemail/default/100/tmp/hnAcpJ format wav49, 0x96b0290
[Aug 8 234742] VERBOSE[30667] logger.c – x=1, open writing /var/spool/asterisk/voicemail/default/100/tmp/hnAcpJ format gsm, 0x9706348
[Aug 8 234742] VERBOSE[30667] logger.c – x=2, open writing /var/spool/asterisk/voicemail/default/100/tmp/hnAcpJ format wav, 0x974c4c8
[Aug 8 234750] VERBOSE[30667] logger.c – User ended message by pressing #
[Aug 8 234750] VERBOSE[30667] logger.c – <SIP/100-[elided]> Playing ‘auth-thankyou’ (language ‘en’)
[Aug 8 234750] DEBUG[30667] app_macro.c Executed application Voicemail
[Aug 8 234750] VERBOSE[30667] logger.c – Executing [s-BUSY@macro-vm4] Goto(“SIP/100-[elided]”, “exit-SUCCESS|1”) in new stack
[Aug 8 234750] VERBOSE[30667] logger.c – Goto (macro-vm,exit-SUCCESS,1)
[Aug 8 234750] DEBUG[30667] app_macro.c Executed application Goto
[Aug 8 234750] VERBOSE[30667] logger.c – Executing [exit-SUCCESS@macro-vm1] Playback(“SIP/100-[elided]”, “goodbye”) in new stack
[Aug 8 234750] VERBOSE[30667] logger.c – <SIP/100-[elided]> Playing ‘goodbye’ (language ‘en’)
[Aug 8 234751] DEBUG[30667] app_macro.c Executed application Playback
[Aug 8 234751] VERBOSE[30667] logger.c – Executing [exit-SUCCESS@macro-vm2] Hangup(“SIP/100-[elided]”, “”) in new stack
[Aug 8 234751] VERBOSE[30667] logger.c == Spawn extension (macro-vm, exit-SUCCESS, 2) exited non-zero on ‘SIP/100-[elided]’ in macro ‘vm’
[Aug 8 234751] VERBOSE[30667] logger.c == Spawn extension (macro-vm, exit-SUCCESS, 2) exited non-zero on ‘SIP/100-[elided]’ in macro ‘exten-vm’
[Aug 8 234751] VERBOSE[30667] logger.c == Spawn extension (macro-vm, exit-SUCCESS, 2) exited non-zero on ‘SIP/100-[elided]’
[Aug 8 234751] DEBUG[30667] cdr_addon_mysql.c cdr_mysql inserting a CDR record.
[Aug 8 234751] DEBUG[30667] cdr_addon_mysql.c cdr_mysql SQL command as follows INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode) VALUES (‘2007-08-08 234718’,’“Graham” <100>’,‘100’,‘100’,‘ext-local’, ‘SIP/100-[elided]’,‘SIP/100-[elided]’,‘Hangup’,’’,33,18,‘ANSWERED’,3,’’)
[…end quote…]
(Note that I was calling my own extension to leave this test voicemail. It arrived in my voicemail box, but no email.)
thanks,
Graham