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 [email protected] < /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 [email protected] < /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
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
