[Freeswitch-users] FIXED: Re: 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
Mon Jun 29 14:06:12 MSD 2015


For those who may be seeing similar, I do not yet know what changed
between Fedora 20 and Fedora 22 (Fedora 21 had some strangeness to it
with FreeSWITCH that I never had time to figure out) which caused
dahdi_echocan_oslec module to not be loaded automatically. I have not
yet figured out why this was. The compilation bugs and installation bugs
have been or are being fixed. I have a working system, except now the
echo cancellation which was a bit slack is now over zealous.

Thank you,
Trever

On 06/25/2015 07:47 PM, Trever L. Adams wrote:
> 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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150629/9dae2b89/attachment.html 
-------------- 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/20150629/9dae2b89/attachment.bin 


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