Check out the configuration details below.
 
sip.conf
 
[YOUR_USERNAME]
type=peer
username=YOUR_USERNAME
secret=YOUR_PASSWORD
dtmfmode=RFC2833
disallow=all
allow=g729
allow=g723
host=control.voiplid.com
context=to-voiplid
 
extensions.conf
 
[to-voiplid]
exten => _X.,1,Dial(SIP/${EXTEN}@YOUR_USERNAME)
exten => _X.,n,Hangup
 
At the end reload Asterisk and check.