diff --git a/extensions.conf b/extensions.conf new file mode 100644 index 0000000..36f6fd5 --- /dev/null +++ b/extensions.conf @@ -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-) \ No newline at end of file diff --git a/modules.conf b/modules.conf new file mode 100644 index 0000000..c02e8ff --- /dev/null +++ b/modules.conf @@ -0,0 +1,2 @@ +[modules] +autoload=yes \ No newline at end of file diff --git a/nexmo.conf b/nexmo.conf new file mode 100644 index 0000000..76c1892 --- /dev/null +++ b/nexmo.conf @@ -0,0 +1,51 @@ +[general] +context=nexmo-trunk +register => :@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-] +context=nexmo-trunk +username= +defaultuser= +secret= +fromuser= +fromdomain=sip.nexmo.com +host=sip.nexmo.com +type=peer +insecure=very +qualify=yes +nat=no +dtmfmode=rfc2833 +allow=ulaw +allow=alaw +allow=G729 \ No newline at end of file diff --git a/sip.conf b/sip.conf new file mode 100644 index 0000000..59958ba --- /dev/null +++ b/sip.conf @@ -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 \ No newline at end of file