Elastix
From VoIP.ms Wiki
Elastix is an open source unified communications server software that brings together: IP PBX, Email, IM and Faxing. The Elastix functionality is based on open source projects including Asterisk, HylaFAX, Openfire and Postfix. Those packages offer the PBX, fax, instant messaging and email functions, respectively. Elastix runs on CentOS operating system, and in this article we will review the basic settings of the Elastix PBX for SIP and IAX2.
SIP Trunk
In order to connect your PBX system to our service you will have to create a Trunk, for this, once you access to your PBX through the IP address, select the PBX tab from the main menu bar at the top and then select the PBX configuration option from the second menu bar, after this, select the Trunks option on the left and there you will be able to create a SIP trunk.
There, you will be able to configure the following options:
Trunk Name: Descriptive name of the trunk, in the case of the SIP trunks you can use the name that you prefer (voipms for example).
Outbound Caller ID: The 10 digits valid caller ID number, this is the Caller ID that you will pass with this trunk at the Outbound calls.
Trunk Name: The Name of the trunk that you will configure, in the case of the SIP trunks you can use the name that you prefer (voipms for example).
User Context and User Details: Leave these fields blank.
Peer Details: At this field use the following information:
canreinvite=nonat nat=yes context=from-trunk host=atlanta.voip.ms (use one of the multiple VoIP.ms servers) secret=***** (password associated with the Main or Sub-account) type=peer username=100000 (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub) disallow=all allow=ulaw ; allow=g729 (uncomment if you purchased g.729 from Digium) fromuser=100000 (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub) trustrpid=yes sendrpid=yes insecure=invite qualify=yes
Register String: On this field, set the following information:
youraccountnumber:[email protected]:5060 (i.e. 100000:[email protected]:5060)
Once you have configured the Trunk, click at the Submit Changes button at the end of the page in order to save the settings and then click at the Apply Configuration Changes Here option in red at the top of the page in order to apply the configurations to the PBX system.
IAX2 Trunk
If you want to create an IAX2 Trunk, you will have to select the PBX tab from the main menu bar at the top and then select the PBX configuration option from the second menu bar, after this, select the Trunks option on the left and there you will be able to create a IAX2 trunk.
There, you will be able to configure the following options:
Trunk Name: Descriptive name of the trunk, in the case of the IAX2 trunks the name of the trunk must be set as voipms in lowercase.
Outbound Caller ID: The 10 digits valid caller ID number, this is the Caller ID that you will pass with this trunk at the Outbound calls.
Trunk Name: The Name, in the case of the IAX2 trunks the name of the trunk must be set as voipms in lowercase.
User Context and User Details: Leave these fields blank.
Peer Details: At this field use the following information:
type=friend username=100000 (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub) secret=***** (password associated with the Main or Sub-account) context=from-trunk host=atlanta.voip.ms (use one of the multiple VoIP.ms servers) disallow=all allow=ulaw insecure=port,invite requirecalltoken=no qualify=yes
Register String: On this field, set the following information:
youraccountnumber:[email protected]:4569 (i.e. 100000:[email protected]:4569)
Once you have configured the Trunk, click at the Submit Changes button at the end of the page in order to save the settings and then click at the Apply Configuration Changes Here option in red at the top of the page in order to apply the configurations to the PBX system.
Outbound Routes
Once you have created the Trunk and registered your PBX system to our service, you will have to create the Outbound Routes in order to be able to place calls, for this select the Outbound Routes on the menu of the left and then click on Add Route
There, you will be able to configure the following options:
Route Name: The name that you will use to identify this outbound route ("local", "international" for example)
Route Caller ID: The 10 digits valid caller ID number, this is the Caller ID that you will pass when you use this specific Outbound route.
This Caller ID will override all the caller ID, except: *Extension Caller ID (Unless you check the Override Extension when you create the Outbound route). *Extension Emergency Caller ID (If the Extension and the Outbound route has the Emergency option enabled). *Trunk Caller ID (In case that you have selected the Force Trunk Caller ID option at Caller ID option in the Trunk settings).
Route Password: In case that you want to ask for a password before the calls connects to the destination.
Route Position: The priority of this route in relation to the other Outbound routes that you have configured.
Dial Patterns: These are a unique set of digits that will active this Outbound Route and will send the Call through the Designated Trunk.
In the case of the Dial Patterns the Elastix PBX has an option called Dial patterns wizards this will allow you to add the Match Patterns that you will use with this Outbound Route, for this you just have to select, from the drop down menu, the destinations that you would like to call with this Outbound route (Local numbers with 10 or 7 digits, Toll-free numbers, International numbers, Emergency numbers, Information numbers, etc) and it will automatically add the Match Pattern for those calls.
Additionally we recommend to add a Match Pattern for 4XXX, in order to be able to call to our Echo Test (4443)
Trunk Sequence for Matched Routes: This is the Trunk that your Outbound Route will use to place the calls.
Once you have configured the Outbound Route, click at the Submit Changes button at the end of the page in order to save the settings and then click at the Apply Configuration Changes Here option in red at the top of the page in order to apply the configurations to the PBX system.