[asterisk-users] Preserving DID numbers on PRI pass through
Tony Mountifield
tony at softins.clara.co.uk
Fri Nov 14 06:28:38 CST 2008
In article <57a815bf0811131932o528c98d3p150f8749b34169f5 at mail.gmail.com>,
Mikel Lindsaar <raasdnil at gmail.com> 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: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list