Asterisk is fully compatible with MaxoTel VoIP.
Before you begin, ensure that you've created your extension in the My Account Portal, https://my.maxo.com.au/. To retrieve the details of an existing extension, or create a new extension, login to the My Account Portal and select SIP Trunks from the menu. If you're creating a new extension, click the Add Extension button, fill in the details and click Save. For additional information on creating an extension, please see Portal Guide - PBX Extensions and Sip Trunks Find the extension number you're configuring, then click Edit. Take note of the following fields, highlighted in the image below, as you'll need these to setup the device. Note that if the extension is already configured on a device, you'll need to reconfigure, power down or factory reset the currently connected device before the required information will be displayed.
Please choose your Asterisk deployment type below for configuration details.
1. Log into FreePBX.
2. Click the Setup link at the top of the page, then "Trunks", to the left of the page.
3. Click "Add SIP Trunk"
4. Scroll down to "Outgoing Settings".
5. Type MaxoTel into "Trunk Name"
6. Enter the following into PEER Details, copying the bold fields from the Configure SIP Trunk dialog.
(add fromuser=RegisterUsername if you have multiple SIP trunks on the same Asterisk box):
context=from-trunk
fromdomain=sip.maxo.com.au
user=RegisterUsername
host=sip.maxo.com.au
insecure=very
secret=Password
type=peer
username=RegisterUsername
7. Type your Register Username into "User Context"
8. Enter the following into USER Details, copying the password from the Configure SIP Trunk dialog:
context=from-trunk
insecure=very
secret=Password
type=user
9. Enter this into your register string, copying the fields from the Configure SIP Trunk dialog:
RegisterUsername:Password@sip.maxo.com.au/RegisterUsername
10. Be sure to reload asterisk after making changes to configuration files. You will have to then setup your dial plan in extensions.conf so that when you dial a number, it goes out through SIP/MaxoTel/number_to_dial
For example, if your SIP Trunk's register username is 70001 with a password of 12345, your configuration will look similar to this:
context=from-trunk
fromdomain=sip.maxo.com.au
user=70001
host=sip.maxo.com.au
insecure=very
secret=12345
type=peer
username=70001
context=from-trunk
insecure=very
secret=12345
type=user
70001:12345@sip.maxo.com.au/70001
Login to your Asterisk server and add the following lines to your sip.conf file, copying the bold fields from the Configure SIP Trunk dialog.
register=RegisterUsername:Password@sip.maxo.com.au/RegisterUsername
[RegisterUsername]
type=user
secret=Password
insecure=very
context=from-trunk
[trunkName]
username=RegisterUsername
type=peer
secret=Password
insecure=very
host=sip.maxo.com.au
fromuser=RegisterUsername
fromdomain=sip.maxo.com.au
For example, if your SIP Trunk's register username is 70001 with a password of 12345, your configuration will look similar to this:
register=70001:12345@sip.maxo.com.au/70001
[70001]
type=user
secret=12345
insecure=very
context=from-trunk
[trunkName]
username=70001
type=peer
secret=12345
insecure=very
host=sip.maxo.com.au
fromuser=70001
fromdomain=sip.maxo.com.au
Be sure to reload asterisk after making changes to configuration files. You will have to then setup your dial plan in extensions.conf so that when you dial a number, it goes out through SIP/MaxoTel/number_to_dial
Login to your Asterisk server and add the following lines to your pjsip.conf file, copying the bold fields from the Configure SIP Trunk dialog.
[trunk]
type = registration
outbound_auth = trunk-auth
server_uri = sip:sip.maxo.com.au
client_uri = sip:RegisterUsername@sip.maxo.com.au
retry_interval = 60
expiration = Re-Register Interval
[trunk-auth]
type = auth
auth_type = userpass
username = RegisterUsername
password = Password
realm = sip.maxo.com.au
[endpoint]
type=endpoint
context = Trunk-Incoming
allow = !all,ulaw,alaw,g729
outbound_auth = endpoint-auth
aors = endpoint-aor
direct_media = no
from_domain = sip.maxo.com.au
[endpoint-auth]
type = auth
auth_type = userpass
username = RegisterUsername
password = Password
realm = sip.maxo.com.au
[endpoint-aor]
type = aor
contact = sip:sip.maxo.com.au
[endpoint-identify]
type=identify
endpoint = endpoint
match = 202.52.129.53
Be sure to reload asterisk after making changes to configuration files. You will have to then setup your dial plan in extensions.conf so that when you dial a number, it goes out through PJSIP/${EXTEN}@endpoint