Dahdi 2.10 upgrade issues

I’m running Debian Testing with kernel 3.14,3.16

I’m not really sure what the issue is I have dahdi 2.7 build for 3.14 and it works without issues. I tired to upgrade to 2.10 last night, I build the kernel modules for 3.14 and 3.16 and both ended in the same out come.

dmesg had this line in it

dahdi: Span WCT1/0 does not support setting type.

and I have no spans available no matter what I did, dahdi_hardware still found the card and the modules where loaded properly.

lspci

02:0c.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface

dahdi_hardware

pci:0000:02:0c.0 wcte11xp+ e159:0001 Digium Wildcard TE110P T1/E1 Board

I had to revert back to the 2.7 modules but since it’s debian my dahdi is 2.10 just my kernel modules are 2.7 and everything is working 100%. How can I debug this to get my kernel modules back to the right version i don’t like mis matching versions like this. Could it be a compiler binary compat issue? maybe a lib being linked into the ko? I’m not really sure where to start on this one.

Are you upgrading from packages or building and installing from the official sources?

Generally though, my guess is that auto_assign_spans (cat /sys/module/dahdi/parameters/auto_assign_spans) is set to 0 now for some reason. Therefore, it is relying on the user mode scripts to actually handle the assignment, but the TE110 does not support this operation.

Might be simple to solve with a patch that allows span_type to be set, as long as it matches the E1 / T1 mode configured on the card in hardware.

It’s a mix kinda, with debian the binaries are all form package, the kernel modules are compiled but the source and such is all form debian, they have a helper called module-assistant, that is used with scripts to build the kernel modules and make them into a package.

Any idea where I could find such a patch to attempt it?

Hmm…ok, so then the defaults are probably being changed.

Before looking to apply a patch, I would see if you can edit /etc/modprobe.d/dahdi.conf and make sure you have a line like:

Without really knowing what else has changed for a source install, that should allow 2.10 to behave just as it was 2.7 (and automatically assign spans as the drivers are loaded).

It would probably also be warranted to open a bug on issues.asterisk.org in the DAHLIN project.

I tried to load that yesterday to see if a bug report existed and if not to create one, but that link will not open for me I tried many times including right now. There is an ssl cert issue when it tries to load it.

As for the mod probe line that is great I know for a fact that isn’t there I’ll try that, thank you.

Well I got to try this last night and thank you very much this did get my span up and I can now see all my channels.

Sadly I still could not get dahdi 2.10 working though and I had to revert back to 2.7 again. Here is what I saw when I started up asterisk.

 == Registered application 'DAHDISendKeypadFacility'
  == Registered application 'DAHDISendCallreroutingFacility'
  == Parsing '/etc/asterisk/chan_dahdi.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
    -- Registered channel 1, ISDN PRI signalling
    -- Registered channel 2, ISDN PRI signalling
    -- Registered channel 3, ISDN PRI signalling
    -- Registered channel 4, ISDN PRI signalling
    -- Registered channel 5, ISDN PRI signalling
    -- Registered channel 6, ISDN PRI signalling
    -- Registered channel 7, ISDN PRI signalling
    -- Registered channel 8, ISDN PRI signalling
    -- Registered channel 9, ISDN PRI signalling
    -- Registered channel 10, ISDN PRI signalling
    -- Registered channel 11, ISDN PRI signalling
    -- Registered channel 12, ISDN PRI signalling
    -- Registered channel 13, ISDN PRI signalling
    -- Registered channel 14, ISDN PRI signalling
    -- Registered channel 15, ISDN PRI signalling
    -- Registered channel 16, ISDN PRI signalling
    -- Registered channel 17, ISDN PRI signalling
    -- Registered channel 18, ISDN PRI signalling
    -- Registered channel 19, ISDN PRI signalling
    -- Registered channel 20, ISDN PRI signalling
    -- Registered channel 21, ISDN PRI signalling
    -- Registered channel 22, ISDN PRI signalling
    -- Registered channel 23, ISDN PRI signalling
    -- Automatically generated pseudo channel
