[Home]

Summary:DAHLIN-00348: chan_dahdi.c: Read failed with -1: Invalid argument
Reporter:bryan hunt (binarytemple)Labels:
Date Opened:2015-07-10 19:14:37Date Closed:2015-07-11 05:05:36
Priority:MajorRegression?
Status:Closed/CompleteComponents:
Versions:2.5.1 Frequency of
Occurrence
Related
Issues:
Environment:Linux dave 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 14.04.2 LTS It actually affects dahdi 2.5.0.1 but that option wasn't in the drop-down list. I got that info from dmesg [ 5617.492309] dahdi: Version: 2.5.0.1 [ 5617.502407] Freshmaker version: b0 [ 5617.503030] Freshmaker passed register test [ 5618.195398] Module 0: Installed -- AUTO FXO (FCC mode) [ 5619.387942] Module 1: Installed -- AUTO FXS/DPO [ 5620.420668] DC-DC cal has a surprising direct 107 of 0x00! [ 5620.438821] Module 2: Installed -- AUTO FXS/DPO [ 5621.628056] Module 3: Installed -- AUTO FXS/DPO [ 5621.629470] Found a Wildcard TDM: Wildcard TDM400P REV E/F (4 modules)Attachments:
Description:[Jul 11 00:27:14] Asterisk 13.4.0 built by root @ dave on a x86_64 running Linux on 2015-07-10 19:05:22 UTC
[Jul 11 00:27:14] NOTICE[2561] cdr.c: CDR simple logging enabled.
[Jul 11 00:27:14] NOTICE[2561] loader.c: 239 modules will be loaded.
[Jul 11 00:27:15] WARNING[2561] loader.c: Error loading module 'res_monitor.so': /usr/lib/asterisk/modules/res_monitor.so: undefined symbol: __ast_beep_stop
[Jul 11 00:27:16] NOTICE[2561] res_odbc.c: res_odbc loaded.
[Jul 11 00:27:16] WARNING[2561] res_phoneprov.c: Unable to find a valid server address or name.
[Jul 11 00:27:16] ERROR[2561] ari/config.c: No configured users for ARI
[Jul 11 00:27:16] NOTICE[2561] res_config_ldap.c: No directory user found, anonymous binding as default.
[Jul 11 00:27:16] ERROR[2561] res_config_ldap.c: No directory URL or host found.
[Jul 11 00:27:16] ERROR[2561] res_config_ldap.c: Cannot load LDAP RealTime driver.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Ignoring any changes to 'userbase' (on reload) at line 13.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Ignoring any changes to 'vmsecret' (on reload) at line 21.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Ignoring any changes to 'hassip' (on reload) at line 25.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Ignoring any changes to 'hasiax' (on reload) at line 29.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Ignoring any changes to 'hasagent' (on reload) at line 33.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Ignoring any changes to 'hasmanager' (on reload) at line 41.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Ignoring any changes to 'localextenlength' (on reload) at line 54.
[Jul 11 00:27:16] WARNING[2561] chan_dahdi.c: Detected alarm on channel 1: Red Alarm
[Jul 11 00:27:16] NOTICE[2561] chan_skinny.c: Configuring skinny from skinny.conf
[Jul 11 00:27:17] NOTICE[2561] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[Jul 11 00:27:17] NOTICE[2561] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Jul 11 00:27:17] WARNING[2561] pbx_spool.c: Unable to create queue directory /var/spool/asterisk/outgoing -- outgoing spool disabled
[Jul 11 00:27:21] WARNING[2604] chan_dahdi.c: Read failed with -1: Invalid argument
Comments:By: bryan hunt (binarytemple) 2015-07-11 04:47:02.630-0500

Compiled from git, installed versions.

DAHDI Tools Version - 2.10.2
DAHDI Version: 2.5.0.1

Now - Checked out dahdi-linux version v2.10.0.1 - going to see if that works.

By: bryan hunt (binarytemple) 2015-07-11 05:05:36.058-0500

dahdi kernel module from ubuntu install (groan) was still loaded. Took latest from git, and deleted those old modules:

root@dave:~# rm -rf /lib/modules/3.16.0-30-generic/updates/dkms
root@dave:~# rm -rf /lib/modules/3.16.0-43-generic/updates/dkms

and that fixed it

root@dave:~# dahdi_cfg -vv
DAHDI Tools Version - 2.10.2

DAHDI Version: 2.10.1-12-gd5f13c5
Echo Canceller(s): MG2
Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2