With the release of the new SIP stack PJSIP, SIP SRV records are now supported hence there is no need to configure multiple trunks to achieve high availability. If one of our server farms is not reachable, your Asterisk server will automatically fail-over to our backup platforms.
1. Open Connectivity Menu, select Trunks
2. Select SIP Trunk (chan_pjsip)
3. Label your SIP Trunk, specify number of channels
For security reasons, it’s best to limit the quantity of channels to the amount you will actually need in day to day use
4. Click on PJSIP Settings tab
Username: 7xxxxxxx Secret: xxxxxxxx SIP Server: sip.simtex.com.au SIP Server Port: 5060
5. Enter Advanced settings
Contact User: 7xxxxxxx (same as username) From Domain: Public IP address of your internet connection From User: 7xxxxxxx (same as username) Send RPID/PAI: Yes RTP Symmetric: Yes
In order to make outbound calls, your system needs to know what it’s allowed to route and where the calls are to be routed. We’ll set these up to guard against people making unauthorised calls on your system.
If you do not wish to make international calls, leave out the 0011 route pattern.
To save yourself from grief later down the track, configure a prefix to route all external calls. In Australia, we use 0 as a standard. This will ensure internal numbers will never overlap external destinations.
1. Within the Connectivity menu, select Outbound Routes and Add Outbound Route
2. Label your route, and select the SIP trunk previously configured.
3. Click Dial Patterns, and setup as required
The below configuration examples will accept a 0, then strip it off automatically prior to sending it to the Simtex Trunk.
Inbound routes are used to direct incoming calls to your allocated DIDs. You can have individual numbers go to different extensions, groups, IVR routines etc as you wish.
1. From the Connectivity menu, select Inbound Routes and Add Incoming Route
2. Create a Catch-All route
First up we will create a ‘catch-all’ inbound route. This will be answered by your PBX if a number is sent to you but not actually configured on your system. Most users will route this to a receptionist or main hunt group.
Also set the desired destination…in our example we have it ringing a Ring Group but you may select another option.
3. Create and inbound route for your DID or block of DID’s
Add entries for individual numbers, or blocks of numbers. You can enter wildcard patterns such as _618921133XX
Note: If using wildcard patterns, you must use an underscore: _618921133XX