基于SS7的開源解決方案在國內(nèi)已經(jīng)安裝了很多。很多用戶都使用chan_ss7 開源協(xié)議棧作為呼叫中心,400電話,計費結算的系統(tǒng)。隨著國內(nèi)對開源Asterisk的認可程度越來越高。
以前,在openvox任職時幫助客戶安裝最大12E1,最近幾年來連續(xù)幾個客戶安裝了Sangoma 16E1 ISDN或者SS7。因為以前積累的很多問題沒有匯總,并且因為版本的不同,具體的問題也有所不同。今天,我主要介紹如何在chan_ss7,asterisk 環(huán)境下,安裝使用Sangoma 16E1 板卡,然后介紹一下系統(tǒng)狀態(tài)命令,最后介紹chan_ss7 的幾個基本要點。注意,在本案例中,用戶使用的準直聯(lián)的方式,使用通道1走信令,而不是默認的通道16. 下面將逐一介紹:
- 了解Sangoma 16E1
Sangoma 16E1 數(shù)字語音卡支持16 E1 端口:
如何通過連接線連接板卡和面板,請參考以下鏈接:
http://www.voip88.com/article-1219-1.html
- 安裝前的系統(tǒng)環(huán)境準備
- 用戶在安裝之前,必須安裝必要的支持包,通過安裝命令執(zhí)行安裝
注意,用戶必須完整安裝以上所有支持包,否則可能出現(xiàn)安裝失敗等等原因。以上命令在Centos 環(huán)境下執(zhí)行。
- 下載必要的軟件包
在/usr/src 路徑下,下載 sangoma 驅(qū)動 wanpipe:wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-7.0.5.tgz
在 /usr/src 路徑下,下載 dahdi 驅(qū)動:
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.4.1.1+2.4.1.tar.gz
在 /usr/src 路徑下,下載asterisk
wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.4.44.tar.gz
下載 chan_ss7
- 分別解壓以上壓縮文件到 /usr/src 目錄下,然后分別執(zhí)行編譯安裝
在dahdi-linux-complete-2.4.1.2+2.4.1 目錄下,執(zhí)行命令:
make
make install
make configure
在 asterisk-1.4.44 目錄下,執(zhí)行命令:
./configure
make
make install
make samples
在 chan_ss7 目錄下,執(zhí)行命令,編輯makefile 文件,添加dahdi,asterisk 編譯路徑
INCLUDE+=-I /usr/src/dahdi-linux-complete-2.4.1.2+2.4.1
INCLUDE+=-I /usr/src/asterisk-1.4.44
然后保存makefile, 執(zhí)行以下命令編譯chan_ss7
make
make install
cp chan_ss7.so /usr/lib/asterisk/modules/
cp ss7.conf /etc/asterisk
以下執(zhí)行Sangoma板卡安裝,從第一個口一直安裝完成16E1.此案例中沒有開啟CRC4!其他配置選項按照默認配置和紅色字體的提示來安裝。
在 wanpipe-7.0.5 目錄下,執(zhí)行安裝命令:
./Setup
系統(tǒng)將出現(xiàn)一個腳本安裝界面,通過以下選項安裝16E1板卡
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
Installing WANPIPE Device Drivers: Linux KERNEL
To integrate WANPIPE Multi-Protocol Voice & WAN Router
modules into the Linux kernel, the kernel has to be
updated with latest wanpipe sources. Install will only
modify existing wanpipe source that is already in the
Kernel.
IMPORTANT:
It is always recommended to say YES to all options
prompted during the install!
———————————————————-
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
Please specify absolute path name of your linux headers/source directory
Press Enter for Default: /lib/modules/2.6.18-308.el5/build
#>
Setting linux directory to /lib/modules/2.6.18-308.el5/build
Upgrading WANPIPE kernel documentation …Done.
Installing WANPIPE include headers …Done.
WANPIPE device drivers upgraded successfully!
Press [Enter] to continue…
———————————————————-
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
WANPIPE KERNEL DRIVER COMPILATION
The next step in WANPIPE installation involves compiling
WANPIPE kernel modules.
This script will compile and install WANPIPE modules
into the currently running linux kernel.
For greater customization you will be prompted to
select which Protocol/Drivers you would like to
build into the WANPIPE kernel modules.
Wanpipe for Asterisk/Dahdi/Zaptel
Default for Asterisk/Dahdi/Zaptel
Wanpipe for Wan Routing/API
Default for Wan/IP Routing and Data API
Wanpipe for Asterisk SMG/SS7
Default for Asterisk SS7
Wanpipe for TDM API
Default for FreeSwitch and Voice API
Custom Compilation:
——————
Customise WANPIPE driver compilation to add only the
protocols that you need. This way one can reduce
the size of the WANPIPE kernel drivers.
Refer to http://wiki.sangoma.com for more info
grep: /lib/modules/2.6.18-308.el5/build/include/include/autoconf.h: No such file or directory
grep: /lib/modules/2.6.18-308.el5/build/include/include/autoconf.h: No such file or directory
———————————————————-
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
Please Select Compilation Mode
1. WAN Protocols Support
Protocols: Frame Relay, CHDLC, PPP, ATM, X25, ADSL, TDM API
Default for: Wan Routing, Data & Voice API devel.
2. Asterisk/Dahdi Support
Asterisk protocols: libpri (PRI,BRI), Analog (FXO/FXS), libss7 (SS7)
Default for: Asterisk
3. Asterisk/Dahdi + WAN Protocol Support
4. TDM API (libsangoma)
Protocols: TDM API (libsangoma) on AFT adapters:
Default for: FreeSWITCH, Yate, Sunrise
Custom voice development
5. Custom Compilation Mode
Specify protocols to be added into the WANPIPE
kernel drivers.
6. Deprecated: SMG (BRI) (Asterisk SMG/BRI [Use Asterisk/Dahdi option 2 instead])
7. Deprecated: SMG (BRI) + Asterisk/Dahdi [Use Asterisk/Dahdi option 2 instead]
Please select (1-7) [Default: 1]: 2
Looking for zaptel/dahdi directory in /usr/src …
——————————————-
1 : /usr/src/dahdi-linux-complete-2.4.1.2+2.4.1
——————————————
——————————————
m : Enter zaptel path manually
(ctrl-c to Exit)
Please select working zaptel directory [1-1][m]: 1
Enabling the TDM Voice Asterisk Support
Dahdi HW HDLC Support Detected: Enabling DCHAN Feature
Native Dahdi HW HDLC Support Detected – No patch required
Dahdi source unmodified
Checking for UDEV Zaptel compatibility… Dahdi installed, no need to add UDEV rules
Enabling the AFT TE1 Support
Checking for SMP support …Enabled.
Checking current processor type …x86_64
Wan Update Flags: -DAF_WANPIPE_2612_FORCE_UPDATE -DWANPIPE_MOD_266_FORCE_UPDATE
Checking fo regparm: Disabled
————————————————–
CFLAGS: gcc -Wp,-MD,.wanpipe.o.d -nostdinc -iwithprefix include -D__LINUX__ -Dlinux -D__KERNEL__ -I/usr/include/wanpipe -I/lib/modules/2.6.18-308.el5/build/include -DMODULE -DAF_WANPIPE_2612_FORCE_UPDATE -DWANPIPE_MOD_266_FORCE_UPDATE -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -fwrapv -Os -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__ -Iinclude -include include/linux/autoconf.h
————————————————–
Compiling General WANPIPE Driver for 2.6.X Kernel …..Done.
WAN HWEC module enabled and compiled!
Linking Wanpipe Driver and protocols …Done.
Updating Kernel Modules …Done.
Visually Confirm that driver compilation was successful! (y/n) y
Compilation Successful.
———————————————————-
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
WANPIPE META CONFIGURATION
There are two configuration files associated with WANPIPE.
1) /usr/src/wanpipe-7.0.5/wanrouter.rc:
- defines locations of important files such as lock
and configuration files as well as start/stop
order of multiple WANPIPE devices.
2) /usr/src/wanpipe-7.0.5/wanpipe1.conf:
- main configuration file for each WANPIPE device.
- defines interfaces, hardware and protocol information.
- this file can be created using the ‘wancfg’ GUI
utility or manually based on sample files located
in /etc/wanpipe/samples.
Please read the WanpipeInstallation.(pdf/txt) manual for further
information.
Press [Enter] to continue…
Please specify a desired location for WANPIPE configuration files.
(Press Enter for Default: /etc/wanpipe)
Please specify a desired location for WANPIPE interface files.
(Press Enter for Default: /etc/wanpipe/interfaces)
(Press Enter for Default: /etc/wanpipe/firmware)
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
WANPIPE UTILITIES SETUP
WANPIPE utilities are used to:
1) create configuration files: for Zaptel and Asterisk
/usr/sbin/wancfg_dahdi#Dahdi and Asterisk
/usr/sbin/wancfg_zaptel#Zaptel and Asterisk
/usr/sbin/wancfg_smg#BRI/SS7, Dahdi/Zaptel and Asterisk
/usr/sbin/wancfg_tdmapi#TDM API
2) create WANPIPE WAN/IP configuration files.
(/usr/sbin/wancfg)
3) start,stop,restart individual/all devices and interfaces.
(/usr/sbin/wanrouter)
4) debug line, protocol and driver problems.
(/usr/sbin/wanpipemon)
5) aid in WANPIPE API development
(/etc/wanpipe/api)
Refer to the WanpipeInstallation.(pdf/txt) for more information.
Press [Enter] to continue…
Compiling WANPIPE LibSangoma API library …Done.
Compiling WANPIPE LibStelephony API library …Done.
Compiling WANPIPE Utilities …Done.
Compiling WANPIPE WanCfg Utility …Done.
Compiling WANPIPE LibStelephony API Library … skipped, not required.
Compiling WANPIPE API Development Utilities … skipped, not required.
Compiling WANPIPE HWEC Utilities …Done.
WANPIPE Environment Setup Complete !!!
Press [Enter] to continue…
Installing WANPIPE Files … !
Installing WANPIPE Utilities in /usr/sbin
Installing wanrouter.rc in /etc/wanpipe
Installing wanpipe libraries in /etc/wanpipe
Installing firmware in /etc/wanpipe/firmware
Installing documentation in /usr/share/doc/wanpipe
cp: omitting directory `doc/man’
Installing sample api code in /etc/wanpipe/api
Installing AFT Firmware update utility in /etc/wanpipe/util
Installing driver headers in /etc/wanpipe/api/include/linux
Installing Hardware Echo Cancel Utilites
Press [Enter] to continue…
———————————————————-
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
WANPIPE BOOTSTRAP CONFIGURATION
Your system uses System V -style initialization scripts. You have an option
to add router start-up script to those scripts so that the router will start
automatically when system enters multi-user mode and shut down when it enters
single-user mode or when it is halted.
i.e. By selecting this option WANPIPE will startup on system bootup and
stop on system shutdown.
Would you like to install WANPIPE start-up scripts? (y/n) y
########################################################################
# Sangoma Wanpipe #
# Dahdi/Zaptel/SMG/TDMAPI/BOOT Configuration Script #
# v2.39 #
# Sangoma Technologies Inc. #
# Copyright(c) 2013. #
########################################################################
Current boot level is 3
Wanrouter boot scripts configuration…
Removing existing wanrouter boot scripts…OK
Verifying Zaptel boot scripts…
Enabling wanrouter boot scripts …(level:8)
Enabling wanrouter shutdown scripts …(level:91)
———————————————————-
WANPIPE v7.0.5 Installation Script
Copyright (c) 1995-2013, Sangoma Technologies Inc.
———————————————————-
WANPIPE INSTALLATON: COMPLETE
WANPIPE installation is now complete. WANPIPE kernel drivers
and configuration/debug utilities have been compiled and installed.
1) Proceed to configure the WANPIPE drivers:
Asterisk/Dahdi : /usr/sbin/wancfg_dahdi
Asterisk/Zaptel : /usr/sbin/wancfg_zaptel
TDM API : /usr/sbin/wancfg_tdmapi
SMG SS7/BRI/PRI : /usr/sbin/wancfg_smg
WAN Routing/API : /usr/sbin/wancfg
2) Use the /usr/sbin/wanrouter startup script to start and stop
the router. (eg: wanrouter start)
3) To uninstall WANPIPE package run ./Setup remove
Please read http://wiki.sangoma.com for further instructions.
Wanpipe / Zaptel Configuration
==============================
wancfg_zaptel configurator can create all wanpipe config files
for ZAPTEL including /etc/zaptel.conf file.
Optionally: the configurator can also create Asterisk zapata.conf
—————————————————–
Would you like to configure wanpipe devices for DAHDI? (y/n) y
########################################################################
# Sangoma Wanpipe #
# Dahdi/Zaptel/SMG/TDMAPI/BOOT Configuration Script #
# v2.39 #
# Sangoma Technologies Inc. #
# Copyright(c) 2013. #
########################################################################
Would you like to generate /etc/asterisk/chan_dahdi.conf
1. YES
2. NO
[1-2]:1
——————————————————-
Configuring T1/E1 cards [A101/A102/A104/A108/A116/T116]
——————————————————-
A116 detected on slot:4 bus:20
———————————————————–
Configuring port 1 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 1 [slot:4 bus:20 span:1] // 開始安裝第一個端口
1. T1
2. E1
3. Unused
4. Exit
[1-4]:2
Configuring port 1 on AFT-A116 as E1, line coding:HDB3, framing:CRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:2
Select line coding for port 1 on 116
1. HDB3
2. AMI
[1-2, ENTER='HDB3']:1
Select framing for port 1 on 116
1. CRC4
2. NCRC4
3. UNFRAMED
[1-3, ENTER='CRC4']:2
Select clock for AFT-116 on port 1 [slot:4 bus:20 span:1]
1. NORMAL
2. MASTER
[1-2]:1
Select signalling type for AFT-116 on port 1 [slot:4 bus:20 span:1]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12]:1
Select switchtype for AFT-116 on port 1
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7]:5
Configuring port 1 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 1
1. from-pstn
2. from-internal
3. Custom
[1-3]:1
Port 1 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 2 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 2 [slot:4 bus:20 span:2]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 2 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 2 [slot:4 bus:20 span:2]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 2 [slot:4 bus:20 span:2]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
[page]
Select switchtype for AFT-116 on port 2
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 2 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 2
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 2 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 3 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 3 [slot:4 bus:20 span:3]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 3 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 3 [slot:4 bus:20 span:3]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 3 [slot:4 bus:20 span:3]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 3
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 3 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 3
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 3 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 4 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 4 [slot:4 bus:20 span:4]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 4 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 4 [slot:4 bus:20 span:4]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 4 [slot:4 bus:20 span:4]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 4
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 4 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 4
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 4 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 5 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 5 [slot:4 bus:20 span:5]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 5 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 5 [slot:4 bus:20 span:5]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 5 [slot:4 bus:20 span:5]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 5
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 5 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 5
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 5 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 6 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 6 [slot:4 bus:20 span:6]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 6 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 6 [slot:4 bus:20 span:6]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 6 [slot:4 bus:20 span:6]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 6
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 6 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 6
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 6 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 7 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 7 [slot:4 bus:20 span:7]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 7 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 7 [slot:4 bus:20 span:7]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 7 [slot:4 bus:20 span:7]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 7
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 7 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 7
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 7 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 8 on A116 slot:4 bus:20.
———————————————————–
Select media type for AFT-A116 on port 8 [slot:4 bus:20 span:8]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 8 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 8 [slot:4 bus:20 span:8]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 8 [slot:4 bus:20 span:8]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 8
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 8 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 8
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 8 on AFT-A116 configuration complete…
Press any key to continue:
A116 detected on slot:5 bus:20
———————————————————–
Configuring port 1 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 1 [slot:5 bus:20 span:9]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 1 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 1 [slot:5 bus:20 span:9]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 1 [slot:5 bus:20 span:9]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 1
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 1 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 1
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 1 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 2 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 2 [slot:5 bus:20 span:10]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 2 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 2 [slot:5 bus:20 span:10]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 2 [slot:5 bus:20 span:10]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 2
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 2 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 2
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 2 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 3 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 3 [slot:5 bus:20 span:11]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 3 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 3 [slot:5 bus:20 span:11]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 3 [slot:5 bus:20 span:11]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 3
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 3 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 3
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 3 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 4 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 4 [slot:5 bus:20 span:12]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 4 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 4 [slot:5 bus:20 span:12]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 4 [slot:5 bus:20 span:12]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 4
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 4 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 4
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 4 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 5 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 5 [slot:5 bus:20 span:13]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 5 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 5 [slot:5 bus:20 span:13]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 5 [slot:5 bus:20 span:13]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 5
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 5 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 5
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 5 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 6 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 6 [slot:5 bus:20 span:14]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 6 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 6 [slot:5 bus:20 span:14]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 6 [slot:5 bus:20 span:14]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 6
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 6 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 6
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 6 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 7 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 7 [slot:5 bus:20 span:15]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 7 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 7 [slot:5 bus:20 span:15]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 7 [slot:5 bus:20 span:15]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
[page]
Select switchtype for AFT-116 on port 7
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 7 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 7
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 7 on AFT-A116 configuration complete…
Press any key to continue:
———————————————————–
Configuring port 8 on A116 slot:5 bus:20.
———————————————————–
Select media type for AFT-A116 on port 8 [slot:5 bus:20 span:16]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 8 on AFT-A116 as E1, line coding:HDB3, framing:NCRC4
1. YES – Keep these settings
2. NO – Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-116 on port 8 [slot:5 bus:20 span:16]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-116 on port 8 [slot:5 bus:20 span:16]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-116 on port 8
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 8 on AFT-116 as a full E1
1. YES – Use all channels
2. NO – Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-116 on port 8
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 8 on AFT-A116 configuration complete…
Press any key to continue: // 完成第16口配置
T1/E1 card configuration complete.
Press any key to continue:
——————————————-
Configuring ISDN BRI cards [A500/B500/B700]
——————————————-
No Sangoma ISDN BRI cards detected
Press any key to continue:
————————————
Configuring GSM cards [W400]
————————————
No Sangoma GSM cards detected
Press any key to continue:
————————————
Configuring analog cards [A200/A400/B600/B610/B700/B800]
————————————
————————————
Configuring USB devices [U100]
————————————
###################################################################
# SUMMARY #
###################################################################
16 T1/E1 port(s) detected, 16 configured
0 ISDN BRI port(s) detected, 0 configured
0 analog card(s) detected, 0 configured
0 GSM card(s) detected, 0 configured
0 usb device(s) detected, 0 configured
Configurator will create the following files:
1. Wanpipe config files in /etc/wanpipe
2. Dahdi config file /etc/dahdi/system.conf
3. chan_dahdi config file /etc/asterisk/chan_dahdi.conf
Your original configuration files will be saved to:
1. /etc/dahdi/system.conf.bak
2. /etc/asterisk/chan_dahdi.conf.bak
Your configuration has been saved in /etc/wanpipe/debug-2013-09-13.tgz.
When requesting support, email this file to techdesk@sangoma.com
###################################################################
Configuration Complete! Please select following:
1. YES – Continue
2. NO – Exit
[1-2]:1
Dahdi and Wanpipe configuration complete: choose action
1. Save cfg: Restart Asterisk & Wanpipe now
2. Save cfg: Restart Asterisk & Wanpipe when convenient
3. Save cfg: Stop Asterisk & Wanpipe now
4. Save cfg: Stop Asterisk & Wanpipe when convenient
5. Save cfg: Save cfg only (Not Recommended!!!)
6. Do not save cfg: Exit
[1-6]:3
Asterisk is not running…
Stopping Wanpipe…
Unloading Dahdi modules…
Removing old configuration files…
Copying new Wanpipe configuration files…
Copying new Dahdi configuration file (/etc/dahdi/system.conf)…
Copying new chan_dahdi configuration files (/etc/asterisk/chan_dahdi.conf)…
Wanrouter start complete…
Current boot level is 3
Wanrouter boot scripts configuration…
Removing existing wanrouter boot scripts…OK
Would you like wanrouter to start on system boot?
1. YES
2. NO
[1-2]:1
Verifying Dahdi boot scripts…
Verifying Dahdi boot scripts…Enabled (level:26)
Verifying Dahdi shutdown scripts…Enabled (level:74)
Enabling wanrouter boot scripts …(level:25)
Enabling wanrouter shutdown scripts …(level:73)
Would you like to execute ‘dahdi_cfg’ each time wanrouter starts?
1. YES
2. NO
[1-2]:1
Removing old smg_ctrl boot…..OK
Removing old smg_ctrl_safe boot…..OK
Sangoma cards configuration complete, exiting…
——————————————————————————————
注意,因為是16個端口,所以腳本必須運行16次來配置所有的端口。
- 配置system.conf modules.conf ss7.conf 文件
system.conf 文件配置如下:
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2013-09-13
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us
#Sangoma A116 port 1 [slot:4 bus:20 span:1]
bchan=1 // 這里配置的是指定信令通道走語音通道1,而不是通道16走信令
#echocanceller=mg2,1-15,17-31
#hardhdlc=16
#Sangoma A116 port 2 [slot:4 bus:20 span:2]
bchan=32-62
#echocanceller=mg2,32-46,48-62
#hardhdlc=47
#Sangoma A116 port 3 [slot:4 bus:20 span:3]
bchan=63-93
#echocanceller=mg2,63-77,79-93
#hardhdlc=78
#Sangoma A116 port 4 [slot:4 bus:20 span:4]
bchan=94-124
#echocanceller=mg2,94-108,110-124
#hardhdlc=109
#Sangoma A116 port 5 [slot:4 bus:20 span:5]
bchan=125-155
#echocanceller=mg2,125-139,141-155
#hardhdlc=140
#Sangoma A116 port 6 [slot:4 bus:20 span:6]
bchan=156-186
#echocanceller=mg2,156-170,172-186
#hardhdlc=171
“/etc/dahdi/system.conf” 106L, 2434C
#Sangoma A116 port 7 [slot:4 bus:20 span:7]
bchan=187-217
#echocanceller=mg2,187-201,203-217
#hardhdlc=202
#Sangoma A116 port 8 [slot:4 bus:20 span:8]
bchan=218-248
#echocanceller=mg2,218-232,234-248
#hardhdlc=233
#Sangoma A116 port 1 [slot:5 bus:20 span:9]
bchan=249-279
#echocanceller=mg2,249-263,265-279
#hardhdlc=264
#Sangoma A116 port 2 [slot:5 bus:20 span:10]
bchan=280-310
#echocanceller=mg2,280-294,296-310
#hardhdlc=295
#Sangoma A116 port 3 [slot:5 bus:20 span:11]
bchan=311-341
#echocanceller=mg2,311-325,327-341
#hardhdlc=326
#Sangoma A116 port 4 [slot:5 bus:20 span:12]
bchan=342-372
#echocanceller=mg2,342-356,358-372
#hardhdlc=357
#Sangoma A116 port 5 [slot:5 bus:20 span:13]
bchan=373-403
#Sangoma A116 port 6 [slot:5 bus:20 span:14]
span=14,14,0,ccs,hdb3
bchan=404-434
#echocanceller=mg2,404-418,420-434
#hardhdlc=419
#Sangoma A116 port 7 [slot:5 bus:20 span:15]
bchan=435-465
#echocanceller=mg2,435-449,451-465
#hardhdlc=450
#Sangoma A116 port 8 [slot:5 bus:20 span:16]
bchan=466-496
#echocanceller=mg2,466-480,482-496
#hardhdlc=481
- modules.conf 文件,禁止加載chan_dahdi.so 文件
- ss7.conf 文件
[linkset-siuc]
enabled => yes
enable_st => no
use_connect => no
hunting_policy => even_mru
;hunting_policy => seq_lth
context => ss7
language => en
t35 => 15000,timeout
subservice => auto
variant => CHINA // 支持中國ISUP
;grs => no
[link-l1]
linkset => siuc
channels =>
schannel => 1 // 通道1 走信令,配合 system.conf 中的配置
firstcic => 33
stp => 0x13XXXX // STP 信令點配置準直聯(lián) 方式
sls => 1
enabled=>yes
[link-l2]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 33
enabled => yes
[link-l3]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 65
enabled => yes
[link-l4]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 97
enabled => no
[link-l5]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 129
enabled => yes
[link-l6]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 161
enabled => yes
[link-l7]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 193
enabled => yes
[link-l8]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 225
enabled => yes
[link-l9]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 257
enabled => yes
[link-l10]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 289
enabled => no
[link-l11]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 321
enabled => no
[link-l12]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 353
enabled => no
[link-l13]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 385
enabled => no
[link-l14]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 417
enabled => yes
[link-l15]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 449
enabled => yes
[link-l16]
linkset => siuc
channels => 1-31
schannel =>
firstcic => 481
enabled => yes
[host-localhost.localdomain]
enabled => yes
opc => 0x13XXXX
dpc => siuc:0x13XXXX
links => l1:1,l2:2,l3:3,l4:4,l5:5,l6:6,l7:7,l8:8,l9:9,l10:10,l11:11,l12:12,l13:13,l14:14,l15:15,l16:16
;links => l1:1
;globaltitle => 0×00, 0×04, 0×01, 4546931411
;ssn => 7
;route => 919820405471:ra_geb, 919820367598:ra_geb, 919820706441:ra_geb, :ra_geb
[page]
- 配置完成以后,檢測端口狀態(tài):
- 檢查A116 數(shù)字卡 物理連接狀態(tài):
[root@localhost ~]# wanrouter status
Devices currently active:
wanpipe1 wanpipe10 wanpipe11 wanpipe12 wanpipe13 wanpipe14 wanpipe15 wanpipe16 wanpipe2 wanpipe3 wanpipe4 wanpipe5 wanpipe6 wanpipe7 wanpipe8 wanpipe9
Wanpipe Config:
Device name | Protocol Map | Adapter | IRQ | Slot/IO | If’s | CLK | Baud rate |
wanpipe16 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe15 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe14 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe13 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe12 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe11 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe10 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe9 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 177 | 5 | 1 | N/A | 0 |
wanpipe8 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
wanpipe7 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
wanpipe6 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
wanpipe5 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
wanpipe4 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
wanpipe3 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
wanpipe2 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
wanpipe1 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 169 | 4 | 1 | N/A | 0 |
Wanrouter Status:
Device name | Protocol | Station | Status |
wanpipe16 | AFT TE1 | N/A | Connected |
wanpipe15 | AFT TE1 | N/A | Connected |
wanpipe14 | AFT TE1 | N/A | Connected |
wanpipe13 | AFT TE1 | N/A | Disconnected |
wanpipe12 | AFT TE1 | N/A | Disconnected |
wanpipe11 | AFT TE1 | N/A | Disconnected |
wanpipe10 | AFT TE1 | N/A | Disconnected |
wanpipe9 | AFT TE1 | N/A | Connected |
wanpipe8 | AFT TE1 | N/A | Connected |
wanpipe7 | AFT TE1 | N/A | Connected |
wanpipe6 | AFT TE1 | N/A | Connected |
wanpipe5 | AFT TE1 | N/A | Connected |
wanpipe4 | AFT TE1 | N/A | Disconnected |
wanpipe3 | AFT TE1 | N/A | Connected |
wanpipe2 | AFT TE1 | N/A | Connected |
wanpipe1 | AFT TE1 | N/A | Connected |
以上服務器的端口有一些現(xiàn)在沒有連接,所以顯示斷開狀態(tài)。
- 檢測 SS7 狀態(tài):
在Asterisk CLI, 執(zhí)行 命令: ss7 linestat
localhost*CLI>
Linkset: siuc
CIC 33 Idle // 電路空閑狀態(tài)
CIC 34 Idle
CIC 35 Idle
CIC 36 Idle
CIC 37 Idle
CIC 38 Idle
CIC 39 Idle
CIC 40 Idle
CIC 41 Idle
CIC 42 Idle
CIC 43 Idle
CIC 44 Idle
CIC 45 Idle
CIC 46 Idle
CIC 47 Idle
CIC 48 Idle
CIC 49 Idle
CIC 50 Idle
CIC 51 Idle
CIC 52 Idle
CIC 53 Idle
CIC 54 Idle
CIC 55 Idle
CIC 56 Idle
CIC 57 Idle
CIC 58 Idle
CIC 59 Idle
CIC 60 Idle
CIC 61 Idle
CIC 62 Idle
CIC 63 Idle
CIC 65 Idle
CIC 66 Idle
CIC 67 Idle
CIC 68 Idle
CIC 69 Idle
CIC 70 Idle
CIC 71 Idle
CIC 72 Idle
CIC 73 Idle
CIC 74 Idle
CIC 75 Idle
CIC 76 Idle
CIC 77 Idle
CIC 78 Idle
CIC 79 Idle
CIC 80 Idle
CIC 81 Idle
CIC 82 Idle
CIC 83 Idle
CIC 84 Idle
CIC 85 Idle
CIC 86 Idle
CIC 87 Idle
CIC 88 Idle
CIC 89 Idle
CIC 90 Idle
CIC 91 Idle
CIC 92 Idle
CIC 93 Idle
CIC 94 Idle
CIC 95 Idle
CIC 129 Idle
CIC 130 Idle
CIC 131 Idle
CIC 132 Idle
CIC 133 Idle
CIC 134 Idle
CIC 135 Idle
CIC 136 Idle
CIC 137 Idle
CIC 138 Idle
CIC 139 Idle
CIC 140 Idle
CIC 141 Idle
CIC 142 Idle
CIC 143 Idle
CIC 144 Idle
CIC 145 Idle
CIC 146 Idle
CIC 147 Idle
CIC 148 Idle
CIC 149 Idle
CIC 150 Idle
CIC 151 Idle
CIC 152 Idle
CIC 153 Idle
CIC 154 Idle
CIC 155 Idle
CIC 156 Idle
CIC 157 Idle
CIC 158 Idle
CIC 159 Idle
CIC 161 Idle
CIC 162 Idle
CIC 163 Idle
CIC 164 Idle
CIC 165 Idle
CIC 166 Idle
CIC 167 Idle
CIC 168 Idle
CIC 169 Idle
CIC 170 Idle
CIC 171 Idle
CIC 172 Idle
CIC 173 Idle
CIC 174 Idle
CIC 175 Idle
CIC 176 Idle
CIC 177 Idle
CIC 178 Idle
CIC 179 Idle
CIC 180 Idle
CIC 181 Idle
CIC 182 Idle
CIC 183 Idle
CIC 184 Idle
CIC 185 Idle
CIC 186 Idle
CIC 187 Idle
CIC 188 Idle
CIC 189 Idle
CIC 190 Idle
CIC 191 Idle
CIC 193 Idle
CIC 194 Idle
CIC 195 Idle
CIC 196 Idle
CIC 197 Idle
CIC 198 Idle
CIC 199 Idle
CIC 200 Idle
CIC 201 Idle
CIC 202 Idle
CIC 203 Idle
CIC 204 Idle
CIC 205 Idle
CIC 206 Idle
CIC 207 Idle
CIC 208 Idle
CIC 209 Idle
CIC 210 Idle
CIC 211 Idle
CIC 212 Idle
CIC 213 Idle
CIC 214 Idle
CIC 215 Idle
CIC 216 Idle
CIC 217 Idle
CIC 218 Idle
CIC 219 Idle
CIC 220 Idle
CIC 221 Idle
CIC 222 Idle
CIC 223 Idle
CIC 225 Idle
CIC 226 Idle
CIC 227 Idle
CIC 228 Idle
CIC 229 Idle
CIC 230 Idle
CIC 231 Idle
CIC 232 Idle
CIC 233 Idle
CIC 234 Idle
CIC 235 Idle
CIC 236 Idle
CIC 237 Idle
CIC 238 Idle
CIC 239 Idle
CIC 240 Idle
CIC 241 Idle
CIC 242 Idle
CIC 243 Idle
CIC 244 Idle
CIC 245 Idle
CIC 246 Idle
CIC 247 Idle
CIC 248 Idle
CIC 249 Idle
CIC 250 Idle
CIC 251 Idle
CIC 252 Idle
CIC 253 Idle
CIC 254 Idle
CIC 255 Idle
CIC 257 Idle
CIC 258 Idle
CIC 259 Idle
CIC 260 Idle
CIC 261 Idle
CIC 262 Idle
CIC 263 Idle
CIC 264 Idle
CIC 265 Idle
CIC 266 Idle
CIC 267 Idle
CIC 268 Idle
CIC 269 Idle
CIC 270 Idle
CIC 271 Idle
CIC 272 Idle
CIC 273 Idle
CIC 274 Idle
CIC 275 Idle
CIC 276 Idle
CIC 277 Idle
CIC 278 Idle
CIC 279 Idle
CIC 280 Idle
CIC 281 Idle
CIC 282 Idle
CIC 283 Idle
CIC 284 Idle
CIC 285 Idle
CIC 286 Idle
CIC 287 Idle
CIC 417 Idle
CIC 418 Idle
CIC 419 Idle
CIC 420 Idle
CIC 421 Idle
CIC 422 Idle
CIC 423 Idle
CIC 424 Idle
CIC 425 Idle
CIC 426 Idle
CIC 427 Idle
CIC 428 Idle
CIC 429 Idle
CIC 430 Idle
CIC 431 Idle
CIC 432 Idle
CIC 433 Idle
CIC 434 Idle
CIC 435 Idle
CIC 436 Idle
CIC 437 Idle
CIC 438 Idle
CIC 439 Idle
CIC 440 Idle
CIC 441 Idle
CIC 442 Idle
CIC 443 Idle
CIC 444 Idle
CIC 445 Idle
CIC 446 Idle
CIC 447 Idle
CIC 449 Idle
CIC 450 Idle
CIC 451 Idle
CIC 452 Idle
CIC 453 Idle
CIC 454 Idle
CIC 455 Idle
CIC 456 Idle
CIC 457 Idle
CIC 458 Idle
CIC 459 Idle
CIC 460 Idle
CIC 461 Idle
CIC 462 Idle
CIC 463 Idle
CIC 464 Idle
CIC 465 Idle
CIC 466 Idle
CIC 467 Idle
CIC 468 Idle
CIC 469 Idle
CIC 470 Idle
CIC 471 Idle
CIC 472 Idle
CIC 473 Idle
CIC 474 Idle
CIC 475 Idle
CIC 476 Idle
CIC 477 Idle
CIC 478 Idle
CIC 479 Idle
CIC 481 Idle
CIC 482 Idle
CIC 483 Idle
CIC 484 Idle
CIC 485 Idle
CIC 486 Idle
CIC 487 Idle
CIC 488 Idle
CIC 489 Idle
CIC 490 Idle
CIC 491 Idle
CIC 492 Idle
CIC 493 Idle
CIC 494 Idle
CIC 495 Idle
CIC 496 Idle
CIC 497 Idle
CIC 498 Idle
CIC 499 Idle
CIC 500 Idle
CIC 501 Idle
CIC 502 Idle
CIC 503 Idle
CIC 504 Idle
CIC 505 Idle
CIC 506 Idle
CIC 507 Idle
CIC 508 Idle
CIC 509 Idle
CIC 510 Idle
CIC 511 Idle
[page]
- localhost*CLI> ss7 link status
localhost*CLI> linkset siuc, link l1/1 INSERVICE, sls 1, total: 1257520336, 1257520352
用戶添加撥號規(guī)則,就可以實現(xiàn)呼入呼出測試。
[ss7_call] // 對應 ss7.conf 文件里面的context exten => 100,1,Dial(ss7/XXXXXXXXX) // 撥100呼出到XXXXXXXX號碼 exten => 100,2,Hangup
以下是用戶使用chan_ss7 經(jīng)常遇到的問題:
- 呼出以后有振鈴,但是互相聽聽不到對方的語音通話;CIC不匹配
- 為什么會出現(xiàn) “Write buffer full on CIC=4 (wrote only 0 of 160), audio lost.” 信息,通?赡苁峭ㄟ^IP網(wǎng)絡傳遞的數(shù)據(jù),出現(xiàn)了抖動延遲。
- 了解chan_ss7 結構體系:http://www.voip-info.org/wiki/view/Asterisk+ss7+internals
- 為什么出現(xiàn)”Limit exceeded when trying to adjust numbufs”, 可能是文件系統(tǒng)的問題,使用ulimit 重新設置到更大的數(shù)值。
- 有時候出現(xiàn)Alaw/Ulaw 編碼報錯,因為某些chan_ss7 版本的出現(xiàn)問題
- 如何支持用戶屬性是local,修改ISUP源代碼:
修改源碼 l4isup.c
/* Calling party’s category Q.763 (3.11). */
- param[0] = 0x0a; /* Ordinary calling subscriber */
+ param[0] = 0x0c; /* Local User */
isup_msg_add_fixed(msg, sizeof(msg), ¤t, param, 1);
- ANI 號碼和DNI號碼一直,需要重新修改代碼,參考此鏈接:
http://lists.digium.com/pipermail/asterisk-ss7/2011-October/004601.html
- 為什么不能顯示RNI號碼,版本升級導致(2.0可以,2.2不能顯示)
- 為什么出現(xiàn)remote blocked, 可能對端設備維護,或者本地剛剛啟動
- 如何對chan_ss7 進行抓包分析:
對chan_ss7 數(shù)據(jù)抓包:ss7 dump start
獲得分析數(shù)據(jù),簡單說明:
- 分析工具:http://wiki.wireshark.org/MTP3
- 協(xié)議定義:http://www.itu.int/rec/T-REC-Q.701/en
- 有時候出現(xiàn) Failed to delete timer error,定時器不能正常釋放,一些舊版本不會出現(xiàn)。
- 如何實現(xiàn)通過兩臺asterisk 服務器實現(xiàn)SS7 對接測試:
http://www.voip-info.org/wiki/view/Asterisk+ss7+setup
- 如何通過asterisk 對chan_ss7 做壓力測試:
http://www.voip-info.org/wiki/view/Asterisk+ss7+loopback
- chan_ss7 最大支持16個linkset,如何實現(xiàn)支持32E1,修改config.h:
/* Upper bounds only determined by installed hardware, use decent values */
-
#define MAX_E1_CONNECTOR_NO 16 // 修改到32 #define MAX_CIC 4096 #define MAX_LINKSETS 8 #define MAX_LINKS 128 #define MAX_LINKS_PER_LINKSET 16 #define MAX_LINKS_PER_HOST 16 #define MAX_SPANS_PER_HOST 16 #define MAX_SCHANNELS 16 #define MAX_SCHANNELS_PER_E1 16 #define MAX_IFS_PER_HOST 2 #define MAX_HOSTS 16 #define MAX_ROUTES_PER_HOST 16
1.檢查cpu 狀態(tài),確認有足夠的CPU資源
cat /proc/cpuinfo2.檢查內(nèi)存狀態(tài):
cat /proc/meminfo3. 檢查中斷信息,確認板卡沒有和問題設備共享中斷:
cat /proc/interrupts
如何通過不同的鏈路組或者指定的CIC呼出,語法舉例
Dial(SS7/Linkset1:33/number) Dial(SS7/Linkset1/number)
[Show as slideshow]
總結:
通過用戶對sangoma A116 16E1 做整體測試,呼叫并發(fā)量,CPU 占用率,語音質(zhì)量都是相當不錯的。利用chan_ss7 結合Sangoma 16E1 開發(fā)SS7 高性價比的SS7 解決方案是完全可行的。最后提醒大家的是,因為不同版本組合會出現(xiàn)很多問題,在安裝chan_ss7 時,希望用戶針對自己的需求,做多個Asterisk/chan_SS7 的組合測試版本的測試,直到找到正確的版本組合。