Get Your Email By Telephone: Introducing MailCall for Asterisk

NOTE: For those using an Asterisk 1.4-based system, read our new tutorial. Things are different.

For those that served in the military, there are at least two things you'll probably never forget: the lousy food and mail call. We don't have a solution for the lousy food, but we've got a terrific enhancement for mail call. We've named it MailCall for Asterisk, and it joins dozens of other telephony applications named MailCall with one important difference. Ours is FREE! What do it do? Well, it reads your email messages to you over the telephone. All you have to do is dial up your Asterisk server from any touchtone telephone. Can it handle multiple email accounts? Absolutely. Do the email accounts have to be on the Asterisk server? Nope. Does it work with POP3 and IMAP mail accounts? Yep. Which email messages can it speak? We've tried it successfully with messages from Yahoo, and HotMail, and Google Mail, and Comcast Mail, and RoadRunner, and Outlook Express, and Notes Mail, and Entourage. And it works with plain text messages as well as those with attachments although it doesn't deal with the attachments. No, it can't tell you what kind of picture is lurking in your inbox. Maybe someday. If you happen to be running a current version of TrixBox, then deploying MailCall for Asterisk will take you about 15 minutes. For other versions of Asterisk, you'll need to install Apache, PHP, the php-imap library, and the Flite voice processing system. You can scratch around on Nerd Vittles for most of the tutorials. But the easiest way to get this up and running quickly is to install TrixBox and get the latest updates using our tutorial from last week. You can't beat FREE!

Overview. The way MailCall for Asterisk works is pretty straight-forward. You add a code snippet to the extensions_trixbox.conf config file for each mail account you wish to activate. This is where you tell Asterisk which extension to dial to play back your messages. Then you drop a PHP script into the AGI script directory. Finally you create a configuration file for each email account you wish to set up. The config file tells MailCall the name of your provider, your username, your email password, and the 4-digit password you wish to use to access your messages by phone. Once you reload Asterisk, you'll be off to the races.

Dial the extension and enter your password for this account. MailCall for Asterisk will connect to your mail server and tell you how many messages are sitting in your mailbox. Press 1 to play the most recent message. After it plays, you can press 5 to replay the message, press 6 to play the next most recent message in your mailbox, press 4 to play the previous message (if any), press 0 to retrieve a specific message, press * for a list of options, or press # to exit. These are the same buttons you press for these functions in the Asterisk voicemail system, Comedian Mail. We tried not to reinvent the wheel although the options aren't especially intuitive. We've also built a quick-and-dirty web interface to let you test access to your email accounts. The idea is to get PHP working with your email account and then copy the config file settings to your MailCall config file. You'll find it easier to debug connection problems using a web browser rather than using a telephone.

Try It, You'll Like It. At the risk of bringing our clunker TrixBox development server (with a whopping 128MB of RAM) to its knees, we decided to make it easy for you to see how MailCall for Asterisk works. You can call our Stanaphone number and take it for a spin for up to two minutes. Just dial the number shown in the left margin and enter 1111 as your password. Wait for each prompt to complete before making a selection with your touchtone phone. And understand that the sound quality may not be perfect due to performance limitations of this very old Intel 386 machine. We'll show you how to set up something similar toward the end of this article... hopefully with better hardware. For those that have made a recent donation to Nerd Vittles, thank you! We've raised almost enough money to replace the 386 machine ... with a 486. Hi tech, indeed!

Getting Started. Let's take first things first. Before proceeding with the installation, make sure you are running at least TrixBox 1.1.1 by pointing a web browser at the IP address of your TrixBox server. If you're running an earlier version, log into your server as root, and type trixbox-update.sh update twice to get everything current. Then reboot. If you're running pure Asterisk on some other type of Linux box, come back the day after tomorrow when you finish installing and configuring Apache, PHP, the php-imap library with all dependencies, SendMail, and the Flite speech synthesis engine. Once you get all of the pieces properly configured and talking to each other, you'll be in the same place as those that used our tutorial last week to install TrixBox 1.1.1 at no cost in about an hour.

