Настройка связки NSG-3806 <=> Asterisk

Голосовой шлюз NSG-3806 (Welltech) имеет 6 FXO портов на борту. У меня на него заведены 4 входящих линии, поэтому в данном примере создадим в FreePBX 4 trunk-а примерно такого содержания:

Maximum channels: 1
Dial Rules: 91+.
Trunk Name: 5499051

PEER Details:

host=dynamic
type=friend
username=5499051
secret=5499051_password
qualify=yes
context=from-trunk

Maximum channels: 1
Dial Rules: 92+.
Trunk Name: 5499052

PEER Details:

host=dynamic
type=friend
username=5499052
secret=5499052_password
qualify=yes
context=from-trunk

Maximum channels: 1
Dial Rules: 93+.
Trunk Name: 5499053

PEER Details:

host=dynamic
type=friend
username=5499053
secret=5499053_password
qualify=yes
context=from-trunk

Maximum channels: 1
Dial Rules: 94+.
Trunk Name: 5499054

PEER 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 information
    IP address       : 10.70.131.201
    Subnet mask      : 255.255.252.0
    Default gateway  : 10.70.128.1
    DNS primary      : 89.222.212.129
    DNS secondary    : 168.95.1.1
    mode             : 0(0=FIX IP, 1=DHCP, 2=PPPoE)
    SNTP             : mode=1
                      server 168.95.195.12
                      time zone : GMT+8
                      cycle=1024 mins
    IPSharing        : 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 configuration
Index  Prefix                Dst.  E.164            Min  Max  Hunt   Drop
=============================================================================
IP  Default                  FXO   x
FXO Default                  IP    x
1      91                    FXO   5499051          1    14   NONE   Enable
2      92                    FXO   5499052          1    14   NONE   Enable
3      93                    FXO   5499053          1    14   NONE   Enable
4      94                    FXO   5499054          1    14   NONE   Enable

voice -print

Voice codec setting relate information
    Sending packet size  :
            G.723.1      : 60 ms
            G.729        : 60 ms
            G.729A       : 60 ms
            G.729B       : 60 ms
            G.729AB      : 60 ms
            G.711U       : 40 ms
            G.711A       : 40 ms
    Priority order codec :
            g7231 g729 g729a g729b g729ab g711u g711a
    Volume levels        :
            voice volume : 30 30 30 30 30 30
            input gain   : 32 32 32 32 32 32
            dtmf volume  : 23 23 23 23 23 23
 No sound compress & CNG :
            G.723.1      : On
            G.729        : There is no setting
            G.729A       : There is no setting
            G.729B       : There is no setting
            G.729AB      : There is no setting
            G.711(U-Law) : There is no setting
            G.711(A-Law) : There is no setting
    Echo canceller       : On On On On On On
    Jitter buffer        :
            Min Delay    : 60
            Max Delay    : 120

tone -print

Disconnect tone 1 paramter
    frequency low         : 425
    Frequency high        : 425
    frequency low level   : 8
    frequency high level  : 8
    Tone1 on              : 35
    Tone1 off             : 35
    Tone2 on              : 35
    Tone2 off             : 35
Disconnect tone 2 paramter
    frequency low         : 0
    Frequency high        : 425
    frequency low level   : 0
    frequency high level  : 10
    Tone1 on              : 35
    Tone1 off             : 35
    Tone2 on              : 1023
    Tone2 off             : 1023
Disconnect tone 3 paramter
    frequency low         : 480
    Frequency high        : 620
    frequency low level   : 8
    frequency high level  : 8
    Tone1 on              : 50
    Tone1 off             : 50
    Tone2 on              : 1023
    Tone2 off             : 1023
Disconnect tone 4 paramter
    frequency low         : 350
    Frequency high        : 440
    frequency low level   : 8
    frequency high level  : 8
    Tone1 on              : 1023
    Tone1 off             : 1023
    Tone2 on              : 25
    Tone2 off             : 25
Remote ring back tone 1 paramter
    frequency low         : 440
    Frequency high        : 480
    frequency low level   : 13
    frequency high level  : 13
    Tone1 on              : 100
    Tone1 off             : 200
    Tone2 on              : 1023
    Tone2 off             : 1023
Remote ring back tone 2 paramter
    frequency low         : 440
    Frequency high        : 480
    frequency low level   : 13
    frequency high level  : 13
    Tone1 on              : 100
    Tone1 off             : 300
    Tone2 on              : 1023
    Tone2 off             : 1023
Remote ring back tone 3 paramter
    frequency low         : 440
    Frequency high        : 480
    frequency low level   : 13
    frequency high level  : 13
    Tone1 on              : 100
    Tone1 off             : 400
    Tone2 on              : 1023
    Tone2 off             : 1023
Remote ring back tone 4 paramter
    frequency low         : 440
    Frequency high        : 480
    frequency low level   : 13
    frequency high level  : 13
    Tone1 on              : 100
    Tone1 off             : 200
    Tone2 on              : 1023
    Tone2 off             : 1023

support -print

Special Voice function support manipulation
    T.38(FAX) support    : Disabled
    T.38(FAX) ECM        : Disabled
    FAX redundancy depth : 0

Комментарии запрещены.