If you don’t have any internet access! how you can read your e-mails?
Because Asterisk pbx is open source based on Linux platform as all developer they know one of them (Nerd Vittles) develop a nice telephony applications named MailCall .
What MailCall do?
Well, MaillCall can reads your email messages to you over the telephone. All you have to do is dial up your Asterisk server from any touchtone telephone.
| Support | |
| Handle multiple email accounts | Y |
| POP3 and IMAP mail accounts | Y |
| SSL | Y |
Downloading and Installing the Components for Asterisk.
Configure Asterisk Dialplan
Install Flite (Open source speech synthesis engine)
cd /root
wget http://nerdvittles.com/aah2/flite-1.3-1.aah.i386.rpm
rpm -ihv flite-1.3-1.aah.i386.rpm
wget http://nerdvittles.com/aah2/app_flite-0.3-1.aah.i386.rpm
rpm -ihv app_flite-0.3-1.aah.i386.rpm
amportal stop
amportal start
Testing Flite. Once you complete the installation process above, load the Asterisk Command Line Interface (CLI) while still logged in as root and be sure that the Flite application is loaded:
asterisk -r
show application flite
quit
You should get a response from Asterisk that looks something like the following:
-= Info about application 'Flite' =- [Synopsis]
Say text to the user, using Flite
[Description]
Flite(text[|intkeys]): This will invoke the Flite TTS engine,
send a text string, get back the resulting waveform and play it to
the user, allowing any given interrupt keys to immediately terminate
and return.
Install Php-imap (Internet Message Access Protocol)
To install php-imap support, run the following commands after logging into your server as root:
yum install php-imap
apachectl restart
MailCall Application
Now we're ready to install the actual application. Log into your server as root and issue the following commands in order:
cd /var/lib/asterisk/agi-bin
Download MailCall Application file(mailcall.zip) from vwww.voiptoday.org in download section - software - Applications.
unzip mailcall.zip
rm -f mailcall.zip
cp nv-config-555.php nv-config-XXXX.php -Notes: XXXX is you new extension number
chown asterisk:asterisk nv*.php
chmod 775 nv*.php
Configure Email Account
The important point here is that you must create a config file for each mail account you wish to access, and it must be named correctly, or nothing works. The file name is important because that's how the application retrieves information about your mail account. The file naming syntax is pretty obvious: nv-config-XXXX
Just make sure your config file name matches the extension you used in the dialplan code above. Once you get the config file named correctly, edit the file and personalize it to your mail settings
nano nv-config-XXXX.php
Configer type of mail account you have (POP3 or IMAP), the port used to access your mail and whether it's encrypted, and your username and email password. Here's what the settings for accounts should look like:
POP3 With SSL
$MAILSERVER="pop.yourmailserver.com:110/pop3/ssl";
$USER = "
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
" ;
$PW = "yourpassword- voiptoday.org" ;
POP3
$MAILSERVER="pop.yourmailserver.com:110/pop3";
$USER = "
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
" ;
$PW = "yourpassword- voiptoday.org" ;
IMAP
$MAILSERVER="yourmailserver.com:143/imap";
$USER = "
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
" ;
$PW = "yourpassword- voiptoday.org" ;
Configure Asterisk Dialplan
Modifying Your Asterisk Dialplan. As indicated above, we need to add some code to the extensions.conf file for each mail account you want to access. The basic code looks like this:
exten => 555,1,Answer
exten => 555,2,Wait(1)
exten => 555,3,DigitTimeout(7)
exten => 555,4,ResponseTimeout(10)
exten => 555,5,Flite("At the beep enter your e-mail password.")
exten => 555,6,Read(PWCODE,beep,4)
exten => 555,7,Flite("Please hold a moment.")
exten => 555,8,AGI(nv-mailcall.php|${PWCODE})
exten => 555,9,Flite("Thank you for calling. Good bye.")
exten => 555,10,Hangup
|
||||
Since the launch of VoIP Today, we had a special interviews done with the VoIP masters in the world. |