アスタリスクchan_ss7「12スレッド」

チャレンジ:



N7アラームシステムを使用した市の電話局「GTS」への接続(チャネル全体のアラームNo. 7(OKS7またはSS7)

段階的な決定:







サーバー:


サーバーについてほとんど知らないので、すべてをリモートでセットアップしましたが、表示されませんでしたが、必要なものはすべて表示されました。

パーセント:

[root@ss7 ~]# cat /proc/cpuinfo |grep "model name"

model name : Pentium(R) Dual-Core CPU E5700 @ 3.00GHz

model name : Pentium(R) Dual-Core CPU E5700 @ 3.00GHz






メモリ:

[root@ss7 ~]# free -m

total used free shared buffers cached

Mem: 4051 3899 152 0 142 3628

-/+ buffers/cache: 128 3923

Swap: 5247 0 5247






ねじ:

Ryde 250ギガバイトの2本のネジ、通常のSATA

マザーボード:

モデルとメーカーは興味がありませんでした; DIGIUMボードで1回の割り込みでUSBまたはETHがあったかどうかを知るだけでした。

[root@ss7 ~]# cat /proc/interrupts

....

58: 6425 2287054760 IO-APIC-level ata_piix, wct4xxp

74: 2285708690 4349 IO-APIC-level wct4xxp

82: 4161 2285686641 IO-APIC-level wct4xxp

....






ネジ(ata_piix、wct4xxp)による1つの割り込みでのボードの1つが問題であるという事実が、行われたすべてが機能しませんでした。

ストリームボード:

[root@ss7 ~]# dahdi_hardware

pci:0000:05:00.0 wct4xxp+ d161:1405 Wildcard TE405P (5th Gen)

pci:0000:05:01.0 wct4xxp+ d161:0405 Wildcard TE405P (4th Gen)

pci:0000:05:02.0 wct4xxp+ d161:0405 Wildcard TE405P (4th Gen)






3つのボードDIGIUM TE405 PCIスロットを使用します。



システムとソフトウェア


このタスクを開始する前に、インターネットで多くの検索を行いましたが、ここで使用した方がよいソリューションを見つけました。



選択はアスタリスクとchan_ss7にかかっています。私の意見では、設定するのが最も簡単で、そのような接続に非常に必要なデバッグを非常によく表示します。 システムはCentos 5.5にアップグレードされ、さらにソースからDAHDIが組み立てられ、 Han_ss7-2.0.0をダウンロードした後にアスタリスク追加されました



接続設定


ストリームは特別な方法で提出されました。 サーバーへのモデム、接続するには、通常のE1ケーブルが必要でした。 Config Dahdi:

[root@ss7 asterisk]# cat /etc/dahdi/system.conf

span=1,1,0,ccs,hdb3,crc4

bchan=1-31

echocanceller=mg2,1-31



span=2,2,0,ccs,hdb3,crc4

bchan=32-62

echocanceller=mg2,32-62



span=3,3,0,ccs,hdb3,crc4

bchan=63-93

echocanceller=mg2,63-93



span=4,4,0,ccs,hdb3,crc4

bchan=94-124

echocanceller=mg2,94-124



span=5,5,0,ccs,hdb3,crc4

bchan=125-155

echocanceller=mg2,125-155



span=6,6,0,ccs,hdb3,crc4

bchan=156-186

echocanceller=mg2,156-186



span=7,7,0,ccs,hdb3,crc4

bchan=187-217

echocanceller=mg2,187-217



span=8,8,0,ccs,hdb3,crc4

bchan=218-248

echocanceller=mg2,218-248



span=9,9,0,ccs,hdb3,crc4

bchan=249-279

echocanceller=mg2,249-279



span=10,10,0,ccs,hdb3,crc4

bchan=280-310

echocanceller=mg2,280-310



span=11,11,0,ccs,hdb3,crc4

bchan=311-341

echocanceller=mg2,311-341



span=12,12,0,ccs,hdb3,crc4

bchan=342-372

echocanceller=mg2,342-372



loadzone = us

defaultzone = us








chan_ss7の構成:

[root@ss7 ~]# cat /etc/asterisk/ss7.conf

[linkset-mtc]

enabled => yes

enable_st => yes

use_connect => no

hunting_policy => even_mru

context => ss7

language => ru

t35 => 15000,timeout

subservice => 8



[link-mtcl1]

linkset => mtc

channels => 2-31

schannel => 1

firstcic => 1

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl2]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 33

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl3]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 65

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl4]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 97

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl5]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 129

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl6]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 161

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl7]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 193

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl8]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 225

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl9]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 257

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl10]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 289

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl11]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 321

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[link-mtcl12]

linkset => mtc

channels => 1-31

schannel =>

firstcic => 353

enabled => yes

echocancel => allways

echocan_train => 350

echocan_taps => 128



[host-ss7.host.ru]

enabled => yes

opc => 0x62

dpc => mtc:0x0d

links => mtcl1:1,mtcl2:2,mtcl3:3,mtcl4:4,mtcl5:5,mtcl6:6,mtcl7:7,mtcl8:8,mtcl9:9,mtcl10:10,mtcl11:11,mtcl12:12








問題と解決策


1)ストリームを接続する順序(物理的に):

物理リンクを接続する場合、GTSのポート1-1 DIGUM、2 -2に同時に挿入する必要があります。これは、フローが最初にランダムにオンになったため、これが最初の問題でした。

2)CRC4-設定の3日目のGTSは、DIGIUMでオンにされたときにCRC4がオフになり、信号チャネルに影響したと述べました。 どのようになったのかわかりません。これはモデムにも当てはまると思うので、GTSにCRC4をオンにするように依頼しました。

ログ: [May 24 11:46:48] NOTICE[6229] mtp.c: Failover not possible, no other signalling link and no other host available.

[May 24 11:46:48] WARNING[6229] chan_ss7.c: MTP is now DOWN on link 'mtcl1'.

[May 24 11:46:50] WARNING[6229] chan_ss7.c: MTP is now UP on link 'mtcl1'.

[May 24 11:46:50] NOTICE[6229] mtp.c: Sending TRA to peer on link 'mtcl1'....




[May 24 11:46:48] NOTICE[6229] mtp.c: Failover not possible, no other signalling link and no other host available.

[May 24 11:46:48] WARNING[6229] chan_ss7.c: MTP is now DOWN on link 'mtcl1'.

[May 24 11:46:50] WARNING[6229] chan_ss7.c: MTP is now UP on link 'mtcl1'.

[May 24 11:46:50] NOTICE[6229] mtp.c: Sending TRA to peer on link 'mtcl1'....






3)複数のストリームを接続する場合、通常、1つの信号リンクのみが使用されます。これは、最初のストリームでこれに割り当てられたものです。 したがって、link-mtcl1設定でschannel => 1を設定し、2〜31の音声チャネルを使用し、残りのストリームは1〜31(すべて)の音声を使用します。



テスト中


信号リンクのステータスの確認:

*CLI> ss7 link status

linkset mtc, link mtcl1/1 INSERVICE, sls 0, total: 3173888, 3173904






チャンネルのステータスの確認:

ss7*CLI> ss7 show channels

Linkset: mtc

CIC 2 Idle

CIC 3 Idle

CIC 4 Idle

.

.

.

CIC 382 Idle

CIC 383 Idle






私がキャッチすることができたチャンネルの最大数:

root@ss7 ~]# asterisk -rx "core show channels"

….

1069 active channels

362 active calls








PS構成の詳細が必要な場合、または書き込みのヘルプ:)



All Articles