Make Asterisk use Gmail for emailing faxes
While Asterisk provides a simple way to replace sendmail when sending voicemails, the incoming fax portion of Asterisk is not so easily reconfigured. By studying how it handled an incoming fax from the Asterisk CLI I was able to find this perl script: /var/lib/asterisk/bin/fax-process.pl.
This script uses Net::SMTP to send its faxes as attachments via email. We (and by we I mean Daniel) rewired the perl script to use Net::SMTP::SSL instead and made it work with gmail!
There were a few libraries I had to install via cpan:\
- force install F/FL/FLORA/Net_SSLeay.pm-1.30.tar.gz
- install S/SU/SULLR/IO-Socket-SSL-1.30.tar.gz
- install GBARR/Authen-SASL-2.12.tar.gz
- install C/CW/CWEST/Net-SMTP-SSL-1.01.tar.gz
And finally here is the rewritten script! http://gist.github.com/184654