chan_ss7+asterisk+dahdi resource busy error


#1

Hi,

We are using Openvox quad span E1cards and configuring it with the operator using chan ss7 but not been able to make it up and running. Link comes up if we use libss7 but we want to use chan_ss7 and it is not working :frowning:

[root@localhost ~]# lspci -vvvv
07:00.0 Communication controller: Digium, Inc. Wildcard TE410P/TE412P quad-span T1/E1/J1 card 3.3V (rev 02)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 32
Interrupt: pin A routed to IRQ 177
Region 0: Memory at df2fe000 (32-bit, non-prefetchable) [size=128]
Kernel driver in use: wct4xxp
Kernel modules: wct4xxp

After successful installation of all packages I run

[root@localhost ~]# service dahdi start
Loading DAHDI hardware modules:
wct4xxp: [ OK ]
wcte12xp: [ OK ]
wct1xxp: [ OK ]
wcte11xp: [ OK ]
wctdm24xxp: [ OK ]
wcfxo: [ OK ]
wctdm: [ OK ]
wcb4xxp: [ OK ]
wctc4xxp: [ OK ]
xpp_usb: [ OK ]

Running dahdi_cfg: [ OK ] ;It takes too long on this line

[root@localhost ~]# service dahdi status

Span 1: TE4/0/1 “T4XXP (PCI) Card 0 Span 1” (MASTER) HDB3/CCS/CRC4 ClockSource

1 PRI MTP2
2 PRI Clear
3 PRI Clear
4 PRI Clear
5 PRI Clear
6 PRI Clear
7 PRI Clear
8 PRI Clear
9 PRI Clear
10 PRI Clear
11 PRI Clear
12 PRI Clear
13 PRI Clear
14 PRI Clear
15 PRI Clear
16 PRI Clear
17 PRI Clear
18 PRI Clear
19 PRI Clear
20 PRI Clear
21 PRI Clear
22 PRI Clear
23 PRI Clear
24 PRI Clear
25 PRI Clear
26 PRI Clear
27 PRI Clear
28 PRI Clear
29 PRI Clear
30 PRI Clear
31 PRI Clear

Span 2: TE4/0/2 “T4XXP (PCI) Card 0 Span 2” HDB3/CCS/CRC4

32 PRI Clear
33 PRI Clear
34 PRI Clear
35 PRI Clear
36 PRI Clear
37 PRI Clear
38 PRI Clear
39 PRI Clear
40 PRI Clear
41 PRI Clear
42 PRI Clear
43 PRI Clear
44 PRI Clear
45 PRI Clear
46 PRI Clear
47 PRI Clear
48 PRI Clear
49 PRI Clear
50 PRI Clear
51 PRI Clear
52 PRI Clear
53 PRI Clear
54 PRI Clear
55 PRI Clear
56 PRI Clear
57 PRI Clear
58 PRI Clear
59 PRI Clear
60 PRI Clear
61 PRI Clear
62 PRI Clear

Span 3: TE4/0/3 “T4XXP (PCI) Card 0 Span 3” HDB3/CCS/CRC4

63 PRI Clear
64 PRI Clear
65 PRI Clear
66 PRI Clear
67 PRI Clear
68 PRI Clear
69 PRI Clear
70 PRI Clear
71 PRI Clear
72 PRI Clear
73 PRI Clear
74 PRI Clear
75 PRI Clear
76 PRI Clear
77 PRI Clear
78 PRI Clear
79 PRI Clear
80 PRI Clear
81 PRI Clear
82 PRI Clear
83 PRI Clear
84 PRI Clear
85 PRI Clear
86 PRI Clear
87 PRI Clear
88 PRI Clear
89 PRI Clear
90 PRI Clear
91 PRI Clear
92 PRI Clear
93 PRI Clear

Span 4: TE4/0/4 “T4XXP (PCI) Card 0 Span 4” HDB3/CCS/CRC4

94 PRI Clear
95 PRI Clear
96 PRI Clear
97 PRI Clear
98 PRI Clear
99 PRI Clear
100 PRI Clear
101 PRI Clear
102 PRI Clear
103 PRI Clear
104 PRI Clear
105 PRI Clear
106 PRI Clear
107 PRI Clear
108 PRI Clear
109 PRI Clear
110 PRI Clear
111 PRI Clear
112 PRI Clear
113 PRI Clear
114 PRI Clear
115 PRI Clear
116 PRI Clear
117 PRI Clear
118 PRI Clear
119 PRI Clear
120 PRI Clear
121 PRI Clear
122 PRI Clear
123 PRI Clear
124 PRI Clear

[root@localhost ~]# asterisk -vvvvvvc

Asterisk is terminated with below error.

