This is obsolete and pjSIP is recommended, but you may also use IAX.
As before, please obtain YourData by login -> MyServices.
sip.conf
[general]
register => YourUserID:YourPassword@YourDomain:5060
[ezvoip]
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 => ezvoip-outbound
include => ezvoip-inbound
[ezvoip-outbound]
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@ezvoip)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@ezvoip)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@ezvoip)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@ezvoip)
exten => _00.,n,Hangup()
; inbound context example
[ezvoip-inbound]
exten => Your10digitPhoneNumber,1,Answer()
(We have marked the necessary substitutions in red.)