Vanilla Asterisk

Overview

Vanilla Asterisk can have infinite variations in its configuration and dialplan. You may use these examples to help you get started.

Navigate to /etc/asterisk and edit these files

sip.conf

[SkyetelSW]
type=friend
insecure=very
host=52.8.201.128
dtmfmode=rfc2833
disallow=all
context=from-trunk
allow=g722&ulaw
qualify=yes
#tcpenable=yes

[SkyetelNE]
type=friend
insecure=very
host=52.60.138.31
dtmfmode=rfc2833
disallow=all
context=from-trunk
allow=g722&ulaw
qualify=yes
#tcpenable=yes

[SkyetelNW]
type=friend
insecure=very
host=52.41.52.34
dtmfmode=rfc2833
disallow=all
context=from-trunk
allow=g722&ulaw
qualify=yes
#tcpenable=yes

[SkyetelSE]
type=friend
insecure=very
host=50.17.48.216
dtmfmode=rfc2833
disallow=all
context=from-trunk
allow=g722&ulaw
qualify=yes
#tcpenable=yes

extensions.conf

[11 Digit]
exten => _1xxxxxxxxxx,1,Dial(SIP/SkyetelTERM/${EXTEN},45)
exten => _1xxxxxxxxxx,n,Dial(SIP/SkyetelOR/${EXTEN},45)
exten => _1xxxxxxxxxx,n,Dial(SIP/SkyetelCA/${EXTEN},45)
exten => _1xxxxxxxxxx,n,Dial(SIP/SkyetelVA/${EXTEN},45)
exten => _1xxxxxxxxxx,n,Hangup()

[10 Digit]
exten => _xxxxxxxxxx,1,Dial(SIP/SkyetelTERM/1${EXTEN},45)
exten => _xxxxxxxxxx,n,Dial(SIP/SkyetelOR/1${EXTEN},45)
exten => _xxxxxxxxxx,n,Dial(SIP/SkyetelCA/1${EXTEN},45)
exten => _xxxxxxxxxx,n,Dial(SIP/SkyetelVA/1${EXTEN},45)
exten => _xxxxxxxxxx,n,Hangup()

[0 Prefix, 11 Digit]
exten => _01xxxxxxxxxx,1,Dial(SIP/SkyetelTERM/1${EXTEN:1},45)
exten => _01xxxxxxxxxx,n,Dial(SIP/SkyetelOR/1${EXTEN:1},45)
exten => _01xxxxxxxxxx,n,Dial(SIP/SkyetelCA/1${EXTEN:1},45)
exten => _01xxxxxxxxxx,n,Dial(SIP/SkyetelVA/1${EXTEN:1},45)
exten => _01xxxxxxxxxx,n,Hangup()

[9 Prefix, 11 Digit]
exten => _91xxxxxxxxxx,1,Dial(SIP/SkyetelTERM/1${EXTEN:1},45)
exten => _91xxxxxxxxxx,n,Dial(SIP/SkyetelOR/1${EXTEN:1},45)
exten => _91xxxxxxxxxx,n,Dial(SIP/SkyetelCA/1${EXTEN:1},45)
exten => _91xxxxxxxxxx,n,Dial(SIP/SkyetelVA/1${EXTEN:1},45)
exten => _91xxxxxxxxxx,n,Hangup()

[Emergency]
exten => _911,1,Dial(SIP/SkyetelTERM/${EXTEN},45)
exten => _911,n,Dial(SIP/SkyetelOR/${EXTEN},45)
exten => _911,n,Dial(SIP/SkyetelCA/${EXTEN},45)
exten => _911,n,Dial(SIP/SkyetelVA/${EXTEN},45)
exten => _911,n,Hangup()

[Emergency Test]
exten => _933,1,Dial(SIP/SkyetelTERM/${EXTEN},45)
exten => _933,n,Dial(SIP/SkyetelOR/${EXTEN},45)
exten => _933,n,Dial(SIP/SkyetelCA/${EXTEN},45)
exten => _933,n,Dial(SIP/SkyetelVA/${EXTEN},45)
exten => _933,n,Hangup()

Apply Config

service asterisk reload
Was this article helpful?
0 out of 0 found this helpful
Return to top