<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hello:<br>
Many customers want to implement chan_ss7 in china or other
counties. I want to share one of successful cases in China with OpenVox
D410P and chan_ss7. <br>
there are few sections to implement chan_ss7 with OpenVox D410P(3 D410P cards)<br>
1) install cna_ss7, zaptel and asterisk, please refer this for howto:<a href="http://bbs.openvox.cn/viewthread.php?tid=905&" target="_blank">http://bbs.openvox.cn/viewthread.php?tid=905&</a>;extra=page%3D1<br>
2) setting files:<br>
=============zaptel.conf==============================<br>
# Autogenerated by ./genzaptelconf -- do not hand edit<br>
# Zaptel Configuration File<br>
#<br>
# This file is parsed by the Zaptel Configurator, ztcfg<br>
#<br>
<br>
# It must be in the module loading order<br>
<br>
<br>
# Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER)<br>
span=1,1,0,ccs,hdb3<br>
# termtype: te<br>
bchan=1-31<br>
#dchan=16<br>
<br>
# Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2"<br>
span=2,2,0,ccs,hdb3<br>
# termtype: te<br>
bchan=32-62<br>
#dchan=47<br>
<br>
# Span 3: TE4/0/3 "T4XXP (PCI) Card 0 Span 3"<br>
span=3,3,0,ccs,hdb3<br>
# termtype: te<br>
bchan=63-93<br>
#dchan=78<br>
<br>
# Span 4: TE4/0/4 "T4XXP (PCI) Card 0 Span 4"<br>
span=4,4,0,ccs,hdb3<br>
# termtype: te<br>
bchan=94-124<br>
#dchan=109<br>
<br>
# Span 5: TE4/1/1 "T4XXP (PCI) Card 1 Span 1"<br>
span=5,1,0,ccs,hdb3<br>
# termtype: te<br>
bchan=125-139,141-155<br>
#dchan=140<br>
<br>
# Span 6: TE4/1/2 "T4XXP (PCI) Card 1 Span 2"<br>
span=6,2,0,ccs,hdb3<br>
# termtype: te<br>
bchan=156-170,172-186<br>
#dchan=171<br>
<br>
# Span 7: TE4/1/3 "T4XXP (PCI) Card 1 Span 3"<br>
span=7,3,0,ccs,hdb3,crc4<br>
# termtype: te<br>
bchan=187-201,203-217<br>
<br>
# Span 8: TE4/1/4 "T4XXP (PCI) Card 1 Span 4"<br>
span=8,4,0,ccs,hdb3<br>
# termtype: te<br>
bchan=218-232,234-248<br>
#dchan=233<br>
# Span 9: TE4/2/1 "T4XXP (PCI) Card 2 Span 1"<br>
span=9,1,0,ccs,hdb3<br>
# termtype: te<br>
bchan=249-263,265-279<br>
#dchan=264<br>
<br>
# Span 10: TE4/2/2 "T4XXP (PCI) Card 2 Span 2"<br>
span=10,2,0,ccs,hdb3<br>
# termtype: te<br>
bchan=280-294,296-310<br>
#dchan=295<br>
<br>
# Span 11: TE4/2/3 "T4XXP (PCI) Card 2 Span 3"<br>
span=11,3,0,ccs,hdb3<br>
# termtype: te<br>
bchan=311-325,327-341<br>
#dchan=326<br>
<br>
# Span 12: TE4/2/4 "T4XXP (PCI) Card 2 Span 4"<br>
span=12,4,0,ccs,hdb3<br>
# termtype: te<br>
bchan=342-356,358-372<br>
#dchan=357<br>
<br>
# Global data<br>
<br>
loadzone = us<br>
defaultzone = us<br>
=================ss7.conf=========================<br>
[linkset-ls1]<br>
<br>
<br>
; The linkset is enabled<br>
enabled => yes<br>
<br>
; The end-of-pulsing (ST) is not used to determine when incoming address is complete<br>
enable_st => no<br>
<br>
; Reply incoming call with CON rather than ACM and ANM<br>
use_connect => yes<br>
<br>
; The CIC hunting policy (even_mru, odd_lru, seq_lth, seq_htl) is even CIC numbers, most recently used<br>
hunting_policy => even_mru<br>
<br>
; Incoming calls are placed in the ss7 context in the asterisk dialplan<br>
context => ss7<br>
<br>
; The language for this context is da<br>
language => da<br>
<br>
; The value and action for t35. Value is in msec, action is either st or timeout<br>
; If you use overlapped dialling dial plan, you might choose: t35 => 4000,st<br>
t35 => 15000,timeout<br>
<br>
; The subservice field: national (8), international (0), auto or decimal/hex value<br>
; The auto means that the subservice is obtained from first received SLTM<br>
;echocancel => no<br>
;echocan_train => 350<br>
;echocan_taps => 128<br>
<br>
subservice => auto<br>
variant => CHINA<br>
<br>
[link-l1]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel => 16<br>
firstcic => 1<br>
enabled => yes<br>
<br>
[link-l2]<br>
linkset => ls1<br>
channels => 1-31<br>
schannel =><br>
firstcic => 33<br>
enabled => yes<br>
<br>
<br>
[link-l3]<br>
linkset => ls1<br>
channels => 1-31<br>
schannel =><br>
firstcic => 65<br>
enabled => yes<br>
<br>
[link-l4]<br>
linkset => ls1<br>
channels => 1-31<br>
schannel =><br>
firstcic => 97<br>
enabled => yes<br>
<br>
[link-l5]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic =129<br>
enabled => yes<br>
<br>
[link-l6]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic =161<br>
enabled => yes<br>
<br>
[link-l7]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic =193<br>
enabled => yes<br>
<br>
[link-l8]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic =225<br>
enabled => yes<br>
<br>
[link-l9]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic =257<br>
enabled => yes<br>
<br>
[link-l10]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic =289<br>
enabled => yes<br>
<br>
[link-l11]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic => 321<br>
enabled => yes<br>
<br>
[link-l12]<br>
linkset => ls1<br>
channels => 1-15,17-31<br>
schannel =><br>
firstcic => 353<br>
enabled => yes<br>
<br>
[host-openvox]<br>
enabled => yes<br>
opc => 0xBBBBBBB ; change to your code<br>
dpc => ls1:0xAAAAAA ; change to your code<br>
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<br>
3) testing results:<br>
=========zttest===========================================<br>
root@openvox ast]# zttest<br>
Opened pseudo zap interface, measuring accuracy...<br>
99.981155% 99.983208% 99.943176% 99.958488% 99.985352% 99.986130% 99.997856%<br>
99.995018% 99.997948% 99.992676% 99.990036% 99..984955% 99.977341% 99.991905% 99.985649%<br>
99.965714% 99.957321% 99.994240% 99.982605% 99.982712% 99.972168% 99.969925% 99.998833%<br>
99.979584% 99.999306% 99.969147% 99.948341% 99.998634% 99.975098% 99.975296% 99.989746%<br>
99.987106% 99.993164% 99.961136% 99.963669% 99.973732% 99.996391% 99.950478% 99.977341%<br>
99.937698% 99.981834% 99.995804% 99.972069% 99.957329% 99.994621% 99.995895% 99.997368%<br>
99.997650% 99.960152% 99.946289% 99.995125% 99.994537% 99.994629% 99.987206% 99.974411%<br>
--- Results after 55 passes ---<br>
Best: 99.999 -- Worst: 99.938 -- Average: 99..979913, Difference: 99.995488<br>
====================IRQ==========================<br>
[root@openvox ast]# cat /proc/interrupts<br>
CPU0 CPU1 CPU2 CPU3<br>
0: 8561589 9467840 10864459 7137658 IO-APIC-edge timer<br>
1: 2 1 0 0 IO-APIC-edge i8042<br>
8: 1 1 2 1 IO-APIC-edge rtc<br>
9: 0 0 0 0 IO-APIC-level acpi<br>
12: 2 0 0 2 IO-APIC-edge i8042<br>
<font color="Red">50: 10626346 5768167 4442131 13196550 IO-APIC-level wct4xxp</font><br>
<font color="Red"> 58: 3475098 17963605 10562092 4171075 IO-APIC-level wct4xxp</font><br>
<font color="Red"> 66: 13919401 5917762 6424664 9045548 IO-APIC-level wct4xxp</font><br>
225: 39462 21255 1281 1197 IO-APIC-level libata<br>
233: 115 0 0 15262494 PCI-MSI eth0<br>
NMI: 0 0 0 0<br>
LOC: 36013454 36010078 35993018 35993018<br>
ERR: 0<br>
MIS: 0<br>
[root@openvox ast]#<br>
=============CPU info==============================<br>
[root@openvox ast]# cat /proc/cpuinfo<br>
processor : 0<br>
vendor_id : GenuineIntel<br>
cpu family : 6<br>
model : 15<br>
model name :<font color="Red"> Intel(R) Xeon(R) CPU X3220 @ 2.40GHz</font><br>
stepping : 11<br>
cpu MHz : 1596.000<br>
cache size : 4096 KB<br>
physical id : 0<br>
siblings : 4<br>
core id : 0<br>
cpu cores : 4<br>
fdiv_bug : no<br>
hlt_bug : no<br>
f00f_bug : no<br>
coma_bug : no<br>
fpu : yes<br>
fpu_exception : yes<br>
cpuid level : 10<br>
wp : yes<br>
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br>
bogomips : 4802.77<br>
<br>
processor : 1<br>
vendor_id : GenuineIntel<br>
cpu family : 6<br>
model : 15<br>
model name : Intel(R) Xeon(R) CPU X3220 @ 2.40GHz<br>
stepping : 11<br>
cpu MHz : 2394.000<br>
cache size : 4096 KB<br>
physical id : 0<br>
siblings : 4<br>
core id : 1<br>
cpu cores : 4<br>
fdiv_bug : no<br>
hlt_bug : no<br>
f00f_bug : no<br>
coma_bug : no<br>
fpu : yes<br>
fpu_exception : yes<br>
cpuid level : 10<br>
wp : yes<br>
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br>
bogomips : 4800.15<br>
<br>
processor : 2<br>
vendor_id : GenuineIntel<br>
cpu family : 6<br>
model : 15<br>
model name : Intel(R) Xeon(R) CPU X3220 @ 2.40GHz<br>
stepping : 11<br>
cpu MHz : 1596.000<br>
cache size : 4096 KB<br>
physical id : 0<br>
siblings : 4<br>
core id : 2<br>
cpu cores : 4<br>
fdiv_bug : no<br>
hlt_bug : no<br>
f00f_bug : no<br>
coma_bug : no<br>
fpu : yes<br>
fpu_exception : yes<br>
cpuid level : 10<br>
wp : yes<br>
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br>
bogomips : 4800.19<br>
<br>
processor : 3<br>
vendor_id : GenuineIntel<br>
cpu family : 6<br>
model : 15<br>
model name : Intel(R) Xeon(R) CPU X3220 @ 2.40GHz<br>
stepping : 11<br>
cpu MHz : 2394.000<br>
cache size : 4096 KB<br>
physical id : 0<br>
siblings : 4<br>
core id : 3<br>
cpu cores : 4<br>
fdiv_bug : no<br>
hlt_bug : no<br>
f00f_bug : no<br>
coma_bug : no<br>
fpu : yes<br>
fpu_exception : yes<br>
cpuid level : 10<br>
wp : yes<br>
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br>
bogomips : 4800.18<br>
<br>
===============TOP info==========================<br>
<br>
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br>
24405 root 15 0 155m 77m 5472 S 230 1..9 165:14.21 asterisk<br>
2855 root 15 0 1716 608 516 S 0 0.0 0:08.60 syslogd<br>
2858 root 15 0 1668 400 336 S 0 0.0 0:15.65 klogd<br>
24633 root 16 0 2188 1020 800 S 0 0.0 0:07.19 top<br>
26669 root 15 0 2188 1012 796 R 0 0.0 0:00.03 top<br>
1 root 15 0 2064 608 524 S 0 0.0 0:01.01 init<br>
2 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0<br>
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0<br>
4 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0<br>
5 root RT -5 0 0 0 S 0 0.0 0:00.02 migration/1<br>
6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1<br>
<br>
===============asterisk ss7 debug info================<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l1' on linkset 'ls1', firstcic=1<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l2' on linkset 'ls1', firstcic=33<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l3' on linkset 'ls1', firstcic=65<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l4' on linkset 'ls1', firstcic=97<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l5' on linkset 'ls1', firstcic=129<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l6' on linkset 'ls1', firstcic=161<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l7' on linkset 'ls1', firstcic=193<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l8' on linkset 'ls1', firstcic=225<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l9' on linkset 'ls1', firstcic=257<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l10' on linkset 'ls1', firstcic=289<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l11' on linkset 'ls1', firstcic=321<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configured link 'l12' on linkset 'ls1', firstcic=353<br>
[Nov 19 09:16:39] WARNING[21902] config.c: Missing interface entries for host 'openvox'.<br>
[Nov 19 09:16:39] NOTICE[21902] config.c: Configuring DPC XXXXXX for linkset 'ls1'.<br>
[Nov 19 09:16:39] NOTICE[21902] mtp.c: Initialising 1 signalling links<br>
4) testing tools:<br>
<font color="Red">Cnetos-5.2, asterisk-1.4.20.1.tar.gz chan_ss7-1.2.tar.gz zaptel-1.4.12.1, D410P(3 cards)</font><br>
==============================<br>
after testing, the result shows that quality of voice and consumption of system resource are acceptable.<br>
<br>Regards!<br>
james..zhu(zhulizhong@gmail.com)<br><br></td></tr></table><br>