pjSIP is always recommended, but you may also use IAX.
As before, please obtain YourData by login -> MyServices.
sip.conf
[general]
register => YourUserID:YourPassword@YourDomain:5060
[ezvoipco]
canreinvite=no
context=mycontext
host=YourDomain
secret=YourPassword
type=friend
username=YourUserID
disallow=all
allow=ulaw
; allow=g729 ; Uncomment if you support G729
fromuser=YourUserID
trustrpid=yes
sendrpid=yes
insecure=port,invite
; nat=yes ; Uncomment this if your box is behind a NAT
Extensions.conf
[mycontext]
include => ezvoipco-outbound
include => ezvoipco-inbound
[voipms-outbound]
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@ezvoipco)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@ezvoipco)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@ezvoipco)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@ezvoipco)
exten => _00.,n,Hangup()
; inbound context example
[voipms-inbound]
exten => Your10digitPhoneNumber,1,Answer()
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0
[voipms]
type = registration
transport = transport-udp
outbound_auth = ezvoip
client_uri = sip:##_##@toronto5.ezvoip.co:5060 ; (one of our multiple servers, you can choose the one closer to your location)
server_uri = sip:toronto5.ezvoip.co:5060 ; (one of our multiple servers, you can choose the one closer to your location)
[ezvoip]
type = auth
auth_type = userpass
username = ##_## ; (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
password = yourpassword ; your password
[ezvoip]
type = aor
contact = sip:##_##@toronto5.ezvoip.co ; (one of our multiple servers, you can choose the one closer to your location)
[ezvoip]
type = endpoint
transport = transport-udp
context = mycontext
disallow = all
allow = ulaw
; allow=g729 ; uncomment if you support g729
from_user = ##_## ; (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
auth = ezvoip
outbound_auth = ezvoip
aors = ezvoip
; NAT parameters:
rtp_symmetric = yes
rewrite_contact = yes
send_rpid = yes
[ezvoip]
type = identify
endpoint = ezvoip
match = toronto5.ezvoip.co ; (one of our multiple servers, you can choose the one closer to your location)
[mycontext]
; Make sure to include inbound prior to outbound because the _NXXNXXXXXX handler will match the incoming call and create a loop
include => ezvoip-inbound
include => ezvoip-outbound
[ezvoip-outbound]
exten => _1NXXNXXXXXX,1,Dial(PJSIP/${EXTEN}@ezvoip)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(PJSIP/1${EXTEN}@ezvoip)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(PJSIP/${EXTEN}@ezvoip)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(PJSIP/${EXTEN}@ezvoip)
exten => _00.,n,Hangup()
; inbound context example for your DID numbers, do not add the number 1 in front
[ezvoip-inbound]
exten => 416#######,1,Answer() ;your DID
Note: You'll need to create a sub account to use IP Auth
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0
[ezvoip]
type = aor
contact = sip:##_##@toronto5.ezvoip.co ; (one of our multiple servers, you can choose the one closer to your location)
[ezvoip]
type = endpoint
transport = transport-udp
context = mycontext
disallow = all
allow = ulaw
; allow=g729 ; uncomment if you support g729
from_user = ##_## ; (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
aors = ezvoip
; NAT parameters:
rtp_symmetric = yes
rewrite_contact = yes
send_rpid = yes
[ezvoip]
type = identify
endpoint = ezvoip
match = toronto5.ezvoip.co ; (one of our multiple servers, you can choose the one closer to your location)
[mycontext]
; Make sure to include inbound prior to outbound because the _NXXNXXXXXX handler will match the incoming call and create a loop
include => ezvoip-inbound
include => ezvoip-outbound
[ezvoip-outbound]
exten => _1NXXNXXXXXX,1,Dial(PJSIP/${EXTEN}@ezvoip)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(PJSIP/1${EXTEN}@ezvoip)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(PJSIP/${EXTEN}@ezvoip)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(PJSIP/${EXTEN}@ezvoip)
exten => _00.,n,Hangup()
; inbound context example for your DID numbers, do not add the number 1 in front
[ezvoip-inbound]
exten => 416#######,1,Answer() ;your DID
(We have marked the necessary substitutions in red.)