Jola SIP Trunk - Asterisk

Jola SIP Trunk - Asterisk

Chan_SIP Configuration

There are two different ways you can connect, IP Auth SIP trunk and Username/Password Registration Trunk.


IP Auth Configuration

Add the following lines to sip.conf, change the values as required.



host=<SIP Gateway IP>
context=sip-in
type=peer
nat=yes


Username/Password Configuration

Add the following lines to sip.conf, change the values as required.



host=registrar.zapappi.net
fromdomain=registrar.zapappi.net
type=peer
disallow=all
allow=ulaw
allow=alaw
uesrname=<Username Provided>
defaultuser=<Username Provided>
secret=<Password Provided>
context=sip-in
sendrpid=yes
insecure=port,invite
directmedia=no
nat=yes


Now we need to add a registration statement to tell Asterisk to register the SIP trunk. This enables you to receive calls from that trunk.


In sip.conf add the following line (replace where required).

register => <user>:<secret>@registrar.zapappi.net


Now either restart asterisk or login to the asterisk console and do 'reload'.


Firewall Settings (Guideline)

Below is a guideline for firewall settings for IP Authenticated SIP trunks using Asterisk. The standard RTP ports for Asterisk are 10,000-20,000, however, if you've changed them in rtp,conf, you should open the range you've set there and not the ones outlines below.


Protocol
Direction
Port Range
Source
Destination
Description
UDP
Inbound
10,000-20,000
Anywhere (0.0.0.0)
LAN IP of Asterisk
RTP Media Range
UDP
Inbound
5060
SIP Gateway Assigned to Customer
LAN IP of Asterisk
SIP Signalling Port