Quick question -- How do I continue a macro after hangup (I need to run a script) I'm using RxFax(Spandsp) and it exits -1 (I even changed the code to return 0, but no luck) My macro ends with "-- Hungup 'Zap/3-1'" Here is the Macro (the System(echo)'s are for debugging) (Only the first System gets called) [macro-fax-incoming] exten => s,1,SetVar(FAXDIR=/var/spool/asterisk/fax/new) exten => s,2,SetVar(FAXNAME=${TIMESTAMP}-${CALLERIDNUM}) exten => s,3,System(echo -e "${CALLERIDNUM}\n${CALLERIDNAME}\n${FAXNAME}" > /var/spool/asterisk/fax/test) exten => s,4,RxFax(${FAXDIR}/${FAXNAME}.tif) exten => s,5,System(echo -e "${CALLERIDNUM}\n${CALLERIDNAME}\n${FAXNAME}" > /var/spool/asterisk/fax/test2) exten => s,6,System(/etc/asterisk/mail_fax.pl "${CALLERIDNUM}" "${CALLERIDNAME}" "${FAXNAME}") exten => s,105,System(echo -e "${CALLERIDNUM}\n${CALLERIDNAME}\n${FAXNAME}" > /var/spool/asterisk/fax/test3) exten => s,106,System(/etc/asterisk/mail_fax.pl "${CALLERIDNUM}" "${CALLERIDNAME}" "${FAXNAME}") exten => s,107,Hangup And the result is only the first test getting executed. Thanks, Jeb Campbell jebc@c4solutions.net Cell: 865-385-1437