Installing the Web Interface. To install the web interface that you'll use for testing PHP access to your email account, log into your TrixBox server as root and issue the following commands:

cd /var/www/html
mkdir readmail
cd readmail
wget http://nerdvittles.com/mailcall/webstuff.zip
unzip webstuff.zip
rm -f webstuff.zip
cp config.php config.bak.php

Testing Your First Mail Account. While you're still in the readmail directory, let's set up your first email account to make sure everything is working. If you've configured an email account previously in Outlook Express or some other mail reader, take a look at your configuration there and write down the settings. We'll need to know the fully-qualified domain name for your mail server, the 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 Gmail accounts should look like:

$MAILSERVER="pop.gmail.com:995/pop3/ssl";
$USER = "yourname@gmail.com" ;
$PW = "yourpassword" ;

If your email domain is hosted by a hosting provider such as our favorite, BlueHost, then here's the way the settings should look for your POP3 account:

$MAILSERVER="yourdomain.org:110/pop3";
$USER = "username+yourdomain.org" ;
$PW = "password" ;

For an IMAP mail account, the settings should look something like the following:

$MAILSERVER="yourdomain.org:143/imap";
$USER = "username+yourdomain.org" ;
$PW = "password" ;

Some ISPs require both your username and the domain as your login name. Others only want your account name. Whatever is working with your current mail client to successfully retrieve your email is what you should use here. Note that you must add both :portnumber and either /pop3 or /imap onto the end of your mail domain entry. We've made a duplicate of the config.php file for you just in case you mess up. Once you have your settings in hand, edit the config.php file in the readmail folder: nano -w config.php. Make the necessary entries and be sure you preserve the quotes around the entries as well as the semicolon at the end of each line. When you're finished, save your changes: Ctrl-X, Y, then Enter. Now open a web browser and go to http://IPaddressOfYourTrixBox/readmail/. You should get a list of messages in your Inbox. When you click on a message, it should display in the browser. Get this working first before proceeding. Don't worry if some of the messages don't look quite right. We made some improvements in the MailCall application after the web interface was completed.

Newbie Alert: We ALWAYS love to hear from the Nerd Vittles Fan Club but ... If you have problems getting this to work, DON'T SEND ME EMAILS ASKING FOR HELP. Post your setup and your problem on the TrixBox Help Forum and someone (maybe even me) will respond. This assists not only you but also anyone else with a similar problem. The blog format used for Nerd Vittles just isn't suitable for tech support ... and neither am I usually.

Modifying Your TrixBox Dialplan. As indicated above, we need to add some code to the extensions_trixbox.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

The only change you need to make is in the extension number (555) on each line. This tells Asterisk what number you'll be calling to retrieve your messages. If you want to access more than one email account, then you simply duplicate the above code with different extension numbers. Just be sure that all 10 lines of each code snippet have the same extension number. If you don't like four-digit phone passwords, you can change the length to anything that makes you sleep well (in line 6 above). Now open up the TrixBox web interface by pointing a web browser at your TrixBox server. Then choose Config Edit on the main Configuration and Administration screen. Once phpconfig opens, click on extensions_trixbox.conf. Add the above code in the [from-internal-trixbox] context (section) of the file. And click the Update button once you've adjusted the extension number to meet your needs.

Installing MailCall for Asterisk. 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
wget http://nerdvittles.com/mailcall/mailcall.zip
unzip mailcall.zip
rm -f mailcall.zip
cp nv-config-555.php nv-config.php
chown asterisk:asterisk nv*.php
chmod 775 nv*.php

The zip file contained two files: nv-mailcall.php (the MailCall for Asterisk application) and nv-config-555.php (the email config file for extension 555). And we made a backup copy of the config file: nv-config.php. 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-extensiontocall.php. 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 which we tested with the web interface. Be sure to also replace the phone password entry of 1111 with a four-digit numeric password that you will use to access your email. Save your changes and then reload Asterisk: amportal restart. Now pick up a phone on your Asterisk system and dial 555. Presto! You've got email!

