14
Thinktel Interop Config Guide SBC ThinkTel FreePBX Eth1 - 216.191.220.139 Eth0 – 10.10.6.22 10.10.2.13 Polycom tor.trk.tprm.ca Polycom for calls 10.10.2. 7 10.10.2.10 Ext 1002 – DID 647-484-0615 Ext 1003– DID 647-484-0617

Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

Thinktel Interop Config Guide

SBC

ThinkTel

FreePBX

Eth1 - 216.191.220.139

16212121216.191.220216.191.220

.139216.191.220.139

Eth0 – 10.10.6.22

10.10.2.13

Polycom

tor.trk.tprm.ca

Polycom for calls

10.10.2. 7 10.10.2.10

Ext 1002 – DID 647-484-0615

Ext 1003– DID 647-484-0617

Page 2: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

The configuration process is divided to 4 stages

In our case we used:

a. SBC,

b. Lab FreePBX,

c. Vega gateway for Fax

d. Polycom and Yealink phones

A1. Configuration of the SBC:

At first physical interfaces were configured:

Eth0 got 10.10.6.21 /21 (facing the pbx)

Eth1 got 216.191.220.139/29 (facing the ThinkTel)

Sngdsp – hardware transcoder is present and located on 192.0.2.1/24

Page 3: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

A2. SIP Profiles:

For this scenario to work we needed to have two SIP Profiles, one that will face the outside world facing the internet,

and the second profile, that will face the internal IP-PBX behind the SBC

So we have created two SIP Profiles: ThinkTel-Internal (facing the IP-PBX), and ThinkTel-External (facing the internet

towards the ThinkTel)

That’s how the ThinkTel-Internal SIP Profile looks like:

Page 4: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed
Page 5: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

That’s how the ThinkTel-External SIP Profile looks

like:

Page 6: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

You can leave the Routing Plan field empty. You can change it later, once we have created

Call Routing. In above picture I have selected my dial plans.

Page 7: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

A3. SIP Trunk to ThinkTel and IP-PBX (FreePBX)

In the SBC under Configuration > Signaling > SIP Trunks > Add > we added ThinkTel-Trunk and SBC-Freepbx trunk

Below is theconfiguration of the ThinkTel-Trunk, we put all the credentials in dedicted fields

As we can see SIP Profile that is associated with ThinkTel-Trunk is ThinkTel-External(greyed out) due to the fact that the

External SIP Profile is the one that faces the internet(outside world)

Page 8: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

Then we configured the To_PBX Trunk:

The FreePBX registrar is located on 10.10.2.13

As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed out) due to the fact that

the Internal SIP Profile is the one that faces the IP-PBX internally behind the SBC

A4. Call Routing

We needed to specify the SBC on what to do with the call routing.

As we know we have calls that come Inbound from ThinkTel through SBC to the FreePBX

And we have calls that come outbound from FreePBX through the SBC to ThinkTel.

Page 9: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

This is how our ThinkTel-External dial plan looks like:

The 159.18.161.101 and 206.80.250.100 IP are the IP of the ThinkTel. And as we see every call that comes from this IP

will be bridged to the PBX. Otherwise, the response will be 404 Not Found

This is how our ThinkTel-Internet dial plan looks like:

Page 10: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

10.10.2.13 is the IP of the IP-PBX. Basically if call is coming from this IP, it will bridge the call to the ThinkTel Trunk.

Otherwise, the call will be rejected with 403 Forbidden

After completing the Call Routing, we need to specify the SIP Profile that will correspond, depending on the call

direction.

For ThinkTel > SBC > FreePBX calls, the direciton is Inbound, and the first entry SIP Profile is the External one, therefore

we’ll Specify ThinkTel-External(calls from thinktel to freepbx) dial plan for ThinkTel-External SIP Profile:

For FreePBX > SBC > ThinkTel calls, the direction is outbound, and the first entry SIP Profile is the Internal one,

therefore we’ll specify ThinkTel-Internal( calls from feeepbx tp ThinkTel) dial plan for Internal SIP Profile:

Page 11: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

B. Setting up the FreePBX.

ThinkTel had provided us two DIDs’ for testing purposes

647-484-0615 and 647-484-0617

1. As a first step, we have created a Trunk from FreePBX towards the SBC:

Page 12: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

Host is ip address of the sbc and we have been used port 5062 for our Thinktel-Internal profile on sbc,

Port=5062

And

Contect=from-trunk

2. We created two extensions (one per DID). (Applications > Extensions > Add Extension) and one more extetion,

we will need that to run transfer and some other tests

Page 13: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed

3. Inbound and Outbound Routes. We’ve created two Inbound routes (one per DID)

To create inbound route, navigate Connectivity > Inbound Routes.

We have added inbound routes for our DID as below, we can point these rotues either to the IVR or to

extensions. ( we have changed it per test

Below you cand find an outbound route configured to forward all outbound calls from FreePBX to SBC

To configure outbound routes, please navigate to Connectivity > Outbound Routes:

Page 14: Thinktel Interop Config Guide · 2020-05-11 · The FreePBX registrar is located on 10.10.2.13 As we can see SIP Profile that is associated with SBC-Freepbx Trunk is ThinkTel-Internal(greyed