1
0

Initial Asterisk configuration.

This commit is contained in:
Jack Hadrill 2020-02-13 21:09:12 +00:00
parent def7eccaf4
commit dd81269e04
4 changed files with 78 additions and 0 deletions

12
extensions.conf Normal file
View File

@ -0,0 +1,12 @@
[general]
autofallthrough=yes
[globals]
[nexmo-trunk]
exten => _X.,1,Dial(SIP/${EXTEN},30)
[internal]
exten => 666,1,Dial(SIP/666)
exten => 777,1,Dial(SIP/777)
exten => _X.,1,Dial(SIP/${EXTEN}@nexmo-<phone_number>)

2
modules.conf Normal file
View File

@ -0,0 +1,2 @@
[modules]
autoload=yes

51
nexmo.conf Normal file
View File

@ -0,0 +1,51 @@
[general]
context=nexmo-trunk
register => <username>:<api_key>@sip.nexmo.com
nat=yes
[nexmo]
context=nexmo-trunk
fromdomain=sip.nexmo.com
type=peer
insecure=port,invite
nat=no
dtmfmode=rfc2833
allow=ulaw
allow=alaw
allow=G729
[nexmo-sip-01](nexmo)
host=5.10.112.121
[nexmo-sip-02](nexmo)
host=5.10.112.122
[nexmo-sip-03](nexmo)
host=119.81.44.6
[nexmo-sip-04](nexmo)
host=119.81.44.7
[nexmo-sip-05](nexmo)
host=169.60.141.29
[nexmo-sip-06](nexmo)
host=169.60.141.30
[nexmo-<phone_number>]
context=nexmo-trunk
username=<username>
defaultuser=<username>
secret=<api_key>
fromuser=<phone_number>
fromdomain=sip.nexmo.com
host=sip.nexmo.com
type=peer
insecure=very
qualify=yes
nat=no
dtmfmode=rfc2833
allow=ulaw
allow=alaw
allow=G729

13
sip.conf Normal file
View File

@ -0,0 +1,13 @@
#include nexmo.conf
[666]
type=friend
host=dynamic
secret=123
context=internal
[777]
type=friend
host=dynamic
secret=456
context=internal