Up until today, I have had no issues with receiving faxes in *. One
change I made was that I now have the incoming DIDs "macro"'d since
they all start with 3 (3###). >From /var/log/asterisk/messages Aug 2 10:26:58 NOTICE[14938]: Unable to find a path from unknown to unknown Aug 2 10:26:58 WARNING[14938]: Unable to restore read format on 'Zap/41-1' >From the console: Aug 2 11:07:20 NOTICE[14938]: channel.c:1736 ast_set_read_format: Unable to find a path from unknown to unknown Aug 2 11:07:20 WARNING[14938]: app_rxfax.c:256 rxfax_exec: Unable to restore read format on 'Zap/41-1' Has anyone come across the errors above, and if so what did you do to correct? When I explicitly set up a fax line to receive calls, no problems - here is the dialplan: exten => 3417,1,Macro(fax-receive,${EXTEN},${CALLERIDNUM}) exten => 3417,2,Hangup [macro-fax-receive] ; $ARG1 is the extension called ; $ARG2 is the caller ID number exten => s,1,Answer exten => s,2,Ringing exten => s,3,Wait(2) exten => s,4,NoOp(${ARG1} ${ARG2}) exten => s,5,SetVar(FAXUNIQ=${ARG2}_${ARG1}_${UNIQUEID}) exten => s,6,SetVar(FAXFILE=/var/spool/asterisk-fax/${FAXUNIQ}.tif) exten => s,7,rxfax(${FAXFILE}) exten => s,8,GotoIf($["${CALLERIDNUM}" != ""]?9:11) exten => s,9,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} ${ARG2} ${ARG1}) exten => s,10,Goto(macro-fax-receive,12) exten => s,11,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} "NOCALLERID" ${ARG1}) exten => s,12,Hangup This works without any issues. Now when I do this: exten 1-5 do some Mysql stuff to translate DNIS to DID exten => _3XXX,6,Answer exten => _3XXX,7,Ringing ; If a fax, dialplan redirects to the fax extension in this context exten => _3XXX,8,NoOp(${DNID}) exten => _3XXX,9,Wait(1) exten => _3XXX,10,Dial(${TIE1}/${OutDID},150) exten => _3XXX,11,Hangup ; Fax detected exten => fax,1,Macro(dual-did-fax,${DNID},${CALLERIDNUM}) exten => fax,2,Hangup [macro-dual-did-fax] ; $ARG1 is the extension called ; $ARG2 is the caller ID number exten => s,1,Wait(1) exten => s,2,NoOp(${ARG1} ${ARG2}) exten => s,3,SetVar(FAXUNIQ=${ARG2}_${ARG1}_${UNIQUEID}) exten => s,4,SetVar(FAXFILE=/var/spool/asterisk-fax/${FAXUNIQ}.tif) exten => s,5,rxfax(${FAXFILE}) exten => s,6,GotoIf($["${CALLERIDNUM}" != ""]?9:11) exten => s,7,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} ${ARG2} ${ARG1}) exten => s,8,Goto(macro-fax-receive,12) exten => s,9,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} "NOCALLERID" ${ARG1}) exten => s,10,Hangup |
_______________________________________________ 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