Remote Access to MailCall for Asterisk. You may or may not want access to MailCall from phones outside your Asterisk system. If you do, here's a simple way to implement it. In a nutshell, you'll want to set up an account with a provider such as Stanaphone which provides a free DID number and free incoming calls. Or just add an extra DID number to your TelaSIP account. Then add an extension number to your system using freePBX and configure it to always forward calls to 555 or whatever number you used for MailCall. Finally, create an Incoming Route in freePBX which sends incoming calls on the Stanaphone or TelaSIP DID number to extension 500. Why not just forward the calls to 555 directly? Because freePBX doesn't know about the 555 extension since it's embedded in the extensions_trixbox.conf file.

We covered the Stanaphone setup process in our TrixBox tutorial. Once you get it set up, add a new extension to your system (e.g. 500). Then pick up a phone on your system and dial *72. When prompted for the extension, enter 500 or whatever new extension you created. When prompted for the forwarding number, enter 555 or whatever extension you used for MailCall. Next choose Setup->Inbound Routes->Add Incoming Route in freePBX. Add entries that look like this using your new DID number:

DID Number 3473451234
CallerID Number [leave blank]
Zaptel Channel [leave blank]
FAX Extension freePBX default
FAX Email [leave blank]
FAX Detection Type nvfax
Pause After Answer 2
Privacy Manager no
Alert Info [leave blank]
Destination Core: 500

Click the Submit button when you finish and then the Red Bar to reload Asterisk. Now you can dial your Stanaphone number from any phone anywhere to access your email. This is exactly how the Nerd Vittles MailCall demo works.

Adding Additional Mail Accounts to MailCall for Asterisk. Now you'll want to set up a way for the Little Mrs. to check her email, too. Call it an early Valentine's present. Step 1 is to add 10 more lines of dialplan code (as we did above) to your extensions_trixbox.conf file using a new extension number, e.g. 556. Second, add a new MailCall config file in /var/lib/asterisk/agi-bin for this extension, e.g. nv-config-556.php. Third, edit the new config file to personalize it to your spouse's email settings and add a dial up password. Finally, restart Asterisk: amportal restart. Now dial the extension and be sure it works. Then impress the Little Mrs.

MailCall for Asterisk Wish List. This is just version 1 of what we hope will be a long-running hit application for the Asterisk community. Your feedback can help us with future versions. If there are messages that don't get decoded properly, post a comment and let us know where the message came from and its format. And leave a valid email address so that we can get back to you to obtain a copy of the message. Your email address does NOT get published in the comment. We'd also appreciate your posting a comment if you have a suggestion for version two: subject first then play message option, the ability to delete messages, function to reply to messages with canned text messages or reply to messages with voice recordings, the ability to send new messages to one or more prestored email addresses. The sky's the limit and the price is right! So let us hear from you. And keep the donations coming! We've got a new fishing boat to pay for.

P.S. to Software Developers and Those That Need Them. We get lots of emails and queries about development of PHP and AGI scripts for Asterisk and TrixBox. This is as good a time as any to reveal our dirty little secret and clue you in on just how easy application development is on the TrixBox platform with its underlying Linux, Apache, PHP, SendMail, and Perl engines. If you do a little Googling for mailcall, you'll quickly learn that there are dozens of commercial products out there that will read you your email for a fee. The starting price is about $100 a year per mail account and quickly escalates depending upon how proprietary your operating environment is and how personalized you want your service. Let's compare that to the TrixBox solution we've provided today. While MailCall for Asterisk is still admittedly a little rough around the edges, we're almost embarrassed to tell you that there is less than two days development work in this project. And that includes most of the time to write this article. So, if you're a developer, get on the bandwagon. We'll be glad to feature your projects on Nerd Vittles. If you're a company with a phone system that could use a facelift, let us know. We'll try to put you in touch with a starving artist that can really make your day without bankrupting your company. Enjoy!


