[asterisk-users] custom voicemail e-mail
Danny Nicholas
danny at debsinc.com
Wed Sep 16 11:53:02 CDT 2009
The ODBC isn't having an effect, otherwise you couldn't run it stand-alone.
Voicemail.conf states that changing the /usr/bin/sendmail -t is done at your
own risk. You could just do a system or AGI command to run your PHP script
whenever the voicemail application is called, like this:
- exten => s,1,dial...
- exten => s,2,voicemail...
- exten => s,3,AGI(php.agi) or
- exten => s,3,system("/usr/bin/php /usr/bin/voicemail.php)
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ron
Sent: Wednesday, September 16, 2009 11:36 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] custom voicemail e-mail
Hi All,
I'm trying to use a php script to send voicemail e-mail so i can send
custom e-mail message based on what mailbox.
on my voicemail.conf i have
mailcmd=/var/www/voicemail.php
but when i tried to call an extension and goe to voicemail i'm not
receiving the e-mail.
but when i execute "php /var/www/voicemail.php" on the shell, i can
receive the e-mail.
how would i know the asterisk is actually executing that command? also
i'm using unixodbc for my voicemail
odbcstorage=mydb
odbctable=mytable
not sure if that has an effect or not. TIA
Regards
Ron
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list