MailCall for Asterisk 1.4 Ready for Testing

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
20,217
Reaction score
5,974
In keeping with the PBX in a Flash promise, here is #7 in the Nerd Vittles script collection. In under 15 seconds, it installs the new MailCall for Asterisk 1.4 application on PBX in a Flash systems only. Run the install only once! After installation, you must first configure BOTH the web interface (for testing that it works!) and MailCall to tell it how to access your email accounts. Then you can access MailCall by dialing 5-5-5 from any phone on your system. Complete documentation and installation instructions for other Asterisk 1.4 systems is available now in article #200 on Nerd Vittles. Happy Birthday to Us!

:party:

If you'd like to test this (do it only once!!), log into your PBX in a Flash server as root and issue the following commands:
Code:
[COLOR=black]
cd /root
wget http://bestof.nerdvittles.com/applications/mailcall/mailcall.pbx
chmod +x mailcall.pbx
./mailcall.pbx
amportal restart
[/COLOR]
As always, your feedback is appreciated!!
 
Readmail works fine but .... mailcall tells me every time good bye ! (despite the fact i followed your installation process step by step....)
 
  1. Is this a PBX in a Flash server?
  2. Does the phpinfo() display show that php-imap is running?
  3. What does the Asterisk CLI show when a call is placed?
  4. Did you type ALL of the same info for your account in both the web and MailCall configs?
  5. What type mail account and who is the provider?
 
Fyi

I already have a context for extension 555 (chanspy) in my extensions_additional.conf:

Code:
[app-chanspy]
include => app-chanspy-custom
exten => 555,1,Macro(user-callerid,)
exten => 555,n,Answer
exten => 555,n,Wait(1)
exten => 555,n,ChanSpy()
exten => 555,n,Hangup

; end of [app-chanspy]
This appears to be a default feature code on both PBXiaF boxen I admin.

To disable just go to your FreePBX Admin panel > Click 'Feature Codes' on the left > Find 'Chan Spy' under core > Save & Apply. Done.


Not sure if it's a problem, just a headsup.
 
Or you can change the 555 to anything you like for MailCall. Just edit the 10 lines of dialplan code that goes into extensions_custom.conf.
 
:)

But my way save's steps!! ;) j/k

Congrats on you 200th article! Work well loved and highly appreciated!!

Thanks,
tel0p
 
Works Great with Google For Your Domain Mail Accounts!

Just wanted to let you know that this works great with my Google for Your Domain mail accounts. Thank you!
 
What happens if, say, perhaps someone didn't find this page saying to only do it once and they may have tried several times because it didn't look like anything happened?
 
imap_status failed: Can't connect to gmail-imap.l.google.com,143: Connection timed out

This is all that I get for the web portion. What have I missed? My config file is below, edited slightly of course.

<?php
$MAILSERVER="imap.gmail.com:143/imap";
$USER = "[email protected]" ;
$PW = "mypassword" ;
?>
 
Readmail works fine but .... mailcall tells me every time good bye ! (despite the fact i followed your installation process step by step....)

Does this script assume the email account's password must be numerical only, as only numerical entries may be entered through the phone?

If so, is it possible to set an arbitrary password or use the voicemail password... and then have the script use config.php to actually login to the email?
 
Problems with mailcall

I'm getting the following when I go to http://{ip}/readmail/

Code:
imap_status failed: Too many login failures
And in my /var/log/httpd/error_log I get this

Code:
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Warning:  imap_headers(): supplied argument is not a valid imap resource in /var/www/html/readmail/index.php on line 10
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Warning:  imap_header(): supplied argument is not a valid imap resource in /var/www/html/readmail/index.php on line 14
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Notice:  Trying to get property of non-object in /var/www/html/readmail/index.php on line 15
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Notice:  Trying to get property of non-object in /var/www/html/readmail/index.php on line 16
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Warning:  imap_status(): supplied argument is not a valid imap resource in /var/www/html/readmail/index.php on line 21
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Warning:  imap_close(): supplied argument is not a valid imap resource in /var/www/html/readmail/index.php on line 34
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Notice:  Unknown: Login failed: authentication failure (errflg=1) in Unknown on line 0
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Notice:  Unknown: Login failed: authentication failure (errflg=1) in Unknown on line 0
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Notice:  Unknown: Login failed: authentication failure (errflg=1) in Unknown on line 0
[Mon Dec 01 10:56:13 2008] [error] [client 10.7.7.99] PHP Notice:  Unknown: Too many login failures (errflg=2) in Unknown on line 0
I'd love to get this working. Any ideas? Anyone still watching this post?

Best,
Andy
 
provider

Ward,

I tried both my work e-mail (which I maintain - straight imap from postfix) and my google-apps account though I'm sure I didn't get SSL setup correctly.

Either way, the errors in the /var/log/httpd/error_log lead me to believe I'm missing something in my installation vs a config problem - what do you think?

Best,
Andy
 
I have installed this app, and have it working very well with my smtp server.

However that steven Hawkins voice of flite drives me nuts !

so i thought i would change some code.

Code:
exten => 6245,1,Answer
exten => 6245,2,Wait(1)
exten => 6245,3,Set(TIMEOUT(digit)=7)
exten => 6245,4,Set(TIMEOUT(response)=4)
;exten => 6245,5,Flite("At the beep enter your e-mail password.")
exten => 6245,5,Swift ("At the beep enter your e-mail password.")
exten => 6245,6,Read(PWCODE,beep,6)
;exten => 6245,7,Flite("Please hold a moment.")
exten => 6245,7,Swift("Please hold a moment.")
exten => 6245,8,AGI(nv-mailcall.php|${PWCODE})
;exten => 6245,9,Flite("Thank you for calling. Good bye.")
exten => 6245,9,Swift("Thank you for calling. Good bye.")
exten => 6245,10,Hangup
in an attempt to use cepstral but failed !

now it just hangs up the call on me if i change it back to flite it works

What am i missing here please.
 
Hi

What version of Asterisk.

Code:
exten => 6245,8,AGI(nv-mailcall.php|${PWCODE})

should be

Code:
exten => 6245,8,AGI(nv-mailcall.php,${PWCODE})

if you are using 1.6

Joe
 
Hmm No !

Code:
Version 1.4.62.2
Code:
CentOS release 5.2 (Final) :64 Bit Kernel: 2.6.24-10-pve
 
I have changed this line as per your recommendation
Code:
exten => 6245,8,AGI(nv-mailcall.php|${PWCODE})
Thanks Joe you must have eyes like a hawk.

But no movement on the swift / flite issue.

I commented out all the lines the had flite in them, and uncomment the lines with swift, i guess this app just dont like her voice. never mind i will be adding some more emails addresses to this when i can find a few mins so maybe it will resolve itself.

It's Strange that i have changed this in the past and it worked and also strange it was working with a typo.
 
I have the same prob - cant get allison to work for me :(

nvm - got it to work
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top