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
> [EMAIL PROTECTED]
> If a fax comes in for number 0987654321 it should be e-mail to
> [EMAIL PROTECTED]
> 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,[EMAIL PROTECTED])
exten => 0987654321,1,Macro(receive-fax,[EMAIL PROTECTED])
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@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

Reply via email to