Nerd Vittles Fan Club Map. Thanks for visiting! We hope you'll take a second and add yourself to our Frappr World Map compliments of Google. In making your entry, you can choose an icon: guy, gal, nerd, or geek. For those that don't know the difference in the last two, here's the best definition we've found: "a nerd is very similar to a geek, but with more RAM and a faster modem." We're always looking for the best BBQ joints on the planet. So, if you know of one, add it to the map while you're visiting as well.

Hosting Provider Special. Just an FYI that the Nerd Vittles hosting provider, BlueHost, has raised the bar again on hosting services. For $6.95 a month, you can host up to 6 domains with 30GB of disk storage and 750GB of monthly bandwidth. Free domain registration is included for as long as you have an account. That almost doubles last month's deal, and it really doesn't get any better than that. Their hosting services are flawless! We oughta know. We've tried the best of them. If you haven't tried a web hosting provider, there's never been a better time. Just use our link. You get a terrific hosting service, and we get a little lunch money.

Want More Projects? For a complete catalog of all our previous Asterisk projects, click here. For the most recent articles, click here and just scroll down the page.

Headline News for the Busy Executive and the Lazy Loafer. Get your Headline News the easy way: Planet Asterisk, Planet Gadget, Planet Mac, and Planet Daily. Quick read, no fluff.

Got a PDA or Web-Enabled Smartphone? Check out our new PDAweather.org site and get the latest weather updates and forecasts from the National Weather Service perfectly formatted for quick download and display on your favorite web-enabled PDA, cellphone, or Internet Tablet. And, of course, it's all FREE!


Some Recent Nerd Vittles Articles of Interest...

Add this post to...
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • blinkbits
  • blogmarks
  • Blogosphere News
  • feedmelinks
  • LinkedIn
  • Live
  • MySpace
  • NewsVine
  • Propeller
  • Reddit
  • Scoopeo
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • ThisNext
  • Yigg

