<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><BR class="Apple-interchange-newline">Hello<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I've been having the following problem today :</DIV><DIV>I have a quite simple dialplan made to receive a fax:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[answer-extension]</DIV><DIV>exten => 1,1,Answer</DIV><DIV>exten => 1,2,Macro(setcallerid)</DIV><DIV>exten => 1,3,Ringing</DIV><DIV>exten => 1,4,Wait(3)</DIV><DIV>exten => 1,5,Macro(stdfwd3iax-notransfer,${EXTENSION},${EXTENSION},${EXTENSION})</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>exten => fax,1,Goto(faxreceive,1,1)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The Wait(3) is there simply to let the system a bit of time to detect if it's a fax calling, this has worked so far in all cases except today.</DIV><DIV>I received a fax from overseas and it seems that Asterisk has been unable to detect that it was a fax in the 3 seconds wait. Changing to 5s was sufficient to receive the fax. But obviously this is not a solution I want to adopt all the time as 1-it's a tool long wait, 2-what happens if 5s is still not enough another time.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So Asterisk recognized that a fax was being received while executing the macro stdfwd3iax-notransfer (this extension simply check</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>And I saw the following message in the console:</DIV><DIV> -- Executing VoiceMail("Zap/10-1", "u200") in new stack</DIV><DIV> -- Playing '/data/asterisk/var/spool/asterisk/voicemail/default/200/unavail' (language 'en')</DIV><DIV> -- Redirecting Zap/10-1 to fax extension</DIV><DIV>May 25 01:19:34 WARNING[17629]: pbx.c:2412 ast_pbx_run: Timeout, but no rule 't' in context 'answer-extension'</DIV><DIV> -- Hungup 'Zap/10-1'</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It seems that Asterisk once entered in a Macro is unable to jump to the fax extension and gave me a timeout (which I do not handle in my dialplan). If I change the Wait(3) into Wait(0) the problem can be easily reproduced at all times.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I then added a fax extension in the Macro just in case, but it made no difference whatsoever.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any ideas on what I'm doing wrong or is this a problem with Asterisk?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The fully log is below.</DIV><DIV>Thank you in advance</DIV><DIV>Jean-Yves</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>When I looked in the console on what what happening I say this:</DIV><DIV> -- Accepting call from '' to '85735200' on channel 0/10, span 1</DIV><DIV> -- Executing AGI("Zap/10-1", "getnumber.agi|200") in new stack</DIV><DIV> -- Launched AGI Script /data/asterisk/var/lib/asterisk/agi-bin/getnumber.agi</DIV><DIV> -- AGI Script getnumber.agi completed, returning 0</DIV><DIV> -- Executing Set("Zap/10-1", "EXTENSION=00") in new stack</DIV><DIV> -- Executing Goto("Zap/10-1", "answer-extension|1|1") in new stack</DIV><DIV> -- Goto (answer-extension,1,1)</DIV><DIV> -- Executing Answer("Zap/10-1", "") in new stack</DIV><DIV> -- Executing Macro("Zap/10-1", "setcallerid") in new stack</DIV><DIV> -- Executing GotoIf("Zap/10-1", "11?10:11") in new stack</DIV><DIV> -- Goto (macro-setcallerid,s,10)</DIV><DIV> -- Executing Set("Zap/10-1", "CALLERID(number)=''") in new stack</DIV><DIV> -- Executing GotoIf("Zap/10-1", "0?20") in new stack</DIV><DIV> -- Executing Ringing("Zap/10-1", "") in new stack</DIV><DIV> -- Executing Wait("Zap/10-1", "0") in new stack</DIV><DIV> -- Executing Macro("Zap/10-1", "stdfwd3iax-notransfer|200|200|100") in new stack</DIV><DIV> -- Executing DBget("Zap/10-1", "temp=CFIM/200") in new stack</DIV><DIV> -- DBget: varname=temp, family=CFIM, key=200</DIV><DIV> -- DBget: Value not found in database.</DIV><DIV> -- Executing Goto("Zap/10-1", "3") in new stack</DIV><DIV> -- Goto (macro-stdfwd3iax-notransfer,s,3)</DIV><DIV> -- Executing Dial("Zap/10-1", "IAX2/iax100|20|tr") in new stack</DIV><DIV>May 25 01:19:21 NOTICE[17629]: app_dial.c:972 dial_exec_full: Unable to create channel of type 'IAX2' (cause 3)</DIV><DIV> == Everyone is busy/congested at this time (1:0/0/1)</DIV><DIV> -- Executing NoOp("Zap/10-1", "CHANUNAVAIL") in new stack</DIV><DIV> -- Executing Goto("Zap/10-1", "s-CHANUNAVAIL|1") in new stack</DIV><DIV> -- Goto (macro-stdfwd3iax-notransfer,s-CHANUNAVAIL,1)</DIV><DIV> -- Executing Goto("Zap/10-1", "s|400") in new stack</DIV><DIV> -- Goto (macro-stdfwd3iax-notransfer,s,400)</DIV><DIV> -- Executing Dial("Zap/10-1", "SIP/ipp100|20|tr") in new stack</DIV><DIV>May 25 01:19:21 NOTICE[17629]: app_dial.c:972 dial_exec_full: Unable to create channel of type 'SIP' (cause 3)</DIV><DIV> == Everyone is busy/congested at this time (1:0/0/1)</DIV><DIV> -- Executing Goto("Zap/10-1", "s2-CHANUNAVAIL|1") in new stack</DIV><DIV> -- Goto (macro-stdfwd3iax-notransfer,s2-CHANUNAVAIL,1)</DIV><DIV> -- Executing Goto("Zap/10-1", "s|200") in new stack</DIV><DIV> -- Goto (macro-stdfwd3iax-notransfer,s,200)</DIV><DIV> -- Executing DBget("Zap/10-1", "temp=CFBS/200") in new stack</DIV><DIV> -- DBget: varname=temp, family=CFBS, key=200</DIV><DIV> -- DBget: Value not found in database.</DIV><DIV> -- Executing Goto("Zap/10-1", "202") in new stack</DIV><DIV> -- Goto (macro-stdfwd3iax-notransfer,s,202)</DIV><DIV> -- Executing VoiceMail("Zap/10-1", "u200") in new stack</DIV><DIV> -- Playing '/data/asterisk/var/spool/asterisk/voicemail/default/200/unavail' (language 'en')</DIV><DIV> -- Redirecting Zap/10-1 to fax extension</DIV><DIV>May 25 01:19:34 WARNING[17629]: pbx.c:2412 ast_pbx_run: Timeout, but no rule 't' in context 'answer-extension'</DIV><DIV> -- Hungup 'Zap/10-1'</DIV><DIV><BR><DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">---</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Jean-Yves Avenard</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Hydrix Pty Ltd - Embedding the net</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">www.hydrix.com | fax +61 3 8573 5200 | office +61 3 8573 5299 | direct +61 3 8573 5200</FONT></DIV> </DIV><BR></DIV></DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">---</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Jean-Yves Avenard</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Hydrix Pty Ltd - Embedding the net</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">www.hydrix.com | fax +61 3 8573 5200 | office +61 3 8573 5299 | direct +61 3 8573 5200</FONT></P> </DIV><BR></BODY></HTML>