SIP is 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()
|
|
(We have marked the necessary substitutions in red.)
|
|