Freepbx 13 only showing only 1 te133

if i reboot everything is ok until I hit restart dahdi again then it back to the above statement

Yes thank you. We understand that. You no longer need to say it.

please run:

su asterisk
/usr/sbin/dahdi_scan

This is when everything is working. Do you want the out when it is broken???

[[email protected] ~]# su asterisk
bash-4.1$ /usr/sbin/dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TE131/TE133 Card 0
name=WCT13x/0
manufacturer=Digium
devicetype=Wildcard TE131/TE133 (VPMOCT032)
location=PCI Bus 10 Slot 01
basechan=1
totchans=24
irq=0
type=digital-T1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[2]
active=yes
alarms=OK
description=Wildcard TE131/TE133 Card 1
name=WCT13x/1
manufacturer=Digium
devicetype=Wildcard TE131/TE133 (VPMOCT032)
location=PCI Bus 13 Slot 01
basechan=25
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
bash-4.1$

I also notice that when i hit restart dahdi and asterisk it takes a long time to pop up the box that says

Restaring DAHDI and Asterisk. Please wait…

I am sorry to say but we are having a very hard time replicating this in the lab. We have three different machines all with different hardware. dahdi_scan on your machine is returning inconsistent results and this is very bad.

I advise you to properly setup your cards once then either

A) uninstall dahdiconfig
B) change the advanced setttings for dahdiconfig writes to false

Either way you will be good to go. Unfortunately you will no longer be able to use the dahdi module.

when the span is undefined and i run the above command I get a blank output

Yes. That IS the problem (as I previously stated). It’s “Undefined” because dahdi_scan is returning nothing. dahdi_scan should ALWAYS return data.

You will need to configure your card manually.

I agree but not sure why… before i did the edge upgrade it was fighting the group number as stated on the first post.

I have check logs and everything that i know to do

We do not know why either which is why we advised you to do this manually

should I report a issue with issues.freepbx.org

No. What we have done here in this ticket is the same thing we would do through issues.freepbx.org. Besides connecting to your machine which we are only allowed to do through commercial support. If you want this solved right NOW you’d have to go through commercial support.

As I said. Running “/usr/sbin/dahdi_scan” should always return output. It should never be returning nothing.

Even this is valid.

[[email protected] ~]# /usr/sbin/dahdi_scan
Unable to open /dev/dahdi/ctl: No such file or directory

Blank is not.

Ok I have to submit a ticket on monday since they are only open m-f 8-5 cst

When it blanks out (eg /usr/sbin/dahdi_scan returns NOTHING)

Run:

echo $?

Ok I will run that command tommorrow wh I am back at the office.

I ran the command echo $? and got this

[[email protected] ~]# echo $?
0
[[email protected] ~]#

when it blanked out and when everything was working normally

@tm1000

I preformed a fresh install from a fresh download from freepbx.org and I updated to all modules and it does the same thing on the new box

running command asterisk -rx ‘pri show spans’
comes back blank

command echo $?

comes back 0

running command
su asterisk **
** /usr/sbin/dahdi_scan comes back blank

dahdi show status

Description Alarms IRQ bpviol CRC Fra Codi Options LBO

lsdahdi

Span 1: WCT13x/0 “Wildcard TE131/TE133 Card 0” (MASTER)

1 PRI
2 PRI
3 PRI
4 PRI
5 PRI
6 PRI
7 PRI
8 PRI
9 PRI
10 PRI
11 PRI
12 PRI
13 PRI
14 PRI
15 PRI
16 PRI
17 PRI
18 PRI
19 PRI
20 PRI
21 PRI
22 PRI
23 PRI
24 PRI

sudo dahdi_scan
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TE131/TE133 Card 0
name=WCT13x/0
manufacturer=Digium
devicetype=Wildcard TE131/TE133 (VPMOCT032)
location=PCI Bus 23 Slot 01
basechan=1
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=
framing=CAS

sudo dahdi_cfg -vvv
DAHDI Tools Version - 2.11.1

DAHDI Version: 2.11.1
Echo Canceller(s): HWEC
Configuration

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

Channel map:

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

24 channels to configure.

Changing signalling on channel 1 from Unused to Clear channel
Setting echocan for channel 1 to none
Changing signalling on channel 2 from Unused to Clear channel
Setting echocan for channel 2 to none
Changing signalling on channel 3 from Unused to Clear channel
Setting echocan for channel 3 to none
Changing signalling on channel 4 from Unused to Clear channel
Setting echocan for channel 4 to none
Changing signalling on channel 5 from Unused to Clear channel
Setting echocan for channel 5 to none
Changing signalling on channel 6 from Unused to Clear channel
Setting echocan for channel 6 to none
Changing signalling on channel 7 from Unused to Clear channel
Setting echocan for channel 7 to none
Changing signalling on channel 8 from Unused to Clear channel
Setting echocan for channel 8 to none
Changing signalling on channel 9 from Unused to Clear channel
Setting echocan for channel 9 to none
Changing signalling on channel 10 from Unused to Clear channel
Setting echocan for channel 10 to none
Changing signalling on channel 11 from Unused to Clear channel
Setting echocan for channel 11 to none
Changing signalling on channel 12 from Unused to Clear channel
Setting echocan for channel 12 to none
Changing signalling on channel 13 from Unused to Clear channel
Setting echocan for channel 13 to none
Changing signalling on channel 14 from Unused to Clear channel
Setting echocan for channel 14 to none
Changing signalling on channel 15 from Unused to Clear channel
Setting echocan for channel 15 to none
Changing signalling on channel 16 from Unused to Clear channel
Setting echocan for channel 16 to none
Changing signalling on channel 17 from Unused to Clear channel
Setting echocan for channel 17 to none
Changing signalling on channel 18 from Unused to Clear channel
Setting echocan for channel 18 to none
Changing signalling on channel 19 from Unused to Clear channel
Setting echocan for channel 19 to none
Changing signalling on channel 20 from Unused to Clear channel
Setting echocan for channel 20 to none
Changing signalling on channel 21 from Unused to Clear channel
Setting echocan for channel 21 to none
Changing signalling on channel 22 from Unused to Clear channel
Setting echocan for channel 22 to none
Changing signalling on channel 23 from Unused to Clear channel
Setting echocan for channel 23 to none
Changing signalling on channel 24 from Unused to HDLC with FCS check
Setting echocan for channel 24 to none

AHDI_SPANCONFIG failed on span 1: No such device or address (6)

Do you know what this does? Do you know why I asked you to run it? I specifically asked you to run that after Dahdi scan outputs nothing. Not at some random time and not after running asterisk commands (which you should not be running because your card isn’t configured)

You’ve got a few options:
1 run the things the I asked in the order I asked.
2 configure the card manually. Uninstall Dahdi config
3 use commercial support.

Things you need to ask
1 why is Dahdi scan returning nothing under the asterisk user
2 why is Dahdi scan returning something when you sudo (are you running this as asterisk I have no idea)
3 why are you even sudoing
4 please use code indentation.

I did like you asked and ran it right after dahdi_scan and no not 100% i know what echo does but not the $?

You did not make that clear in your response.

I was doing this is a test environment using a post that someone posted a similar issue on a asterisk forum.