<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have Spandsp working fine. Asterisk sees a fax on
the zap port and redirects the call to the fax-in area.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This works if I have a simple dialing rules that
goes answers first and waits 10 secs then goes to the next item. If it hears a
fax it goes to the right place. Here is a sample that works.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[incoming]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => 2019,1,Goto(test,s,1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[test]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => s,1,answer</FONT></DIV>
<DIV><FONT face=Arial size=2>exten => s,2,wait(5)</FONT></DIV>
<DIV><FONT face=Arial size=2>exten =>
s,3,Macro(stdexten,Sip/101)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => fax,1,Goto(fax-in,s,1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[fax-in]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => s,1,Dial(zap/1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But if I use this following macro it just detects
the fax then goes to congestion instead of the fax extenstion.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><TT><SPAN class=line>[macro-followme]</SPAN></TT><BR><TT><SPAN
class=line>;</SPAN></TT><BR><TT><SPAN class=line>; Standard single line follow
me then to voicemail</SPAN></TT><BR><TT><SPAN class=line>; $ARG1 first device to
dial to. $ARG2 2nd device to dial.</SPAN></TT><BR><TT><SPAN
class=line>;</SPAN></TT><BR><TT><SPAN class=line>exten =>
s,1,Answer</SPAN></TT><BR><TT><SPAN class=line>exten =>
s,2,Wait(5)</SPAN></TT><BR><TT><SPAN class=line>exten =>
s,3,Dial(${ARG1},20)</SPAN></TT><BR><TT><SPAN class=line>exten =>
s,4,Dial(Zap/g1/${ARG2})</SPAN></TT><BR><TT><SPAN class=line>exten =>
s,5,Voicemail(u${MACRO_EXTEN})</SPAN></TT><BR><TT><SPAN class=line>exten =>
s,104,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?105:107)</SPAN></TT><BR><TT><SPAN
class=line>exten => s,105,Dial(Zap/g1/${ARG2})</SPAN></TT><BR><TT><SPAN
class=line>exten => s,106,Voicemail(b${MACRO_EXTEN})</SPAN></TT><BR><TT><SPAN
class=line>exten =>
s,107,Voicemail(u${MACRO_EXTEN})</SPAN></TT><BR><TT> <SPAN
class=line></SPAN></TT><BR><TT><SPAN class=line>exten =>
fax,1,Goto(fax-in,s,1)</SPAN></TT><BR><TT><SPAN
class=line>;</SPAN></TT><BR><TT><SPAN class=line>I am calling it with this
setup.</SPAN></TT><BR><TT><SPAN class=line>exten =>
2019,1,Macro(followme,Sip/101,16502468900)</SPAN></TT></DIV>
<DIV><TT><SPAN class=line>Here is the error I get. And yes I have exten
fax,1,Goto(fax-in,s,1) in the inbound context as well.</SPAN></TT></DIV>
<DIV><TT><SPAN class=line></SPAN></TT> </DIV>
<DIV><TT><SPAN class=line>-- Executing Macro("Zap/1-1",
"followme|Sip/101|16502468900") in new stack<BR><TT><SPAN
class=lineno>002</SPAN> <SPAN class=line> -- Executing Answer("Zap/1-1",
"") in new stack</SPAN></TT><BR><TT><SPAN class=lineno>003</SPAN> <SPAN
class=line> -- Accepting call from '6502468901' to '2019' on channel 0/1, span
1</SPAN></TT><BR><TT><SPAN class=lineno>004</SPAN> <SPAN class=line> --
Executing Wait("Zap/1-1", "10") in new stack</SPAN></TT><BR><TT><SPAN
class=lineno>005</SPAN> <SPAN class=line> -- Redirecting Zap/1-1 to fax
extension</SPAN></TT><BR><TT><SPAN class=lineno>006</SPAN> <SPAN
class=line> == Spawn extension (macro-followme, fax, 0) exited non-zero on
'Zap/1-1' in macro 'followme'</SPAN></TT><BR><TT><SPAN
class=lineno>007</SPAN> <SPAN class=line> == Spawn extension (inbound, fax,
1) exited non-zero on 'Zap/1-1'</SPAN></TT><BR><TT><SPAN
class=lineno>008</SPAN> <SPAN class=line> -- Executing
Congestion("Zap/1-1", "") in new stack</SPAN></TT><BR><TT><SPAN
class=lineno>009</SPAN> <SPAN class=line> -- Channel 0/1, span 1 got
hangup</SPAN></TT><BR><TT><SPAN class=lineno>010</SPAN> <SPAN class=line>
== Spawn extension (inbound, fax, 2) exited non-zero on
'Zap/1-1'</SPAN></TT><BR><TT><SPAN class=lineno>011</SPAN> <SPAN
class=line> -- Hungup 'Zap/1-1'</SPAN></TT><BR></SPAN></TT></DIV>
<DIV><TT><SPAN class=line></SPAN></TT> </DIV>
<DIV><BR></DIV></BODY></HTML>