[Oct 31 12:15:26] NOTICE[20842] config.c: Configured link ‘l1’ on linkset ‘siuc’, firstcic=2
[Oct 31 12:15:26] WARNING[20842] config.c: Missing interface entries for host ‘localhost.localdomain’.
[Oct 31 12:15:26] NOTICE[20842] config.c: Configuring OPC 3544, DPC 3533 for linkset ‘siuc’.
[Oct 31 12:15:26] WARNING[20842] transport.c: Failure in DAHDI_SPECIFY for dahdi id 2: Device or resource busy.
[Oct 31 12:15:26] ERROR[20842] chan_ss7.c: Unable to initialize ISUP.

[root@localhost src]# uname -r
2.6.18-274.3.1.el5PAE
[root@localhost src]# cat /etc/redhat-release
CentOS release 5.7 (Final)

After installing all dependencies for Asterisk, I installed each application in following order (I followed instructions from asterisk-peru.com/files/proc … digium.txt)

dahdi-linux-complete-2.4.1.2+2.4.1
asterisk-1.6.1.6
chan_ss7-1.4.3

In Makefile of chan_ss7 , I cahnged the dahdi and asterisk include path as follows (I was not able to find CFLAGS+=-DDAHDI as mentioned in guide)

INCLUDE+=-I…/dahdi-linux-complete-2.4.1.2+2.4.1/linux/include
INCLUDE+=-I…/asterisk-1.6.1.6/include

Below are my config files

[root@localhost ~]# cat /etc/dahdi/system.conf
span=1,1,0,ccs,hdb3,crc4
bchan=2-31
mtp2=1

span=2,2,0,ccs,hdb3,crc4
bchan=32-62

span=3,3,0,ccs,hdb3,crc4
bchan=63-93

span=4,4,0,ccs,hdb3,crc4
bchan=94-124

Global data

loadzone = us
defaultzone = us

[root@localhost ~]# cat /etc/asterisk/ss7.conf
[linkset-siuc]
enabled => yes
enable_st => yes
use_connect => yes
hunting_policy => even_mru
context => ss7
language => da

t35 => 15000,timeout
subservice => auto
; The host running the mtp3 service
; mtp3server => localhost

[link-l1]
linkset => siuc
channels => 2-124
schannel => 1
firstcic => 2
enabled => yes
echocancel => no
echocan_train => 350
echocan_taps => 128

[host-localhost.localdomain]
enabled => yes
opc => 3544
dpc => siuc:3533
links => l1:1
; The SCCP global title: translation-type, nature-of-address, numbering-plan, address
globaltitle => 0x00, 0x04, 0x01, 4546931411
;ssn => 7
;route => 919820405471:ra_geb, 919820367598:ra_geb, 919820706441:ra_geb, :ra_geb

[jitter]
jbenable = yes
jbmaxsize = 200
jbresyncthreshold = 1000

I don’t understand why channel 2 appears busy. Any help in this regard will be highly appreciated.


Thanks and Regards,

Nasir Javaid


#2

hi:
bchan=2-31 is 1-31 or 2-31, firstcic start from or 2? please check the host-name, make sure the name is same as your server name.


#3

Thanks James,

I figured out what was the issue. I was using MTP2=1 in system.conf and when i removed this line this error was gone. I updated my system.conf and ss7.conf like below

===========================
system.conf:

span=1,1,0,ccs,hdb3,crc4
bchan=1-31

span=2,2,0,ccs,hdb3,crc4
bchan=32-62

span=3,3,0,ccs,hdb3,crc4
bchan=63-93

span=4,4,0,ccs,hdb3,crc4
bchan=94-124

Global data

loadzone = us
defaultzone = us

===========================
ss7.conf:

[linkset-siuc]
enabled => yes
enable_st => yes
use_connect => no
hunting_policy => even_mru
context => ss7_call
language => en
subservice => auto

[link-l1]
linkset => siuc
channels => 2-31
schannel => 1
firstcic => 2
enabled => yes

echocancel => no
echocan_train => 350
echocan_taps => 128

