VOIP phone‎ > ‎Setup‎ > ‎

Asterisk: SIP

SIP is recommended, but you may also use IAX.

sip.conf

[general]                
register => <username>:<password>@toronto.voip.ms:5060

[ezvoipco]
canreinvite=no
context=mycontext
host=toronto.ezvoip.co
secret=<password>
type=friend
username=<username>
disallow=all
allow=ulaw
; allow=g729 ; Uncomment if you support G729
fromuser=<username>
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 => <your 10-digit phone number>,1,Answer()