I work in a enterprise in Portugal that have about 55 extensions and legacy pbx, with primary connection to the provider (isdn pri) that works on top a e1 connection.
The objective is to gradually migrate to voip, so the new extensions would be connected directly to trixbox (voip), keeping the old pbx pbx and old extensions. The legacy pbx is a Alcatel 4200.
The configuration would be like this (Provider —> Trixbox —> Alcatel 4200 (PBX) ).
I have been digging around and studying the process how to accomplish this and i just need a opinion from someone with experience telling me if i am doing anything wrong.
The plan is to get a sangoma 102d, i know it has a wizard that remove some of the guest work but i am putting the process here:
[/etc/zaptel.conf]
#Connection to my provider
span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
dchan=16
#Connection to my PBX Alcatel 4200
span=2,0,0,ccs,hdb3,crc4
bchan=32-46,48-62
dchan=47
[/etc/zapata.conf]
#Trunk group 1:
context=from-zaptel
#the next line is what a Portugal style PRI is set to when connecting to telco
signalling = pri_cpe
echocancel=no
group = 1
channel => 1-15,17-31
switchtype => EuroISDN
#Trunk group 2:
#The next context makes asterisk think these are extensions instead of trunks
context=from-internal
#pri-net makes this PRI act like it is the telco, and connects to your other switch
signalling=pri_net
group = 2
channel => 32-46,48-62
Finally i will create a ZAP trunk with freepbx (this will be used to connect to my provider):
[Zap/1]
Outgoing Settings
Zap Identifier (trunk name): 1
(i am not sure if i should use 1 or g1, to match the group1 in zapata)
Then i will create a ZAP extension with freepbx (this will be used to connect to my pbx Alcatel)
[ZAP Extension]
User Extension: 400
Display Name: Alcatel
This device uses zap technology.
channel: 32-62
(i also not sure if creating a zap extension and put all the channels from group 2 from zapata is correct)
Then i create a inbound route with freepbx
[Inbound Route]
Any cid any did
and route to destination
Extension 650
And last a outbond route with freepbx
[Outbound Route]
2XXXXXXXX ( will route national land calls)
9XXXXXXXX ( will route cell phone calls)
XXXX|. (this will route international calls)
Through trunk ZAP/1
Is it possible to put it work this way? or my setup is completly wrong?
I would appreciate some feeback
Sorry for my english
Thank you