[SOLVED] - Te110p problems - zttest showing 80.4% -

Ok something interesting - when I change the /etc/zaptel.conf to e&m and the signaling to em I get this in my zttool:

aaaaaaa Digium Wildcard TE110P T1/E1 Card 0 aaaaaaaaaaaaa
a      							a
a      							a
a    Current Alarms:     Yellow Alarm      		a
a    Sync Source:        Internally clocked		a
a    IRQ Misses:      0  				a
a    Bipolar Viol:    0  				a
a    Tx/Rx Levels:0/  0  				a
a    Total/Conf/Act:      24/ 24/ 23       		a
a        		111111111122222        aaaaaaaa a
a        	123456789012345678901234       a Back a a 
a    TxA 00000000000000000000000-              aaaaaaaa a
a    TxB 00000000000000000000000- 			a
a    TxC 00000000000000000000000- 			a 
a    TxD 00000000000000000000000- 			a
a   					aaaaaaaa    	a
a    RxA 11111111111111111111111-       a Loop a    	a
a    RxB 11111111111111111111111-       aaaaaaaa    	a
a    RxC 11111111111111111111111- 			a
a    RxD 11111111111111111111111- 			a
a      							a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 

Notice tx - all 0s and recieve all 1s - there has never been anything in those spots before:

But here is what my old zapata.conf was:

[channels]
         context = incomming
         switchtype = dms100
        overlapdial = yes
         usecallerid = yes
         echocancel = yes
         echocancelwhenbridged = yes
         ;add the is option if you are problems with DTMF detection
         relaxdtmf = yes
         rxgain = 0.0
         txgain = 0.0
         signalling = pri_cpe
         group = 1
         channel => 1-14

if it’s a PRI line, then e&m won’t work - we actually are using a mix of PRI and e&m lines, and they are NOT compatible.

did you try the changes I suggested?

also, what version of libpri did you compile, just to make sure we’re up to date.

libpri - 1.2.3

well we should be 14b+1d - so I made the zaptel.conf 1-14 dchan 15

I am restarting the system - to see what happens -

here is the results
Jul 25 07:06:25 ERROR[4819] chan_zap.c: Unable to open D-channel 24 (No such device or address)
Jul 25 07:06:25 ERROR[4819] chan_zap.c: Unable to start D-channel on span 1
Jul 25 07:06:25 WARNING[4819] loader.c: chan_zap.so: load_module failed, returning -1
Jul 25 07:06:25 WARNING[4819] loader.c: Loading module chan_zap.so failed!

I have read that even though we are only using 14b channels we still need all 23 listed in zaptel.conf - and then we only use 1-14 in the zapata.conf

not sure, i’ve never really dealt with partial T1/E1 lines.

ok, it’s a T1 according to SBC, so let’s try this:

bchan=1-23
OR
bchan=1-14
AND
dchan=24

then, in zapata.conf, only use 1-14

EDIT: in other words, you are right. look at the output of ztcfg -vvv - channel 24 is showing signal.

[root@AsteriskPBX asterisk]# ztcfg -vvv

Zaptel Configuration
======================

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: Clear channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: D-channel (Default) (Slaves: 24)

24 channels configured.

[code][root@AsteriskPBX asterisk]# cat /proc/zaptel/1
Span 1: WCT1/0 “Digium Wildcard TE110P T1/E1 Card 0” B8ZS/ESF YELLOW

       1 WCT1/0/1 Clear (In use)
       2 WCT1/0/2 Clear (In use)
       3 WCT1/0/3 Clear (In use)
       4 WCT1/0/4 Clear (In use)
       5 WCT1/0/5 Clear (In use)
       6 WCT1/0/6 Clear (In use)
       7 WCT1/0/7 Clear (In use)
       8 WCT1/0/8 Clear (In use)
       9 WCT1/0/9 Clear (In use)
      10 WCT1/0/10 Clear (In use)
      11 WCT1/0/11 Clear (In use)
      12 WCT1/0/12 Clear (In use)
      13 WCT1/0/13 Clear (In use)
      14 WCT1/0/14 Clear (In use)
      15 WCT1/0/15 Clear
      16 WCT1/0/16 Clear
      17 WCT1/0/17 Clear
      18 WCT1/0/18 Clear
      19 WCT1/0/19 Clear
      20 WCT1/0/20 Clear
      21 WCT1/0/21 Clear
      22 WCT1/0/22 Clear
      23 WCT1/0/23 Clear
      24 WCT1/0/24 HDLCFCS (In use)

[/code]

[root@AsteriskPBX asterisk]# cat /etc/zaptel.conf
loadzone = us
defaultzone=us
span=1,1,0,esf,b8zs
bchan=1-23
dchan=24
[root@AsteriskPBX asterisk]# cat /etc/asterisk/zapata.conf
[channels]
         context = incomming
         switchtype = dms100
         overlapdial = yes
         usecallerid = yes
         echocancel = yes
         echocancelwhenbridged = yes
         ;add the is option if you are problems with DTMF detection
         relaxdtmf = yes
         rxgain = 0.0
         txgain = 0.0
         signalling = pri_cpe
         group = 1
         channel => 1-14

I dunno doesnt seem like its doing anything still

What should it show? how can my CSU recieve information from telco, but not send a t1 signal?

