📜 ⬆️ ⬇️

Combining 3CX Phone System with Asterisk (FreePBX)

In this article, we will explain how to combine the 3CX Phone System v14 and Asterisk FreePBX v13 systems. We will proceed from the fact that both systems are in the same local area network. If you have any questions or suggestions for improving integration, you can ask them in a special section of our forum .

Configure 3CX Phone System


In the 3CX Management Console, add a new 3CX trunk in the Bridges section - Add Bridge .


')

3CX trunk options



The remaining parameters: Allow tuned connection , Publish information , Receive information , Supports Re-Invite , Support Replaces , PBX Delivers Audio, leave the default.
After clicking the Next button, the interface for creating an outgoing rule on Asterisk will appear. Setting outgoing rules is detailed here .

Configure Asterisk


On the Asterisk system, create an outgoing trunk with the following parameters:



Outgoing - Trunk name : 3CX Bridge Outgoing

Outgoing - PEER Details:

host = [3CX IP]

port = [3CX SIP Port]

username = [3CX Bridge ID]

fromuser = [3CX Bridge ID]

secret = [3CX Bridge Password]

sendrpid = yes

qualify = yes

type = peer

And the incoming trunk:



Incoming - USER Details:

host = [3CX IP]

port = [3CX SIP Port]

type = peer

trustrpid = yes

context = from-trunk

Incoming - Register String:

[3CX Bridge ID]: [3CX Bridge Password] @ [3CX IP]: [3CX SIP Port] / [3CX Bridge ID]

Trunk Parameters



In Asterisk, you also need to create an inbound and outbound route that determines the routing of calls from / to 3CX Phone System. To do this, refer to the FreePBX documentation .

Integration testing


If trunk configuration is done correctly, the 3CX trunk on Asterisk should have Registered status in the management console in the System Status - Ports / Trunks section .



If you use Wireshark to capture traffic, the INVITE SIP request should look something like this.



Request parameters



Additional Information


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


All Articles