📜 ⬆️ ⬇️

Elastix communication with Panasonic TDE 200 and SIPGW16 v SIP card

To begin, I will describe the structure of the work and what should happen. There is a PBX Panasonic TDE 200 in it, there is a card with E1 channels and a card for SIP. There is a server with the Elastix 2.4.0 build installed. You need to connect a trunk from the provider Globus (Moscow) to it and make a trunk with PBX. Next, does the Globe issue a pool of phone numbers and a number of lines? which need to be driven to the PBX through an asterisk and from the PBX it is all routed to analog phones. The purpose of this article is to describe the setup of Asterisk in the best way.

I ask those interested under the cat.

Creating a trunk with a globe does not constitute any problems, so I will briefly describe the settings:
Go to PBX> Trunks> Add SIP Trunk and fill in - Trunk Name: globus (You can any)
Outgoing Settings> Trunk Name: globus
')
PEER Details:
type = peer
host = 82.198.166.253
defaultip = 82.198.166.253
context = from-trunk
dtmfmode = rfc2833
disallow = all
allow = alaw, ulaw

Everything. No need to configure anything else. At the bottom, click Submit, then Apply at the top and the trunk is configured.
Globus authorization goes to the white IP address that you provide when entering into a contract.

Further, no article on the creation of a PBX link with Asterisk helped me, but after much experimentation, trunk settings were born that work fine.

Repeat the steps to create a SIP trunk, instead of the name Globus, I wrote Panasonic.
Outgoing Settings> Trunk Name: 100

username = 100 (For example)
type = friend
secret = admin123 (For example)
qualify = yes
host = dynamic
dtmfmode = rfc2833
disallow = all
context = from-internal (Important for outgoing calls from PBX to Asterisk)
canreinvite = no
allow = alaw & ulaw & g729
nat = yes
port = 5060
trustrpid = yes (Without this, calls from analog PBX lines to Asterisk will not work)

Apply changes.

Next, you need to configure that phone numbers from the Globe go to the PBX through Asterisk. We go to Inbound Rutes and create a new route.
We write Description: is the name of the route.
In order to determine which numbers will go to the PBX set the pattern DID Number :. I want to note that in this way we will be able to drive some of the numbers on the PBX, and leave some for routing on Asterisk. About templates you can read in Google, but in general, I asked _495XXXXXXX, always starting with "_", do not forget to use [1-5] instead of X to set possible numbers from 1 to 5 or [1-3,6] to set numbers 1,2,3,6, etc. If you are lucky then under one template, you can drive all your numbers that should go to the PBX. Ie for example the number _495123456 [1-3] will set the numbers 4951234561, 4951234562 and 4951234563.

From the bottom, select Set Destination> Trunks and set the Panasonic.

It is worth noting that the Globe can issue phone numbers 4951234561 or 84951234561, that is, in the routing table on the PBX, when attaching a phone number to some analog port, your purchased number will be used, which will come from the Globus trunk with 8 or no.

Now you need to configure outgoing communication. If you make the trunk correctly, then you only have to make 1 outgoing route. Go to Outbound Routes> Add Route and write the name of the route. Route Name. Further, if people dial 84951234567 on PBX, they will normally be able to get through, taking into account the correctly configured PBX, in this case we can issue all numbers, for example with code 495, into the Globus trunk, writing in Dial Patterns that will use this Route> match pattern 495XXXXXXX and at the bottom select the Globe trunk.
If you need to add or remove 8 or perform number manipulations, use the prepend and prefix fields. The first one adds the digits accordingly to the number suitable for this pattern, and the second cuts out the digits.

So we got a working trunk from this PBX.

Source: https://habr.com/ru/post/169591/


All Articles