In article <[EMAIL PROTECTED]>,
Mikel Lindsaar <[EMAIL PROTECTED]> wrote:
> 
> I have the following working (somewhat) setup:
> 
>   TELCO
>     |
>     |
> E1 (30 Chan -- TE210 SPAN 2)
>     |
>     |
> Asterisk box 1.6 with
> DAHDI drivers loaded
> Digium TE210p
>     |
>     |
> E1 (30 Chan -- TE210 SPAN 1)
>     |
>     |
>  NEC PBX
> 
> 
> >From the NEC system I can make calls out.  From a line on the other side of
> the Telco, I can make calls in.
> 
> What I am trying to get though is how to pass through the DID range.
> 
> The E1 that I am connecting to the Telco with, used to connect direct to the
> NEC system and already has hunt group calling enabled for all 30 channels.
>  Also, I was given a 100 number indial range (from 00 -> 99).
> 
> If the E1 is connected to the NEC directly, I can call 5555 7320 and the NEC
> will route that directly to a certain handset.
> 
> But when I put the asterisk system in between, I am getting the call
> through, but it does not then call the correct number it seems..
> 
> The telco side has the following in extensions.conf:
> 
> [from-pstn]
> exten => _555573XX,1,Dial(DAHDI/g1/${ARG1},,T)

Unless this is only a paraphrase of what you have, I think you should
use ${EXTEN} instead of ${ARG1}:

[from-pstn]
exten => _555573XX,1,Dial(DAHDI/g1/${EXTEN},,T)

> [from-nec]
> exten => s,1,Dial(DAHDI/g1/${ARG1},,T)

And here, why the 's' extension? I would do:

[from-nec]
exten => _X!,,1,Dial(DAHDI/g1/${EXTEN},,T)

I think ${ARG1} etc should only be used within macros.

Cheers
Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to