Hello, I think you should handle the fax in the h (for Hangup) extension (which is, after your fax was received), instead of using the priorities following the fax reception (as in your example). Have a look at the different examples in the wiki, like http://www.voip-info.org/wiki-Asterisk+fax: [fax] exten => 666,1,Macro(faxreceive) exten => h,1,system(/usr/sbin/mailfax ${FAXFILE} ${EMAILADDR} ${CALLERIDNUM}) Regards, Silviu -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Christian Gr?ger Sent: mardi 18 avril 2006 21:08 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Receiving Faxes... Hi, I am experimenting with receiving faxes in asterisk: exten => in_fax,1,Macro(faxreceive) exten => in_fax,2,system(tiff2ps -2eaz -w 8.5 -h 11 ${FAXFILE} | ps2pdf - ${FAXFILE}.pdf) exten => in_fax,3,system(cp ${FAXFILE}.pdf /var/www/faxes/${CALLERID(number)}.pdf) exten => in_fax,4,system(mime-construct --to mail@server --subject "Fax from ${CALLERID(number)} ${CALLERID(name)}" --attachment ${CALLERID(number)}.pdf --type application/pdf --file ${FAXFILE}.pdf) exten => in_fax,5,system(rm ${FAXFILE} ${FAXFILE}.pdf) exten => in_fax,6,Hangup That is an extension Freepbx made, with some extensions from me, because FreePBX doesn't work well with mISDN... Wel, it receives faxes and it saves them as an tif, it also converts them to a pdf file, but the other commands aren't executed... why? thanks for help _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users