How to Extend Lync 2013 to MyPBX (Part 2)--Set Up Rules in MyPBX Web Interface


Summary--How to Extend Lync 2013 to MyPBX, please refer the below link:

Part 1--Set Up Rules in Lync Server 2013, please refer the below link:


1. Create Service Provider trunk to Lync Server 2013

Create a “Service Provider” SIP trunk:

Hostname/IP: the IP of Lync Server 2013 is ‍“”.
Port: 5068 (the default port for TCP protocol)
Transport: TCP

                                                            Figure 1

We can check the status of this trunk in ‍“Line Status”“Trunk Status” page.

                                                          Figure 2

Note: TCP protocol is disabled in MyPBX by default, you will need to enable it in ‍“SIP settings” page in advance.

2. Internal communication between MyPBX and Lync Server

Create an outbound route in ‍“PBX”“Outbound Call Control”“Outbound Route”

Dial pattern: 8XX
Strip: 0
Prepend these digits: +

                                                           Figure 3

In this way, we can reach the extension in lync 2013 directly without ‍dialing “+”.

                                                           Figure 4

Here is a test call from MyPBX to Lync Server 2013.

                                                            Figure 5

To reach extensions in MyPBX from Lync Server 2013,we need to create an inbound route.

Click ‍“PBX”“Inbound Call Control”“Inbound Routes”.
DID number: +300-+350, it’s the extension range of MyPBX.
Extension: 300-350

Choose that trunk, then save it and apply the changes on web to take effect.

                                                            Figure 6

When done, we can make test calls from Lync Server 2013 to MyPBX’s extension directly.
Here is an example at my side:
Tel:+800 (Lync Server 2013) dials extension 301 (MyPBX’s extension)

                       Figure 7

        Figure 8

3. Dial external number in Lync Server 2013 through MyPBX

Multiple trunks are supported in MyPBX, like PSTN/BRI/GSM and E1, we can route the calls from Lync Server 2013 to these trunks via MyPBX.

Here is an example:
Customer wants to dial 9+numbers on Lync Server’s side through MyPBX, the trunk is PSTN.

Step 1. Create an outbound route on MyPBX.

Dial pattern: “+9.”, don’t miss the dot.
Strip: 2, it means delete “+9”
Choose the extensions to the right side, and the available trunks (Two PSTN here).

                                                                Figure 9

Step 2. Create an inbound route for that ‍“Service Provider” trunk, choose the above configured outbound route as the destination.

DID number: “+.”, don’t forget the dot here.

                                                         Figure 10

In this way, all the external numbers starting with “9+” numbers will be routed to the PSTN trunk.
If you want to dial those number directly without “9”, just change the Dial pattern to ‍“+.” , Strip: 1 , then the prefix 9 is not needed.

4. Dial into Lync Server 2013 through MyPBX’s PSTN trunk

It’s supported to route the call from MyPBX to Lync Server 2013.
In this example, the user can dial into MyPBX first to get the second dial tone, then dial Lync’s extension number directly.

Step 1. Create DISA first, and choose the outbound route we created above.

                                                               Figure 11

Step 2. Create an inbound route for the PSTN trunks, choose DISA as the destination.

                                                             Figure 12

Save and apply the changes, you can dial into lync server 2013 now.

Have more questions? Submit a request


Please sign in to leave a comment.