[asterisk-users] ReceiveFAX and SendFAX questions

Magnus Benngård magnus.b at inputinterior.se
Sun Jan 24 01:51:23 CST 2010


Morning,

Have some questions regarding receiving and sending faxes...
1:st example:
exten => 101,1,Answer()
exten => 101,2,Wait(3)
exten => 101,3,ReceiveFAX(/var/spool/asterisk/tmp/fax.tiff)
exten => 101,4,System(tiff2pdf -p A4 /var/spool/asterisk/tmp/fax.tiff >
/var/spool/asterisk/tmp/fax.pdf)
exten => 101,5,System(mutt -s 'New FAX for you sir' -a
/var/spool/asterisk/tmp/fax.pdf magnus.b at inputinterior.se < /dev/null)
I do receive the fax, the fax got converted to a pdf but 101,5 never get
"executed", when i look in cli, last line is 101,4... can any1 se why?

2:nd example:
exten => 101,1,Answer()
exten => 101,2,Wait(3)
exten => 101,3,ReceiveFAX(/var/spool/asterisk/tmp/fax.tiff)
exten => 101,4,System(fax.sh)
cat /usr/bin/fax.sh
tiff2pdf -p A4 /var/spool/asterisk/tmp/fax.tiff >
/var/spool/asterisk/tmp/fax.pdf
mutt -s 'New FAX for you sir' -a /var/spool/asterisk/tmp/fax.pdf
boras at inputinterior.se < /dev/null
That works, i receive the fax as an attachment, but as I asked before why
is
not example 1 working?

SendFAX question:
exten => 101,1,Answer()
 exten => 101,2,Wait(3)
 exten => 101,3,ReceiveFAX(/var/spool/asterisk/tmp/fax.tiff)
exten => 101,4,"Some magical way to setup "the channel to: SIP/033211101"
exten => 101,5,SendFAX(/var/spool/asterisk/tmp/fax.tiff)

033211101 is an ATA (SPA2102) registered to *.

I wonder if it is possible to do something like my example or not?
Any suggestions?
I was looking at:
http://www.evilspurv.net/blog/2010/01/sending-pdfs-as-fax-with-asterisk/
I could do something like that but i would prefer to have all in the
dialplan without need for an external program.

/Magnus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100124/e95c6abe/attachment.htm 


More information about the asterisk-users mailing list