DialDigit has several SIP Proxy Servers that you can register with . You will be noticed which server to use in your Dialdigit welcome email.
Dialdigit SIP Proxy Servers are listed below:
sip01.dialdigit.com
sip02.dialdigit.com
sip03.diadigit.com
sip04.dialdigit.com
sip05.dialdigit.com
You need to do the following changes on the sip.conf file:
[general]
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=g729
allow=ulaw
allow=alaw
context=from-pstn
progressinband=no
progressinband=never
dtmf=rfc2833
dtmfmode=rfc2833
;use this section if your asterisk box is behind a nat
externip = your public wan ip address
localnet=x.x.x.x/x.x.x.x ; example:localnet=192.168.0.0/255.255.0.0
register => <username>:<password>@sip01.dialdigit.com/yourphonenumber
; dialdigit
[dialdigit]
allow=ulaw&alaw
allow=g729
authname=username
canreinvite=no
disallow=all
dtmfmode=rfc2833
dtmf=rfc2833
fromuser=username
host=sip01.dialdigit.com
insecure=very
port=5060
secret=Your Password
type=friend
user=phone
username=username
Step 2:
Adding A Dial Context – extensions.conf
Your dial context depends on how you wish to decide to send calls to dialdigit.
For example, if you wanted to send all 1+ and 011+ calls to dialdigit:
============begin_of_extensions.conf=====================
[dialdigit-out]
exten => _1.,1,Dial,Sip/${EXTEN}@dialdigit
exten => _011.,1,Dial,Sip/${EXTEN}@dialdigit