[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 => yes

[host-localhost.localdomain]
enabled => yes
opc => 3544
dpc => siuc:3533
links => l1:1,l2:2,l3:3,l4:4

After restarting dahdi and starting asterisk i see following on cli

*CLI> [Nov 2 11:26:27] NOTICE[26889]: l4isup.c:1559 t22_timeout: T22 timeout (No “circuit group reset acknowledge” from peer) CIC=3.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:1559 t22_timeout: T22 timeout (No “circuit group reset acknowledge” from peer) CIC=35.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:1559 t22_timeout: T22 timeout (No “circuit group reset acknowledge” from peer) CIC=65.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:1559 t22_timeout: T22 timeout (No “circuit group reset acknowledge” from peer) CIC=97.
[Nov 2 11:26:27] WARNING[26889]: l4isup.c:5057 l4isup_event: Received GRA (CIC 3), link ‘l1’.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:3739 process_gra: Process GRA, cic=3, range=31
[Nov 2 11:26:27] WARNING[26889]: l4isup.c:5057 l4isup_event: Received GRA (CIC 97), link ‘l1’.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:3739 process_gra: Process GRA, cic=97, range=30
[Nov 2 11:26:27] WARNING[26889]: l4isup.c:5057 l4isup_event: Received GRA (CIC 35), link ‘l1’.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:3739 process_gra: Process GRA, cic=35, range=28
[Nov 2 11:26:27] WARNING[26889]: l4isup.c:5057 l4isup_event: Received GRA (CIC 65), link ‘l1’.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:3739 process_gra: Process GRA, cic=65, range=30

localhost*CLI> ss7 link status
linkset:siuc, link:l1/1, state:INSERVICE, sls:0, total: 100288/100320

*CLI> ss7 linestat
Linkset: siuc
CIC 3 Idle
CIC 4 Idle
CIC 5 Idle
CIC 6 Idle
CIC 7 Idle
CIC 8 Idle
CIC 9 Idle
CIC 10 Idle
CIC 11 Idle
CIC 12 Idle
CIC 13 Idle
CIC 14 Idle
CIC 15 Idle
CIC 16 Idle
CIC 17 Idle
CIC 18 Idle
CIC 19 Idle
CIC 20 Idle
CIC 21 Idle
CIC 22 Idle
CIC 23 Idle
CIC 24 Idle
CIC 25 Idle
CIC 26 Idle
CIC 27 Idle
CIC 28 Idle
CIC 29 Idle
CIC 30 Idle
CIC 31 Idle
CIC 32 Idle BLOCKED Remote Maintenance
CIC 33 Idle BLOCKED Remote Maintenance
CIC 34 Idle BLOCKED Remote Maintenance
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 97 Idle
CIC 98 Idle
CIC 99 Idle
CIC 100 Idle
CIC 101 Idle
CIC 102 Idle
CIC 103 Idle
CIC 104 Idle
CIC 105 Idle
CIC 106 Idle
CIC 107 Idle
CIC 108 Idle
CIC 109 Idle
CIC 110 Idle
CIC 111 Idle
CIC 112 Idle
CIC 113 Idle
CIC 114 Idle
CIC 115 Idle
CIC 116 Idle
CIC 117 Idle
CIC 118 Idle
CIC 119 Idle
CIC 120 Idle
CIC 121 Idle
CIC 122 Idle
CIC 123 Idle
CIC 124 Idle
CIC 125 Idle
CIC 126 Idle
CIC 127 Idle

i see below notice on cli after every few seconds

[Nov 2 11:42:46] NOTICE[27243]: mtp.c:1064 mtp3_send_sltm: Sending SLTM to peer on link ‘l1’…
[Nov 2 11:43:47] NOTICE[27243]: mtp.c:1064 mtp3_send_sltm: Sending SLTM to peer on link ‘l1’…
[Nov 2 11:44:48] NOTICE[27243]: mtp.c:1064 mtp3_send_sltm: Sending SLTM to peer on link ‘l1’…
[Nov 2 11:45:49] NOTICE[27243]: mtp.c:1064 mtp3_send_sltm: Sending SLTM to peer on link ‘l1’…

I can send outbound call using call file and can receive calls but DTMF don’t seem to work. also when outbound call is ringing i see following message looping continuously on cli.

[Nov 2 11:22:35] NOTICE[26778]: channel.c:3168 __ast_read: Dropping incompatible voice frame on SS7/siuc/126 of format ulaw since our native format has changed to 0x8 (alaw)
[Nov 2 11:22:35] NOTICE[26778]: channel.c:3168 __ast_read: Dropping incompatible voice frame on SS7/siuc/126 of format ulaw since our native format has changed to 0x8 (alaw)

can you please tell me:

1- what are those warnings and notices like
*CLI> [Nov 2 11:26:27] NOTICE[26889]: l4isup.c:1559 t22_timeout: T22 timeout (No “circuit group reset acknowledge” from peer) CIC=3.
[Nov 2 11:26:27] NOTICE[26889]: l4isup.c:1559 t22_timeout: T22 timeout (No “circuit group reset acknowledge” from peer) CIC=35.

2- why channels 32,33,34 show BLOCKED remote maintenance
3- why notice of Sending SLTM to peer on link ‘l1’ apprears.

I am new to chan_ss7 so please don’t mind if my questions seem not to make sense.

thanks and regards,

Nasir.