34 Comments

  • By Rafael Cortes, Wednesday, July 19, 2006 @ 7:54 am

    Whoa… Now this is a cool way to use Flite! It works just perfectly! Another hit from Ward!!!!! Thank you. I am trying to figure out a way to add this app as an IVR menu… I will do it during my “free” evening. Thanks again Ward!

  • By Manula, Wednesday, July 19, 2006 @ 12:35 pm

    Bummer…I got stuck at the very beginning. I entered my gmail account info but when I point my browser to the webmail page on my asterisk server I get this error:
    Fatal error: Call to undefined function: imap_open() in /var/www/html/readmail/index.php on line 8

    Am I the only one? I tried to reboot but didn’t make a difference. Will keep trying…

    [WM: If you're getting a fatal error with the imap_open function, then the php-imap library is not loaded on your Asterisk system. Be sure you're running TrixBox 1.1.1, or you'll get this error. The tutorial explains how to upgrade your system to 1.1.1. Good luck.]

  • By Manula, Wednesday, July 19, 2006 @ 1:04 pm

    Yeah, I realised that must be the problem. But my Trixbox is not updating. I ran the update command and I’m getting this:

    Automatic update check…Version 1.0.0.8 available on the server.
    You have the latest version.
    trixbox Update
    (V.1.0.0.8)

    Is this common? I did run the command twice (well, actually, many more times by now…).

    [WM: Post the problem in the Help forum of trixbox.org.]

  • By Todd, Wednesday, July 19, 2006 @ 2:19 pm

    Great app, looking forward to installing it.

    Suggestion for future features..

    How about a way for MailCall to go out and pop an account and then call you when you get emails and read them to you.

    We have used a service like this before to pop an account which only gets emails when a server is down. Since SMS is pretty unreliable with most cell providers in the US and pagers have limited coverage, this would allow critical server down alerts to anywhere the geek can get a call.

    [WM: Great suggestion. I'll put it on my list.]

  • By Derek, Wednesday, July 19, 2006 @ 5:11 pm

    When i go to http://mytrixboxipaddress/readmail i get the following error:-

    Forbidden
    You don’t have permission to access /readmail/ on this server.

    I have tried changing the ownership of the readmail directory from root to asterisk but it still doesn’t work.

    [WM: Sounds like the directory is empty.]

  • By Bronson, Wednesday, July 19, 2006 @ 10:05 pm

    Mr. Mundy, thanks for your hard work on Asterisk. You make a complicated setup look like childs play. Mailcall is just icing on the cake! Thanks again.

  • By Scott, Thursday, July 20, 2006 @ 12:33 am

    Sounds nifty. I will be looking to implement this as soon as possible. Looking to test it out but can’t find the stanaphone number. Thanks!

    [WM: For the visually impaired, email me your email address, and I will forward the number.]

  • By Alan, Sunday, July 23, 2006 @ 3:36 pm

    Nice powerful addition to Trixbox. Found a possible script bug… after listening to an email the first time, then hitting * and 5 to hear it again… the message and header comes up empty.

    [WM: If you're using a POP email account, be sure you configure it to not delete messages from the POP server once they are downloaded. Otherwise, you'll see the behavior you observed here since that message no longer exists on the POP server. Thanks for writing.]

  • By HVS, Tuesday, July 25, 2006 @ 10:51 am

    I installed Flite… but i didnt see any flite.conf in the /etc/asterisk

    It seems to be running fine without the flite.conf file. But I keep getting the warning…
    Jul 25 10:44:29 WARNING[17301]: app_flite.c:95 flite_exec: Flite: No such configuration file flite.conf

    Also is it possible to change the male voice to female? I guess it will all be done in flite.conf…

    can someone please post the flite.conf file that is supposed to be there? Thank you..

  • By Tom Lynn, Sunday, July 30, 2006 @ 10:36 pm

    I can imagine when I call into this app, if I also have a voicemail account, I may hear messages telling me I have new voicemail. Can you identify these notifications and then optionally offer the caller a transfer to voicemail at the end of the list of e-mails?

    BTW, I’d still love to see shared lines in asterisk, but from what I read on the lists, it won’t be available until 1.4 or beyond.

    Tom

    [WM: The notifications suggestion is a good one. Unfortunately, it will only work with IMAP unless the app itself sets up a facility for keeping track of messages (which would be a royal pain with a freebie app). But I'll certainly try to add it down the road for IMAP mail accounts. That one's pretty easy which is one of my prerequisites for most projects these days.]

  • By yunuen, Thursday, August 3, 2006 @ 3:26 am

    im working of a php script now that would work similar as toms suggestion above in #4, to check for mail every so many minutes and send a text message or a callback via asterisk.

    can anyone help out with the callback from asterisk part so we can set this up?

    the i

  • By slingo, Wednesday, August 23, 2006 @ 9:43 am

    great work,

    is there a method or a config to do in the application to read only the “text” content and not the whole HTML core of the email message?

    [WM: Not yet. Send me a sample.]

  • By yunuen, Thursday, August 31, 2006 @ 6:06 pm

    i have postedon the tribox forums with no luck so maybe someone here can help out.

    i want to know how to set this up with yahoo and hotmail.
    and will it work in spanish?

  • By Rafael Cortes, Friday, September 1, 2006 @ 10:08 am

    yunuen: In hotmail you’d have to pay for premium service in order to get POP3 Access (which is required for this app to work), about yahoo I don’t really know how to get POP3 or IMAP ao I cannot help you there. As for the spanish part, I am still looking for a good speech synthesis engine that would work in spanish, the ones available are very crappy, and I haven’t heard of anyone trying to make them work with Asterisk. Good Luck!

  • By dynaguy, Monday, September 25, 2006 @ 3:24 pm

    I am failed on the first step:

    Fatal error: Call to undefined function: imap_open() in /var/www/html/readmail/index.php on line 8

    I am using Trixbox 1.2.

    [WM: See comment #2 above. The PHP-IMAP library is missing from the 1.2 and 1.2.2 builds so MailCall won't work. I've notified Andrew.]

  • By Kotek, Monday, October 9, 2006 @ 3:16 am

    Is there any chance to describe the setup of Asterisk with RealSpeak? All integrated tts does not read Polish emails and texts correctly (ISO-8859-2 messages get converted to=B6 and the likes which makes message unreadable when listening) and step by step guide to connect other tts engine would be great. Other than that, MailCall works great.

  • By Pinakin, Thursday, October 19, 2006 @ 10:28 pm

    Hi, I’m running Trixbox 1.2.2 and getting following error:

    Fatal error: Call to undefined function: imap_open() in /var/www/html/readmail/index.php on line 8

    Can any one help me??

    [WM: PHP-IMAP library seems to be missing from the 1.2 and 1.22 builds which means MailCall won't work. I've notified Andrew, and he's working on including it in 1.2.3.]

  • By technogig84, Saturday, October 28, 2006 @ 2:59 am

    Great job! I was able to install the mailcall but it doesnt detect my options, 1 to read emails or # to quit,these options doesnt work. Appears that the syntax is missing. Any ideas?

    [WM: Check the DTMF mode of your provider and your phones. Sounds like the touchtones aren't getting passed correctly.]

  • By Octothorpe, Monday, October 30, 2006 @ 7:54 pm

    This mail-call is great, the only suggestion that I have for improvement would be to include an option to have it automatically call my cell phone (or an extension) when new mail arrives.

    [WM: Good idea. We'll add it to our Wish List.]

  • By Jim, Wednesday, November 15, 2006 @ 4:22 pm

    Regarding comment 10: Maybe the easiest way to implement for POP and IMAP would be to add the ability to filter email (i.e. skip) based on subject substring or sender, add this to the config file, and you’re set. If email is from ‘boss@work’, then skip…
    Who knows.

    Also, many html email are multi-part encoded with pain text at the beginning… Read up until “_=_NextPart” or “Content-Type: text/html”

  • By vikas, Wednesday, November 29, 2006 @ 10:44 am

    [root@localhost agi-bin]#
    — Executing Answer(”SIP/2001-0818eb50″, “”) in new stack
    — Executing Wait(”SIP/2001-0818eb50″, “1″) in new stack
    — Executing DigitTimeout(”SIP/2001-0818eb50″, “7″) in new stack
    Nov 29 11:34:39 WARNING[8914]: pbx.c:5869 pbx_builtin_dtimeout: DigitTimeout is deprecated, please use Set(TIMEOUT(digit)=timeout) instead.
    — Set Digit Timeout to 7
    — Executing ResponseTimeout(”SIP/2001-0818eb50″, “10″) in new stack
    Nov 29 11:34:39 WARNING[8914]: pbx.c:5845 pbx_builtin_rtimeout: ResponseTimeout is deprecated, please use Set(TIMEOUT(response)=timeout) instead.
    — Set Response Timeout to 10
    Nov 29 11:34:39 WARNING[8914]: pbx.c:1700 pbx_extension_helper: No application ‘Flite’ for extension (from-sip-internal, 555, 5)
    == Spawn extension (from-sip-internal, 555, 5) exited non-zero on ‘SIP/2001-0818eb50′
    — Executing Hangup(”SIP/2001-0818eb50″, “”) in new stack
    == Spawn extension (from-sip-internal, h, 1) exited non-zero on ‘SIP/2001-0818eb50′

  • By Geo, Sunday, December 10, 2006 @ 8:44 am

    Hi

    I would like you tell me how to make such configuration that will let users to enter pop3 information in forms in an php/mysql web application, to let me integrate this feature into my existing database/web application, because adding information by hands in the .conf file for every new user that want to register, is not a good practice. Could you give me some advice?

    Regards George

  • By Jason, Monday, December 18, 2006 @ 2:33 pm

    I seem to be having problems getting this to work with PHP5. I am pretty good at PHP, but I haven’t figured out how to debug correctly through Asterisk. Any ideas? On one system, I downgraded PHP to version 4. However, on the current system - I can not.

    Best Regards,

    Jason

  • By Davy Chan, Tuesday, December 19, 2006 @ 6:11 am

    Jason, if you go onto Asterisk’s CLI and change the verbosity level to 5 (set verbose 5) and the debug level to 1 (set debug 1), you should see the error messages coming from the dialplan. Then, its just a matter of debugging the problem as if the PHP was running on a Web server.

    See ya…

    d.c.

  • By Jason, Tuesday, December 26, 2006 @ 10:47 pm

    Davy, thanks! I had actually tried that. This wasn’t too important as I can now check my mail via my cellular phone. However, I still wanted to figure it out. It was so simple. I just had to use PHP CGI instead of PHP (and I’m not sure why I had to change the path to the executable… ). I hope this helps someone else out!

  • By Cheng, Tuesday, February 27, 2007 @ 12:33 pm

    Great application and thanks, I got stuck to retrieve mail and also got error from the web.

    Fatal error: Call to undefined function: imap_open() in /var/www/html/readmail/index.php on line 8

    My machine is running on trixbox 1.2.3. I searched the trixbox forum but all posts seemed old and related to previous version (trixbox 1.2)that’s no help.

    Any advice?

    [WM: See #18 above. Our PBX-in-a-Flash script for TrixBox 1.2.3 solves the problem. Or you can read our TrixBox 1.2.3 tutorial if you'd prefer to fix it manually.]

  • By Alessio, Wednesday, April 18, 2007 @ 9:36 am

    I don’t know how to use festival instead of Flite (I have festival with italian voice !)

    Anyone can hel me ?

  • By Jonathan, Thursday, April 26, 2007 @ 6:33 pm

    When you email your voicemail, it defaults the from to be asterisk@domain.com, how can you configure asterisk to use a different from for example yourvoicemail@domain.com??

    [WM: Take a look at our TrixBox tutorial. It's all in there.]

  • By Keith, Friday, June 1, 2007 @ 9:15 pm

    Minor suggestion:
    In config.php, use single quotes for the password rather than double. If someone chose a dollar sign ($) in the password, it will not work. Ask me how I know.

  • By Osay, Thursday, July 12, 2007 @ 9:48 am

    Great! I’m however having problems with configuring an MS Outlook account. I use Entourage on my Mac for accessing my email and have used the same settings but I get an error about local certificate. I tried my gmail account and flite only requests my email password and then tells me goodbye without actually opening the mailbox. The test made after downloading and installing the webstuff works fine, it lists my gmail account but mailcall does not read the mails?

    Any reason for this?

  • By Shine Rajan, Thursday, October 25, 2007 @ 9:34 am

    I was trying to install the mailcall feature and it was giving me the following error-
    Warning: imap_open(): Couldn’t open stream {swiftng.com:143/imap/notls} in /var/www/html/readmail/index.php on line 8

    Warning: imap_headers(): supplied argument is not a valid imap resource in /var/www/html/readmail/index.php on line 10

    Warning: imap_status(): supplied argument is not a valid imap resource in /var/www/html/readmail/index.php on line 21
    imap_status failed: No such host as swiftng.com
    Warning: imap_close(): supplied argument is not a valid imap resource in /var/www/html/readmail/index.php on line 34

    Is it becos I am running trixbox 2.2 and that mailcall supports 1.1.1 ?

    [WM: Yep. trixbox 2.2 has a whole bunch of missing libraries. Sorry.]

  • By Zakaria, Monday, October 29, 2007 @ 6:42 am

    Hi,
    Check the connection parameters (user name, pswd,..)you provided in imap_open(), also try the secured port 995 unstead of 110 . It seems that your application cannot connect to your email server

  • By Nabil, Friday, December 28, 2007 @ 9:28 pm

    Hi, wanted to let you know that it is working well on:
    Asterisk@Home version 2.2. Thanks a lot.

  • By Mark T, Saturday, December 29, 2007 @ 4:06 am

    Had mailcall running on my old box(vry nice app)
    Installed PBXinaFlash and discovered that mailcall needs a heavy update.
    So : Dont try to install current ver of mailcall on a new system.
    Looking forward to a updated version.

Other Links to this Post

RSS feed for comments on this post.

Leave a comment

Powered by WP Hashcash

WordPress Themes