change the bchan in zaptel from 1-23 to 1-14 and redo your ztcfg -vvv

Ok here is what I have now -

[root@AsteriskPBX asterisk]# ztcfg -vvvd
Line 1: loadzone = us
Line 2: defaultzone=us
Line 3: span=1,1,0,esf,b8zs
Line 4: bchan=1-14
Line 5: dchan=24
<End of File>

Zaptel Configuration
======================

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 24: D-channel (Default) (Slaves: 24)

15 channels configured.

should I get SBC on the phone agian and see if anythings changed?

The biggest thing that confuses me is that they kept telling me the protocol is National 2 what the heck is that - I can not find anyplace to make that change - its on the ordernumber i posted above (National / FAS)

your configs look right - what is the problem? can you not make calls?

if your ztcfg -vvv returns no errors, and asterisk starts cleanly, you SHOULD be able to make and receive calls…as far as i can tell, you are good to go at this point.

you could also check zttool if you’d like, but i’d try placing a call and seeing what happens.

The trunks will not come online - just got off the phone with SBC -

When they try to loop my CSU they get :

Loop the CSU - your getting framing errors and pattern sync loss -

They said that my csu is prob not getting the timming from them.

I dont know what to do. they can loop up the smart jack and all is good, but this DAMN card is not working. I am not getting any errors nothing…

Ohh another is they said the Protocol must be set to NI2
I do not see anywhere to set the NI2 protocol!

ok…i’m not sure if SBC would be set up similarly across the country, but here in Overland Park, our PRI is using switchtype=national and signalling=pri_cpe in zapata.conf

EDIT: protocol=NI2 is probably the signalling setting, and both pri_cpe and pri_net support the following, according to digium’s docs:

Voice Modes PRI CPE & PRI NET * NI1 * NI2 * EuroISDN * 4ESS (AT&T) * 5ESS (Lucent) * DMS100

from the looks of your ztcfg, your zaptel.conf is good to go.

are you currently running switchtype=national? if not, set it - it’s pretty much the only supported switchtype.

are you running signalling=pri_cpe? if not, please try that. make sure you restart asterisk, the just try to make a call - i don’t care what SBC says, just try to make a call.

if signalling is pri_cpe and you can’t call out, you MIGHT try setting it to pri_net.

there aren’t very many options for PRI, so one of the two above signalling types SHOULD be right…

your zapata should look like this…

[channels] context = incomming overlapdial = yes usecallerid = yes echocancel = yes echocancelwhenbridged = yes relaxdtmf = yes rxgain = 0.0 txgain = 0.0[b] switchtype = national signalling = pri_cpe[/b] group = 1 channel => 1-14

kb.digium.com/entry/1/93/ says that ‘ni1’ is acceptable switchtype … is ‘ni2’ ??

that’s wierd…see here: digium.com/en/docs/misc/signaling.php

based on the two pages “combined”, i don’t see why not…

figures that SBC would use a non-standard setup…when we moved the one T to PRI, we made the changes as above and it worked perfectly out of the box…

EDIT: THIS is the biggest reason why the documentation needs to be better within asterisk…argh.

switchtype: Sets the type of PRI switch being used. Default: national. Acceptable values are:

national: National ISDN type2 (common in the US)
ni1: National ISDN type 1
dms100: Nortel DMS100
4ess: AT&T 4ESS
5ess: Lucent 5ESS
euroisdn: EuroISDN
qsig: Minimalistic protocol to build a “network” with two or more PBX of different vendors!

Have you tried making a loopback plug and see if the card will green up?

so national = national ISDN type 2 = ni2

interesting how “national” and “qsig” are not on the page you found.

no go -

Jul 25 08:43:33 NOTICE[12150] app_dial.c: Unable to create channel of type 'Zap' (cause 0 - Unknown) Jul 25 08:43:33 DEBUG[12150] app_dial.c: Exiting with DIALSTATUS=CHANUNAV

here is something interesting :
http://www.asteriskguru.com/tutorials/e1t1.html

[quote]
– configuration on SBC.

If you are being flooded (several times a second, non stop and the pri never worked) by lines as:

Jul 14 13:55:21 NOTICE[19519]: chan_zap.c:7874 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1

Then probably the PRI you are using is not using PRI signalling but maybe some other type of signalling like E&M.
[/quote][/quote]

[quote=“rusty”]switchtype: Sets the type of PRI switch being used. Default: national. Acceptable values are:

national: National ISDN type2 (common in the US)
ni1: National ISDN type 1
dms100: Nortel DMS100
4ess: AT&T 4ESS
5ess: Lucent 5ESS
euroisdn: EuroISDN
qsig: Minimalistic protocol to build a “network” with two or more PBX of different vendors!

Have you tried making a loopback plug and see if the card will green up?[/quote]

How do you make a loop plug?

rusty brought up a good point - do you have a loopback cable you could plug in to test the card with?

also, when you are making these changes, are you completely killing asterisk and starting it back up? you don’t need to reboot the machine, just make sure the asterisk process has been restarted…

should be able to find some diagrams on google but basically you want to tye pins 1 and 4 together and pin 2 nd 5 together

Im not for sure been a whole since I tried but I believe the card should green up without asterisk running just do the modprobe and ztcfg after changes and I believe it goes green before starting asterisk