I'm using two contexts, [internal] and [external] as in the example. There are four digit extensions for each fax machine in my [external] context (the [external] context is the context in which my PRI terminates) as well as in the [internal] context.<br>
<br>I just found that I'm able to 'cheat' slightly. If I capture the ${EXTEN} into another variable and simply call that in the fax extension like so:<br><br>[external]<br>exten => fax,1,Goto(internal,${FAXER},1)<br>
<br>exten => 1000,1,Answer()<br>exten => 1000,n,Set(FAXER=${EXTEN})<br>exten => 1000,n,Wait(3)<br>
exten => 1000,n,Goto(internal,1000,1)<br><br>--------------------------------<br><br>This appears to redirect the call to the appropriate entry under [internal]. This isn't exactly elegant, but I think it will work. It seems odd to me that there isn't a better method of routing calls once they've been routed into a catch-all extension such as 's'. <br>
<br><br><div class="gmail_quote">On Thu, May 22, 2008 at 4:42 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;">
So you have mapped a DID (last four digits) to your DHADI port in the<br>
regular extensions context, not the fax context? What is the CLI<br>
output?<br>
<br>
Thanks,<br>
<font color="#888888">Steve Totaro<br>
</font><br>
PS. Figured I would start with DHADI now.....<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Thu, May 22, 2008 at 4:37 PM, arkda <<a href="mailto:thrills3k3r@gmail.com">thrills3k3r@gmail.com</a>> wrote:<br>
> Thanks for your response Steve. You almost lost me when I saw DAHDI, that's<br>
> going to take some getting used to.<br>
><br>
> Using 'n' for the faxes will not work since these fax machines are all<br>
> department dependent and they're very territorial.<br>
><br>
> In my config I'm using Dial commands as you described in your second post.<br>
> I'm not sure what I could do differently there...?<br>
><br>
> On Thu, May 22, 2008 at 4:10 PM, Steve Totaro<br>
> <<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> wrote:<br>
>><br>
>> 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<br>
>> >> ports,<br>
>> >> FXS). I have a PRI circuit that terminates on a TE120 at the same<br>
>> >> 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<br>
>> >> 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<br>
>> >> 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<br>
>> >> route<br>
>> >> them to the proper line (Zap/25, etc.) if I route the calls into a<br>
>> >> catch all<br>
>> >> extension such as 's'. The above doesn't work since the $[EXTEN}<br>
>> >> variable<br>
>> >> gets changed from the dialed number, such as '1001', to 'fax' and dives<br>
>> >> 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<br>
>> >> this<br>
>> >> obviously will not work for multiple fax machines.<br>
>> >><br>
>> >> What's the best method for properly routing numbers that get routed<br>
>> >> into a<br>
>> >> catch all extension, such as 's'? I've been digging around in the<br>
>> >> Asterisk:<br>
>> >> TFOT v2 and on Google, but I haven't been able to find an example of<br>
>> >> 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>
>> 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>
>><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>
><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>
><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>