[Asterisk-Users] fax to email

Altus Snyman altus at stormcorp.co.za
Thu Jan 6 05:24:45 MST 2005


and email-fax??
The other way around


On Thu, 2005-01-06 at 14:17, Andrew Kohlsmith wrote:
> On January 6, 2005 06:55 am, Altus Snyman wrote:
> > Good day all
> > I have a pri card,e100
> > What I want to do is
> > If a fax comes in for number 1234567890 it should be e-mail to
> > user1 at domain.co.za
> > If a fax comes in for number 0987654321 it should be e-mail to
> > user2 at domain.co.za
> > ens....
> 
> Yup it's easy.  There are examples of how to effectively deal with faxes on 
> www.voip-info.org, and then you just combine the macro given there with some 
> extension magic like this:
> 
> exten => 1234567890,1,Macro(receive-fax,user1 at domain.co.za)
> exten => 0987654321,1,Macro(receive-fax,user2 at domain.co.za)
> etc.
> 
> Or you could have the receive-fax macro look up the email address from the 
> extension received...  something like
> 
> exten => 1234567890,1,Macro(receive-fax,${EXTEN})
> 
> and then inside the macro, something like
> 
> exten => s,n,DBGet(EMAILTO,${ARG1})
> ...
> exten => s,n,system(sendmail ${EMAILTO}, ${FAXFILENAME})
> 
> These are just pseudocode examples -- you need to look at the receive-fax 
> macro from www.voip-info.org or even 
> http://scottstuff.net/scott/archives/000152.html (found with google terms 
> "receive fax asterisk"), although the latter needs a little updating to work 
> with current Asterisk.
> 
> Also note that app_rxfax is *VERY* touchy about the version of the library 
> libtiff that is on your system.  This is not an app_rxfax problem, libtiff 
> has some bugs when dealing with fax images in certain versions.  Follow the 
> directions for building app_rxfax and spandsp very carefully, as they are 
> rather rigid.
> 
> I used to have segfault issues all the time with app_rxfax -- I have now 
> received well over a thousand faxes without a single crash.
> 
> -A.
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list