Настройка связки NSG-3806 <=> Asterisk
Голосовой шлюз NSG-3806 (Welltech) имеет 6 FXO портов на борту. У меня на него заведены 4 входящих линии, поэтому в данном примере создадим в FreePBX 4 trunk-а примерно такого содержания:
Maximum channels: 1
Dial Rules: 91+.
Trunk Name: 5499051PEER Details:
host=dynamic
type=friend
username=5499051
secret=5499051_password
qualify=yes
context=from-trunk
Maximum channels: 1
Dial Rules: 92+.
Trunk Name: 5499052PEER Details:
host=dynamic
type=friend
username=5499052
secret=5499052_password
qualify=yes
context=from-trunk
Maximum channels: 1
Dial Rules: 93+.
Trunk Name: 5499053PEER Details:
host=dynamic
type=friend
username=5499053
secret=5499053_password
qualify=yes
context=from-trunk
Maximum channels: 1
Dial Rules: 94+.
Trunk Name: 5499054PEER Details:
host=dynamic
type=friend
username=5499054
secret=5499054_password
qualify=yes
context=from-trunk
USER Details во всех транках оставляем пустыми.
Теперь прошиваем шлюз прошивкой с поддержкой SIP и настраиваем его. Прошивку, а также руководство пользователя можно взять на сайте nsgate.ru, здесь я эти функции описывать не буду. Дальше после конфигурирования и перезагрузки должно получиться следующее:
rom -print
Download Method : TFTP
Boot Rom : boot.104
Application Rom : 6sipfxo.106
DSP App : 48302ce3.310
DSP Kernel : 48302ck.310
DSP Test Code : 483cbit.bin
Greetings : greeting.rus
Ask Pin : pincode.rus
ifaddr -print
Internet address informationIP address : 10.70.131.201Subnet mask : 255.255.252.0Default gateway : 10.70.128.1DNS primary : 89.222.212.129DNS secondary : 168.95.1.1mode : 0(0=FIX IP, 1=DHCP, 2=PPPoE)SNTP : mode=1server 168.95.195.12time zone : GMT+8cycle=1024 minsIPSharing : no IPSharing device.HTTP port : 80
sysconf -print
System information
Inter-Digits time : 3
Keypad DTMF type : RFC2833
Ring time : 200
FXO Dial DTMF Delay(Unit:s) : 1
Ring Before Answer : 1
End of dial : Enable
Billing : none
Silence Detection : Disable
Caller Id Type : FSK(ETSI)
Auto connect time : 5
Auto ON-HOOK Function : Enable
IVR Function : Disable
SIP Ping : OFF
sip -print
Run Mode : PROXY MODE
Proxy server address : pbx.spnet.ru
Primary Proxy port : 5060
Secondary Proxy address : null
Secondary Proxy port : 5060
OutBound Proxy address : null
OutBound Proxy port : 5060
Prefix string : null
Line1 (LINE) : 5499051
Line2 (LINE) : 5499052
Line3 (LINE) : 5499053
Line4 (LINE) : 5499054
Line5 (LINE) : x
Line6 (LINE) : x
pbook search : OFF
SIP port : 5060
RTP port : 16384
Expire : 60
Busy Response Message : 486
security -print
Line1 account information
Username : 5499051
Password : ********
Line2 account information
Username : 5499052
Password : ********
Line3 account information
Username : 5499053
Password : ********
Line4 account information
Username : 5499054
Password : ********
Line5 account information
Username : x
Password : *
Line6 account information
Username : x
Password : *
line -print
Line information and configuration
Index Type Hunt Hotline Reg. Status
========================================================
1 FXO 1 300 OK Ready
2 FXO 2 300 OK Ready
3 FXO 3 300 OK Ready
4 FXO 4 300 OK Busy
5 FXO 5 x No Ready
6 FXO 6 x No Ready
route -print
Routing table information and configurationIndex Prefix Dst. E.164 Min Max Hunt Drop=============================================================================IP Default FXO xFXO Default IP x1 91 FXO 5499051 1 14 NONE Enable2 92 FXO 5499052 1 14 NONE Enable3 93 FXO 5499053 1 14 NONE Enable4 94 FXO 5499054 1 14 NONE Enable
voice -print
Voice codec setting relate informationSending packet size :G.723.1 : 60 msG.729 : 60 msG.729A : 60 msG.729B : 60 msG.729AB : 60 msG.711U : 40 msG.711A : 40 msPriority order codec :g7231 g729 g729a g729b g729ab g711u g711aVolume levels :voice volume : 30 30 30 30 30 30input gain : 32 32 32 32 32 32dtmf volume : 23 23 23 23 23 23No sound compress & CNG :G.723.1 : OnG.729 : There is no settingG.729A : There is no settingG.729B : There is no settingG.729AB : There is no settingG.711(U-Law) : There is no settingG.711(A-Law) : There is no settingEcho canceller : On On On On On OnJitter buffer :Min Delay : 60Max Delay : 120
tone -print
Disconnect tone 1 paramterfrequency low : 425Frequency high : 425frequency low level : 8frequency high level : 8Tone1 on : 35Tone1 off : 35Tone2 on : 35Tone2 off : 35Disconnect tone 2 paramterfrequency low : 0Frequency high : 425frequency low level : 0frequency high level : 10Tone1 on : 35Tone1 off : 35Tone2 on : 1023Tone2 off : 1023Disconnect tone 3 paramterfrequency low : 480Frequency high : 620frequency low level : 8frequency high level : 8Tone1 on : 50Tone1 off : 50Tone2 on : 1023Tone2 off : 1023Disconnect tone 4 paramterfrequency low : 350Frequency high : 440frequency low level : 8frequency high level : 8Tone1 on : 1023Tone1 off : 1023Tone2 on : 25Tone2 off : 25Remote ring back tone 1 paramterfrequency low : 440Frequency high : 480frequency low level : 13frequency high level : 13Tone1 on : 100Tone1 off : 200Tone2 on : 1023Tone2 off : 1023Remote ring back tone 2 paramterfrequency low : 440Frequency high : 480frequency low level : 13frequency high level : 13Tone1 on : 100Tone1 off : 300Tone2 on : 1023Tone2 off : 1023Remote ring back tone 3 paramterfrequency low : 440Frequency high : 480frequency low level : 13frequency high level : 13Tone1 on : 100Tone1 off : 400Tone2 on : 1023Tone2 off : 1023Remote ring back tone 4 paramterfrequency low : 440Frequency high : 480frequency low level : 13frequency high level : 13Tone1 on : 100Tone1 off : 200Tone2 on : 1023Tone2 off : 1023
support -print
Special Voice function support manipulationT.38(FAX) support : DisabledT.38(FAX) ECM : DisabledFAX redundancy depth : 0