This is a very important step !

The key information to connect with the SIP provider

Here, I use the example credential as;

SIP provider company name: Fast IPTSP

SIP provider IP-Phone number: +880.9678901234

SIP provider host: 23.220.75.232

SIP user: 9678901234

SIP password: mGc5hQd4ep

Extension number: 210

Extension password: hsu63b8vw9k2ntc

Elastix private IP: 192.168.48.10

Elastix public IP (MikroTik real IP): 52.85.12.118

Please replace your own IP and other credential

1) Configure SIP Trunk

Elastix GUI (remote access): https://52.85.12.118:54443

Elastix GUI (local access): https://192.168.48.10

Use an old version Firefox to access Elastix panel

Elastix Panel > PBX > PBX Configuration > Trunks

Add a Trunk > Add SIP Trunk

General Settings:
Trunk Name = fastiptsp
Outbound CallerID = 9678901234
CID Options = Force Trunk CID

Outgoing Settings:
Trunk Name = fastiptsp

PEER Details:

type=peer
host=23.220.75.232
port=5060
username=9678901234
secret=mGc5hQd4ep
fromuser=9678901234
context=from-trunk
insecure=invite,port
qualify=yes
dtmfmode=rfc2833
disallow=all
allow=ulaw,alaw,gsm,speex,opus,h263,h264
nat=yes
directmedia=no
canreinvite=no
session-timers=refuse

Incoming Settings:

Keep blank the “USER Context” and “USER Details” field. Both fields should enter nothing

Registration: (format: username:password@host/fromuser)

Register String:

9678901234:mGc5hQd4ep@23.220.75.232/9678901234

Click the button “Submit Changes”

Then “Apply Config”

If any other type of trunk (DAHDI) there, delete that trunk

2) Create an Extension Credential

Elastix Panel > PBX > PBX Configuration > Extensions

Add an Extension:

Device: Generic SIP Device

Click the “Submit” button

User Extension = 210
Display Name = 210
SIP Alias = 210

Scroll down..

Secret = hsu63b8vw9k2ntc

Scroll down…

Click the “Submit” button

Look at the upper right sidebar, and click on the extension number 210

Scroll down…

allow = ulaw,alaw,gsm,speex,opus,h263,h264

Click “Submit” again

Click “Apply Config”

3) Setup Incoming Call Route

Elastix Panel > PBX > PBX Configuration > Inbound Routes

Add Incoming Route:

Description = fastiptsp

Scroll down…

Set Destination:

== Choose One == > Extensions > 210

Click “Submit” button

Click “Apply Config”

4) Setup Outgoing Call Route

Elastix Panel > PBX > PBX Configuration > Outbound Routes

Firstly, look at the upper right sidebar for any existing outbound route if available delete that route

Add Route:

Route Name = fastiptsp

Scroll down to section Dial Patterns, we need to enter two match pattern field string

match pattern = +880.

Click “Add More Dial Pattern Fields”

match pattern = X.

Scroll down to Trunk Sequence section

Select trunk 0 = fastiptsp

Scroll down…

Click “Submit Changes”

Click “Apply Config”

5) Configure an IP Telephone Handset

Read the Handset manual book first, specially how to configure network

IP Phone Handset has two part to configure

First part is the network part, configure the network so that the handset get internet access

 

Second part is SIP connectivity part, configure the Line/SIP settings so that the handset can connect with Elastix call system

If the handset and Elastix server is in the same network:

Activate: yes/enable
Make Active: yes/enable

Account Name: 210
Display Name: 210
Username: 210
Login: 210
Authentication User: 210
Password: hsu63b8vw9k2ntc
Authentication Password: hsu63b8vw9k2ntc
Server: 192.168.48.10
Server Address: 192.168.48.10
SIP Server: 192.168.48.10
Realm: 192.168.48.10
Server Name: 192.168.48.10
Domain: 192.168.48.10

Then click “Save/Apply”

 

If the handset and Elastix server is on separate network:

Activate: yes/enable
Make Active: yes/enable

Account Name: 210
Display Name: 210
Username: 210
Login: 210
Authentication User: 210
Password: hsu63b8vw9k2ntc
Authentication Password: hsu63b8vw9k2ntc
Server: 52.85.12.118
Server Address: 52.85.12.118
SIP Server: 52.85.12.118
Realm: 52.85.12.118
Server Name: 52.85.12.118
Domain: 52.85.12.118

Then click “Save/Apply”

6) Test a Call

Enjoy !

Leave A Comment