On Monday 26 June 2006 08:33, Luke Kahtava wrote:
> Right now all I want Asterisk to do is work as a router moving all calls
> through it without the PBX recognizing it.
As in
Telco -- TE410 -- Toshiba
with '--' being the T1 spans?
All you do is have the spans to the telco in a group (call it group 1 in this
example) going to one context (call it Telco in this example), and the spans
to the Toshiba in another group (2), going to another context (Toshiba).
[Telco]
exten => _X.,1,Dial(Zap/g2/${EXTEN})
[Toshiba]
exten => _X.,1,Dial(Zap/g1/${EXTEN})
Of course this is a stupidly simple example -- if you want to do any remapping
of incoming DIDs or least-cost routing or anything else then your dialplans
here will get a little more complex, but what I wrote above gives you the
basics and should transparently handle PRI hangup causes... The Toshiba will
act as if it were directly connected to the telco.
If your connection to the telco is not CAS T1 (i.e. PRI) then your zapata.conf
will need to have the spans to the telco using pri_cpe signaling, and the
spans to the Toshiba to be pri_net signaled. Your example configs show that
you are indeed using PRI and it looks as if you've already got the signaling
figured out, which is great. The dialplan examples above with the
configuration changes listed below should get you a good starting point.
> switchtype=dms100
> signalling=pri_cpe
> group=1
add 'context=Telco'
> channel=>1-23
> signalling=pri_net
> group=2
add 'context=Toshiba'
> channel=>25-47
-A.