Asterisk Configuration Guide
Here are sample asterisk configurations for Voipfone:
<<== start of sip.conf ==>>
[general]
register=> <ACCOUNT-NUMBER>:<PASSWORD>@sip.voipfone.net/<ACCOUNT-NUMBER>
[voipfone]
type=peer
secret=<PASSWORD>
username=<ACCOUNT-NUMBER>
fromuser=<ACCOUNT-NUMBER>
fromdomain=sip.voipfone.net
host=sip.voipfone.net
insecure=invite,port
dtmfmode=rfc2833
context=from-pstn ;inbound calls falls in this context of dialplan
<<== end of sip.conf ==>>
This is an example of minimal extensions.conf dialplan. It simply forwards all incoming calls to user 123 over SIP:
<<== extensions.conf ==>>
[voipfone]
exten => _.,1,Dial(SIP/123)
Peer Details
type=peer
secret=<PASSWORD>
username=<ACCOUNT-NUMBER>
fromuser=<ACCOUNT-NUMBER>
authuser=<ACCOUNT-NUMBER>
fromdomain=sip.voipfone.net
host=sip.voipfone.net
insecure=invite,port
dtmfmode=rfc2833
qualify=yes
context=from-pstn
In the "SIP Settings" section within the "Incoming" tab, configure:
Register String: <ACCOUNT-NUMBER>:<PASSWORD>@sip.voipfone.net/<ACCOUNT-NUMBER>