Hi,<br><br>I&#39;ve been trying to implement a fax solution using a TDM880 (8 analog ports, FXS). I have a PRI circuit that terminates on a TE120 at the same server. The server is running Asterisk <a href="http://1.4.18.">1.4.18.</a><br>
<br>The idea is to have seven fax machines, each with a different number, connected directly to the TDM880. Zaptel/Zapata are configured and work properly (1-24 is the TE120, 25-32 is the TDM880). Voice calls are working great, and a single fax machine works well.<br>
<br>I seem to be having some difficulty with my dialplan when using the fax extension, however. Here is an abbreviated example of my dialplan:<br><br>extensions.conf<br><br>[internal]<br>exten =&gt; 2001,1,Dial(SIP/2001)<br>
exten =&gt; 2002,1,Dial(SIP/2002)<br><br>; dial out<br>exten =&gt; _1NXXNXXXXXX,1,Dial(Zap/G2/${EXTEN})<br><br>exten =&gt; fax,1,Goto(${EXTEN})<br><br>; fax machines<br>exten =&gt; 1000,1,Answer()<br>exten =&gt; 1000,n,Wait(3)<br>
exten =&gt; 1000,n,Dial(Zap/25)<br><br>exten =&gt; 1001,1,Answer()<br>exten =&gt; 1001,n,Wait(3)<br>exten =&gt; 1001,n,Dial(Zap/26)<br><br>exten =&gt; 1002,1,Answer()<br>exten =&gt; 1002,n,Wait(3)<br>exten =&gt; 1002,n,Dial(Zap/27)<br>
<br>[external]<br><br>exten =&gt; 2001,1,Goto(internal,2001,1)<br>exten =&gt; 2002,2,Goto(internal,2002,1)<br><br>exten =&gt; fax,1,Goto(internal,${EXTEN},1)<br><br>exten =&gt; 1000,1,Answer()<br>exten =&gt; 1000,n,Wait(3)<br>
exten =&gt; 1000,n,Goto(internal,1000,1)<br><br>exten =&gt; 1001,1,Answer()<br>
exten =&gt; 1001,n,Wait(3)<br>
exten =&gt; 1001,n,Goto(internal,1001,1)<br><br>exten =&gt; 1002,1,Answer()<br>
exten =&gt; 1002,n,Wait(3)<br>
exten =&gt; 1002,n,Goto(internal,1002,1)<br>
<br>
-----------------------------------<br><br>My PRI provider only hands off the last 4 digits, so the above works well for voice calls. The fax detection extensions DO detect faxes properly (faxdetect=both is set in zapata.conf), however I&#39;m not sure how to route them to the proper line (Zap/25, etc.) if I route the calls into a catch all extension such as &#39;s&#39;. The above doesn&#39;t work since the $[EXTEN} variable gets changed from the dialed number, such as &#39;1001&#39;, to &#39;fax&#39; and dives into a loop. By changing the fax extension lines to something like this:<br>
<br>exten =&gt; fax,1,Dial(Zap/25)<br><br>I can get a single line to dial and receive without any problems, but this obviously will not work for multiple fax machines.<br><br>What&#39;s the best method for properly routing numbers that get routed into a catch all extension, such as &#39;s&#39;? I&#39;ve been digging around in the Asterisk: TFOT v2 and on Google, but I haven&#39;t been able to find an example of this. <br>
<br><br>