First one is installed with all extension connected to it via SIP.
Second one has a T1/E1 card in it and is acting as a gateway.
I need to interconnect the boxes to achieve the following but do not know how.
Call incoming from T1/E1 in the second box are all passed to the first box. The first box has all inbound rules set on it. The Caller Id must remain as it is when it reaches the T1/E1 trunk from outside.
Outbound calls from the first box are passed to the second box to go out to the T1/E1 channels also passing the CID of the individual Extension.
That should be eazy any quite straight forward. You should be able to find tons of examples on the net (you’ll need to create a new sip peer on both server).
For interconnecting both Asterisk servers vi internet link, I would recommend using routers that have VPN tunnel support.
Managed to set up the trunk and now i have a connection.
My remaining problem is that any call originating from an internal extension to an external number, the Extensions CID is not being passed out to the trunk.
Also, incoming calls on a DID are not passing the CID to the internal Box so that the inbound route is followed.
Caller ID should get passed by default. However resonsible ITSPs will not forward caller ID outbound if they have not confirmed you have a right to use it.
Using fromuser can frustrate caller ID. The service needs to support Remote-Party-ID, if you must force fromuser.
Asterisk - 1 (the one with the extensions)
[trunk-gateway] host=192.168.XXX.XXX
username=user-gateway
fromuser=user-gateway
secret=*********
type=peer
qualify=yes
secret is the same on both sides. I would, however, leave the secret out, and simply make sure that my firewalls didn’t allow spoofing of the IP addresses. Actually, I’ve never tried point to point with secrets. If you do use a secret, it must be the same on both sides.
You use the same entry for both inbound and outbound.