[Freeswitch-users] 4.0.5 Linux Kernel, GCC 5.1.1, ftmod_zt and DAHDI 2.10.1 (Fedora 22) failing to work in previously working setup

Trever L. Adams trever at middleearth.sapphiresunday.org
Fri Jun 26 05:47:46 MSD 2015


My hardware is OpenVox. Newer kernels/dahdi have a dahdi_no_read/write
function set that returns ENOSYS.

This appears to confused FreeSWITCH which then says:

2015-06-25 19:42:56.390679 [DEBUG] ftdm_config.c:52 New mod directory:
/usr/local/freeswitch/lib/freeswitch/mod
2015-06-25 19:42:56.390679 [DEBUG] ftdm_config.c:58 New config
directory: /usr/local/freeswitch/etc/freeswitch
2015-06-25 19:42:56.390679 [INFO] switch_time.c:1411 Timezone reloaded
530 definitions
2015-06-25 19:42:56.390679 [DEBUG] ftdm_sched.c:161 Initializing
scheduling API
2015-06-25 19:42:56.390679 [DEBUG] ftdm_sched.c:265 Created schedule
freetdm-master
2015-06-25 19:42:56.390679 [NOTICE] ftdm_sched.c:192 Launching main
schedule thread
2015-06-25 19:42:56.390679 [DEBUG] ftdm_sched.c:201 Running schedule
freetdm-master in the main schedule thread
2015-06-25 19:42:56.390679 [DEBUG] ftdm_config.c:80 Configuration file
is /usr/local/freeswitch/etc/freeswitch/modules.conf
2015-06-25 19:42:56.390679 [NOTICE] ftdm_io.c:6387 Modules configured: 1
2015-06-25 19:42:56.390679 [DEBUG] ftdm_config.c:80 Configuration file
is /usr/local/freeswitch/etc/freeswitch/freetdm.conf
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5148 Reading FreeTDM
configuration file
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5165 found config for span
2015-06-25 19:42:56.390679 [NOTICE] ftmod_zt.c:1504 Using DAHDI control
device
2015-06-25 19:42:56.390679 [INFO] ftdm_io.c:5548 Loading IO from
/usr/local/freeswitch/lib/freeswitch/mod/ftmod_zt.so [zt]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_config.c:80 Configuration file
is /usr/local/freeswitch/etc/freeswitch/zt.conf
2015-06-25 19:42:56.390679 [INFO] ftmod_zt.c:601 Setting rxgain val to
0.000000
2015-06-25 19:42:56.390679 [INFO] ftmod_zt.c:609 Setting txgain val to
0.000000
2015-06-25 19:42:56.390679 [INFO] ftdm_io.c:5512 Auto-loaded I/O module 'zt'
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5186 created span 1
(FXS1to6) of type zt
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 1 [rxgain]=[0.00]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 1 [fxs-channel]=[1-6]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5255 setting trunk type to
'FXS' start(KEWL), mode(NET)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 1 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 2 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 3 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 4 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 5 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 6 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftdm_io.c:5081 1:Failed to configure span
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 1
[analog-start-type]=[kewl]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5230 changing start type to
'KEWL'
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5165 found config for span
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5186 created span 2 (FXO1)
of type zt
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 2 [name]=[Adams
Family]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 2
[number]=[435XXXXXXX]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 2 [fxo-channel]=[7]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5239 setting trunk type to
'FXO' start(KEWL), mode(CPE)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 7 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftdm_io.c:5081 2:Failed to configure span
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5165 found config for span
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5186 created span 3 (FXO2)
of type zt
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 3 [name]=[Adams
Family]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 3
[number]=[435XXXXXXX]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 3 [rxgain]=[0.00]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 3 [txgain]=[0.00]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 3 [fxo-channel]=[8]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5239 setting trunk type to
'FXO' start(KEWL), mode(CPE)
2015-06-25 19:42:56.390679 [ERR] ftmod_zt.c:293 failure configuring
device /dev/dahdi/channel chan 8 fd 40 (No such device or address)
2015-06-25 19:42:56.390679 [ERR] ftdm_io.c:5081 3:Failed to configure span
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5204 span 3
[analog-start-type]=[kewl]
2015-06-25 19:42:56.390679 [DEBUG] ftdm_io.c:5230 changing start type to
'KEWL'
2015-06-25 19:42:56.390679 [INFO] ftdm_io.c:5450 Configured 0 channel(s)
2015-06-25 19:42:56.390679 [ERR] ftdm_io.c:6397 FreeTDM global
configuration failed!

I did have to move ftmod_* from /usr/local/freeswitch/mod to
/usr/local/freeswitch/libs/freeswitch/mod before I got this far.
Unfortunately, I need to be using newer versions of Fedora. 21 won't
compile it properly and it goes off into lah lah land the first time any
call hangs up. Fedora 22, I have to change __FUNCTION__ to __func__ in
some of the freetdm files to get it to compile (GCC 5.1.1 with pedantic
says ISO C doesn't allow predefined __FUNCTION__ and the manual suggests
the change made).

Permissions on /dev/dahdi and /dev/dahdi/* seem to be correct. I moved
all the configuration files as needed according to the --prefix changes
made.

I cannot find anything online about this. I may just be searching for
the wrong terms. Anyone know how to fix this at this time? I would
greatly appreciate any help as I have been away from the computing world
for a few months.

Trever

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150625/7713b90c/attachment.bin 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list