SECN User Guide
Modifying Asterisk Operation
Setting up External VoIP
To add external VoIP support, changes are required to two Asterisk configuration files (
sip.conf
and
extensions.conf
) on the individual MP where the access is required.
1. In the
/etc/asterisk/sip.conf
file make the following changes:
a) In the
[general
] section, add the following lines to register with the VoIP provider:
; Register to VoIP Provider
register => myusername:
b) Add a new
[sipaccount]
section to define the account details:
[sipaccount]
host=
sip.mysipprovider.com
secret=
mysecret
username=
myusername
fromuser=
myusername
insecure=port,invite
type=friend
disallow=all
allow=gsm,ulaw,alaw
dtmfmod=rfc2833
qualify=yes
canreinvite=no
nat=yes
context=default
2. In the
/etc/asterisk/extensions.conf
file add the following lines at the start of the
[default]
section:
; Send incoming calls to the MP
exten => s,1,Dial(MP/1)
; Make outgoing calls using
[sipaccount]
details
; Dial # for access, and then required number string
exten => _#.,1,Dial(SIP/${EXTEN:1}@sipaccount,120,r)
SECN_UserGuideV1d6b
17