Create a SIP/ IAX trunk to a hosted SIP server

How to trunk to a Hosted SIP server?

The best way to trunk to smaRtCOM is to use IAX. The scenario is to connect 2 smaRtPBX to each other using smaRtCOM in the middle.


ext. 1001 <=> smaRtPBX1 (192.168.1.200) <=> smaRtCOM (host server IP) <=> smaRtPBX2 (192.168.1.9) <=> ext. 100


Here are the steps:

on smaRtCOM

Step1) Create IAX2 extension 4000 as peer extension for smaRtPBX1 (secret:123456)

Step2) Create IAX2 extension 5000 as peer extension for smaRtPBX2 (secret:123456)

Step3) Apply changes

On smaRtPBX1

Step1) Create an IAX2 trunk.

Step2) Set Trunk Name (eg. to-smaRtCOM)

Step3) Set peer details as:

host=HOST_IP
username=4000
secret=123456
type=friend
disallow=all
allow=g729
qualify=yes
nat=yes
context=from-trunk

Step4) Set connection string as:

4000:123456@HOST_IP

Step5) Submit and apply changes.

On smaRtPBX2

Step1) Create an IAX2 trunk.

Step2) Set Trunk Name (eg. to-smaRtCOM)

Step3) Set peer details as:

host=HOST_IP
username=5000
secret=123456
type=friend
disallow=all
allow=g729
qualify=yes
nat=yes
context=from-trunk

Step4) Set connection string as:

5000:123456@HOST_IP

Step5) Submit and apply changes.


Note: Make sure in IAX trunks type=friend and in connection string you have to put ip address instead of trunk name, otherwise it doesn’t work.

You may also like