<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> 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###).<br> <br>>From /var/log/asterisk/messages<br><font face="Courier New">Aug 2 10:26:58 NOTICE[14938]: Unable to find a path from unknown to unknown<br> Aug 2 10:26:58 WARNING[14938]: Unable to restore read format on 'Zap/41-1'</font><br> <br>>From the console:<br><font face="Courier New">Aug 2 11:07:20 NOTICE[14938]: channel.c:1736 ast_set_read_format: Unable to find a path from unknown to unknown<br> Aug 2 11:07:20 WARNING[14938]: app_rxfax.c:256 rxfax_exec: Unable to restore read format on 'Zap/41-1'</font><br> <br> <b>Has anyone come across the errors above, and if so what did you do to correct?</b><br> <br> When I explicitly set up a fax line to receive calls, no problems - here is the dialplan:<br> <br> <font face="Courier New">exten => 3417,1,Macro(fax-receive,${EXTEN},${CALLERIDNUM})<br> exten => 3417,2,Hangup<br> <br> [macro-fax-receive]<br> ; $ARG1 is the extension called<br> ; $ARG2 is the caller ID number<br> exten => s,1,Answer<br> exten => s,2,Ringing<br> exten => s,3,Wait(2)<br> exten => s,4,NoOp(${ARG1} ${ARG2})<br> exten => s,5,SetVar(FAXUNIQ=${ARG2}_${ARG1}_${UNIQUEID})<br> exten => s,6,SetVar(FAXFILE=/var/spool/asterisk-fax/${FAXUNIQ}.tif)<br> exten => s,7,rxfax(${FAXFILE})<br> exten => s,8,GotoIf($["${CALLERIDNUM}" != ""]?9:11)<br> exten => s,9,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} ${ARG2} ${ARG1})<br> exten => s,10,Goto(macro-fax-receive,12)<br> exten => s,11,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} "NOCALLERID" ${ARG1})<br> exten => s,12,Hangup<br> <br> This works without any issues.<br> <br> Now when I do this:<br> exten 1-5 do some Mysql stuff to translate DNIS to DID<br> exten => _3XXX,6,Answer<br> exten => _3XXX,7,Ringing ; If a fax, dialplan redirects to the fax extension in this context<br> exten => _3XXX,8,NoOp(${DNID})<br> exten => _3XXX,9,Wait(1)<br> exten => _3XXX,10,Dial(${TIE1}/${OutDID},150)<br> exten => _3XXX,11,Hangup<br> <br> ; Fax detected<br> exten => fax,1,Macro(dual-did-fax,${DNID},${CALLERIDNUM})<br> exten => fax,2,Hangup<br> <br> [macro-dual-did-fax]<br> ; $ARG1 is the extension called<br> ; $ARG2 is the caller ID number<br> exten => s,1,Wait(1)<br> exten => s,2,NoOp(${ARG1} ${ARG2})<br> exten => s,3,SetVar(FAXUNIQ=${ARG2}_${ARG1}_${UNIQUEID})<br> exten => s,4,SetVar(FAXFILE=/var/spool/asterisk-fax/${FAXUNIQ}.tif)<br> exten => s,5,rxfax(${FAXFILE})<br> exten => s,6,GotoIf($["${CALLERIDNUM}" != ""]?9:11)<br> exten => s,7,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} ${ARG2} ${ARG1})<br> exten => s,8,Goto(macro-fax-receive,12)<br> exten => s,9,System(/usr/local/sbin/convertSendPDF.sh ${FAXUNIQ} "NOCALLERID" ${ARG1})<br> exten => s,10,Hangup<br> </font> </body> </html>