MOR and Trixbox

From Kolmisoft Wiki
Jump to navigationJump to search

As MOR and Trixbox (FreePBX) both use Asterisk Realtime and custom extensions - they can't work nicely on the same server.

In order to integrate Trixbox with MOR you need to connect in following way:


Trixbox small.png


Connection diagram

As an example we will configure one phone dialing. Phone is connected to Trixbox which is connected to MOR:


Trixbox2 small.png


Here for simplicity all devices are in same LAN:

  • MOR server has IP: 10.10.1.10
  • Trixbox: 10.10.1.20
  • Phone: 10.10.1.30

MOR and Trixbox are connected with following settings:

  • username: mor_trixbox
  • password: mor_trixbox_psw

And phone to Trixbox is connected with:

  • username: 201
  • password: 201psw


Dialing diagram from phone to MOR

Trixbox3 small.png


Here device makes call to example destination 9999999999.

When call reaches Trixbox it gets forwarded to MOR and correct CallerID number for this phone is applied. In our example it is 1111111111.

MOR checks for CallerID number (ANI - Automatic Number Identification) and sees that this CallerID is assigned to phone device and MOR knows all the necessary details to send call further.


Trixbox configuration for phone

Lets connect phone to Trixbox. In FreePBX create Extension for 201 phone:

Trixbox8.png

Most important details:

Trixbox9.png


Here we set CallerID number which should be applied to the call from this device. Password and dial string also here.



Trixbox configuration for MOR

In Trixbox we need to define MOR as a Trunk:

Trixbox10.png

Define some route in Trixbox to use this Trunk (here is just an example):

Trixbox11.png



MOR configuration for Trixbox

We need to create connection between MOR and Trixbox. In this example we will configure MOR using SIP.

We need to create user for Trixbox - pbx_user, put any details for it - it does not matter:

Trixbox3.png

Now we need to configure device for Trixbox:

Trixbox4.png

Main settings are:

Trixbox5.png

  • Mark this device as Trunk with ANI support
  • Username (by example): mor_trixbox
  • Password: mor_trixbox_psw
  • Host: 10.10.1.20
  • Make sure Dynamic? is unchecked and port is 5060 (for SIP)


MOR configuration for phone

To correctly bill phone calls you need to create separate user and device for it on MOR.

First let's create user for phone (phone_user):

Trixbox6.png

Make sure you configure this user correctly - e.g. enter password/LCR/Tariff and other necessary details - this user will be used for real dialing out.

Then we need to create virtual device for our phone:

Trixbox7.png

All settings for this device are not important at all. Just make sure you have good password for security.


Configuring more phones