Thanks for your response Steve. You almost lost me when I saw DAHDI, that's going to take some getting used to.<br><br>Using 'n' for the faxes will not work since these fax machines are all department dependent and they're very territorial.<br>
<br>In my config I'm using Dial commands as you described in your second post. I'm not sure what I could do differently there...?<br><br><div class="gmail_quote">On Thu, May 22, 2008 at 4:10 PM, Steve Totaro <<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Thu, May 22, 2008 at 4:07 PM, Steve Totaro<br>
<<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> wrote:<br>
> On Thu, May 22, 2008 at 3:59 PM, arkda <<a href="mailto:thrills3k3r@gmail.com">thrills3k3r@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> I've been trying to implement a fax solution using a TDM880 (8 analog ports,<br>
>> FXS). I have a PRI circuit that terminates on a TE120 at the same server.<br>
>> The server is running Asterisk <a href="http://1.4.18." target="_blank">1.4.18.</a><br>
>><br>
>> The idea is to have seven fax machines, each with a different number,<br>
>> connected directly to the TDM880. Zaptel/Zapata are configured and work<br>
>> properly (1-24 is the TE120, 25-32 is the TDM880). Voice calls are working<br>
>> great, and a single fax machine works well.<br>
>><br>
>> I seem to be having some difficulty with my dialplan when using the fax<br>
>> extension, however. Here is an abbreviated example of my dialplan:<br>
>><br>
>> extensions.conf<br>
>><br>
>> [internal]<br>
>> exten => 2001,1,Dial(SIP/2001)<br>
>> exten => 2002,1,Dial(SIP/2002)<br>
>><br>
>> ; dial out<br>
>> exten => _1NXXNXXXXXX,1,Dial(Zap/G2/${EXTEN})<br>
>><br>
>> exten => fax,1,Goto(${EXTEN})<br>
>><br>
>> ; fax machines<br>
>> exten => 1000,1,Answer()<br>
>> exten => 1000,n,Wait(3)<br>
>> exten => 1000,n,Dial(Zap/25)<br>
>><br>
>> exten => 1001,1,Answer()<br>
>> exten => 1001,n,Wait(3)<br>
>> exten => 1001,n,Dial(Zap/26)<br>
>><br>
>> exten => 1002,1,Answer()<br>
>> exten => 1002,n,Wait(3)<br>
>> exten => 1002,n,Dial(Zap/27)<br>
>><br>
>> [external]<br>
>><br>
>> exten => 2001,1,Goto(internal,2001,1)<br>
>> exten => 2002,2,Goto(internal,2002,1)<br>
>><br>
>> exten => fax,1,Goto(internal,${EXTEN},1)<br>
>><br>
>> exten => 1000,1,Answer()<br>
>> exten => 1000,n,Wait(3)<br>
>> exten => 1000,n,Goto(internal,1000,1)<br>
>><br>
>> exten => 1001,1,Answer()<br>
>> exten => 1001,n,Wait(3)<br>
>> exten => 1001,n,Goto(internal,1001,1)<br>
>><br>
>> exten => 1002,1,Answer()<br>
>> exten => 1002,n,Wait(3)<br>
>> exten => 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<br>
>> for voice calls. The fax detection extensions DO detect faxes properly<br>
>> (faxdetect=both is set in zapata.conf), however I'm not sure how to route<br>
>> them to the proper line (Zap/25, etc.) if I route the calls into a catch all<br>
>> extension such as 's'. The above doesn't work since the $[EXTEN} variable<br>
>> gets changed from the dialed number, such as '1001', to 'fax' and dives into<br>
>> a loop. By changing the fax extension lines to something like this:<br>
>><br>
>> exten => fax,1,Dial(Zap/25)<br>
>><br>
>> I can get a single line to dial and receive without any problems, but this<br>
>> obviously will not work for multiple fax machines.<br>
>><br>
>> What's the best method for properly routing numbers that get routed into a<br>
>> catch all extension, such as 's'? I've been digging around in the Asterisk:<br>
>> TFOT v2 and on Google, but I haven't been able to find an example of this.<br>
>><br>
>><br>
> exten => fax,1,Dial(Zap/25,5)<br>
> exten => fax,n,Dial(Zap/26,5)<br>
> exten => fax,n,Dial(Zap/27,5)<br>
><br>
> Timeout on 5 seconds roll to the next line.<br>
><br>
> Thanks,<br>
> Steve Totaro<br>
><br>
<br>
</div></div>If you want to use DIDs then add exten =<br>
NNNN,1,Dial(correspondingDAHDIchan) the NNNN is going to correspond<br>
with the last four digits of your DID, what the telco is sending....<br>
<div><div></div><div class="Wj3C7c"><br>
Thanks,<br>
Steve Totaro<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>