[Oct  7 18:06:41] WARNING[4647]: chan_dahdi.c:18977 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23.
[Oct  7 18:06:41] WARNING[4647]: chan_dahdi.c:18977 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Oct  7 18:06:41] WARNING[4647]: chan_dahdi.c:18977 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35.
[Oct  7 18:06:41] WARNING[4647]: chan_dahdi.c:18977 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Oct  7 18:06:41] WARNING[4647]: chan_dahdi.c:18977 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47.
[Oct  7 18:06:41] ERROR[4647]: chan_dahdi.c:14664 dahdi_pri_error: PRI Span: ? Write to 46 failed: Invalid argument
[Oct  7 18:06:41] ERROR[4647]: chan_dahdi.c:14664 dahdi_pri_error: PRI Span: ? Short write: 0/5 (Invalid argument)
  == Starting D-Channel on span 1
  == Registered channel type 'DAHDI' (DAHDI Telephony Driver w/PRI & SS7 & MFC/R2)
  == Registered application 'DAHDIAcceptR2Call'
  == Manager registered action DAHDITransfer
  == Manager registered action DAHDIHangup
  == Manager registered action DAHDIDialOffhook
  == Manager registered action DAHDIDNDon
  == Manager registered action DAHDIDNDoff
  == Manager registered action DAHDIShowChannels
  == Manager registered action DAHDIRestart
  == Manager registered action PRIShowSpans
 chan_dahdi.so => (DAHDI Telephony Driver w/PRI & SS7 & MFC/R2)
 
..... ALL OTHER MODULES LOAD .....
 
[Oct  7 18:06:46] ERROR[4702]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 46 failed: Invalid argument
[Oct  7 18:06:46] ERROR[4702]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:06:47] ERROR[4702]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 46 failed: Invalid argument
[Oct  7 18:06:47] ERROR[4702]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:06:48] ERROR[4702]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 46 failed: Invalid argument
[Oct  7 18:06:48] ERROR[4702]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)

then it just does this infinity till asterisk crashes and restarts. While this is happening I can so dahdi show status and show channels and everything looks fine. Can’t use dahdi though, aka no in/out calls using the DAHDI channel.

tachyon*CLI> dahdi show status
Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
Digium Wildcard TE110P T1/E1 Card 0      OK      248    0      0      ESF B8ZS          0 db (CSU)/0-133 feet (DSX-1)
[Oct  7 18:33:17] ERROR[4339]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 47 failed: Invalid argument
[Oct  7 18:33:17] ERROR[4339]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
tachyon*CLI> dahdi show channels
   Chan Extension       Context         Language   MOH Interpret        Blocked    State      Description                    
 pseudo                 default                    default                         In Service                                
      1                 incoming                   default                         In Service                                
      2                 incoming                   default                         In Service                                
      3                 incoming                   default                         In Service                                
      4                 incoming                   default                         In Service                                
      5                 incoming                   default                         In Service                                
      6                 incoming                   default                         In Service                                
      7                 incoming                   default                         In Service                                
      8                 incoming                   default                         In Service                                
      9                 incoming                   default                         In Service                                
     10                 incoming                   default                         In Service                                
     11                 incoming                   default                         In Service                                
     12                 incoming                   default                         In Service                                
     13                 incoming                   default                         In Service                                
     14                 incoming                   default                         In Service                                
     15                 incoming                   default                         In Service                                
     16                 incoming                   default                         In Service                                
     17                 incoming                   default                         In Service                                
     18                 incoming                   default                         In Service                                
     19                 incoming                   default                         In Service                                
     20                 incoming                   default                         In Service                                
     21                 incoming                   default                         In Service                                
     22                 incoming                   default                         In Service                                
     23                 incoming                   default                         In Service                                
[Oct  7 18:36:55] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:36:55] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:36:57] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:36:57] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:36:58] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:36:58] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:36:59] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:36:59] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:37:00] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:37:00] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:37:02] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:37:02] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:37:03] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:37:03] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:37:04] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:37:04] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)
[Oct  7 18:37:05] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Write to 43 failed: Invalid argument
[Oct  7 18:37:05] ERROR[4470]: chan_dahdi.c:14661 dahdi_pri_error: PRI Span: 1 Short write: 0/5 (Invalid argument)

I’m guessing you see these errors when running on Linux kernel version 3.16?

If so, you’ll also need to update DAHDI to version 2.10.0.1 which accounts for a change in the 3.16 kernel. The “Short write: 0/5 (Invalid argument)” looks like the issue fixed in dahdi: Fix failure to read / write on kernel 3.16+.

that would be it, thanks, I’ll upgrade and try it out right away!