[Freeswitch-users] freetdm dahdi permissions Debian - with debian packages installed.

Karl Schmidt karl at xtronics.com
Mon Jul 15 21:31:57 MSD 2013


OK - I found this:

2013-07-14 21:43:35.680082 [NOTICE] ftmod_zt.c:1451 Using DAHDI control device
2013-07-14 21:43:35.680099 [ERR] ftmod_zt.c:1460 Cannot open control device /dev/dahdi/ctl: 
Permission denied

So checking

/dev/dahdi# ll
total 0
crw-rw---T 1 root dialout 196,   1 2013-07-14 21:15 1
crw-rw---T 1 root dialout 196,   2 2013-07-14 21:15 2
crw-rw---T 1 root dialout 196,   3 2013-07-14 21:15 3
crw-rw---T 1 root dialout 196,   4 2013-07-14 21:15 4
crw-rw---T 1 root dialout 196, 254 2013-07-14 21:15 channel
crw-rw---T 1 root dialout 196,   0 2013-07-14 21:15 ctl
crw-rw---T 1 root dialout 196, 255 2013-07-14 21:15 pseudo
crw-rw---T 1 root dialout 196, 253 2013-07-14 21:15 timer
crw-rw---T 1 root dialout 196, 250 2013-07-14 21:15 transcode

So I added freeswitch to the dialout group

$ grep dialout /etc/group
dialout:x:20:asterisk,nut,freeswitch


But the error continues.

Doing
  $ su -s /bin/bash freeswitch
Then cat of 1 allows me to get data as freeswitch

Is freetdm running as a different user?

This is with a Digium, Inc. Wildcard AEX410 4-port analog card (PCI-Express) which works with asterisk.


[span zt FXS]
trunk_type => FXS
fxs-channel => 1
fxs-channel => 2
[span zt FXO]
trunk_type => FXO
fxo-channel => 3
fxo-channel => 4

Here is the 'interesting' bit from the log.

2013-07-14 21:43:35.679613 [DEBUG] ftdm_config.c:52 New mod directory: /usr/lib/freeswitch/mod
2013-07-14 21:43:35.679627 [DEBUG] ftdm_config.c:58 New config directory: /etc/freeswitch
2013-07-14 21:43:35.679709 [DEBUG] ftdm_sched.c:161 Initializing scheduling API
2013-07-14 21:43:35.679719 [DEBUG] ftdm_sched.c:258 Created schedule freetdm-master
2013-07-14 21:43:35.679727 [NOTICE] ftdm_sched.c:185 Launching main schedule thread
2013-07-14 21:43:35.679748 [DEBUG] ftdm_sched.c:194 Running schedule freetdm-master in the main 
schedule thread
2013-07-14 21:43:35.679765 [DEBUG] ftdm_config.c:80 Configuration file is /etc/freeswitch/modules.conf
2013-07-14 21:43:35.679831 [NOTICE] ftdm_io.c:6330 Modules configured: 1
2013-07-14 21:43:35.679890 [DEBUG] ftdm_config.c:80 Configuration file is /etc/freeswitch/freetdm.conf
2013-07-14 21:43:35.679902 [DEBUG] ftdm_io.c:5127 Reading FreeTDM configuration file
2013-07-14 21:43:35.679925 [DEBUG] ftdm_io.c:5366 Debug DTMF directory set to 
'/full/path/to/dtmf/directory'
2013-07-14 21:43:35.679936 [DEBUG] ftdm_io.c:5144 found config for span
2013-07-14 21:43:35.680082 [NOTICE] ftmod_zt.c:1451 Using DAHDI control device
2013-07-14 21:43:35.680099 [ERR] ftmod_zt.c:1460 Cannot open control device /dev/dahdi/ctl: 
Permission denied
2013-07-14 21:43:35.680105 [ERR] ftdm_io.c:5497 Error loading /usr/lib/freeswitch/mod/ftmod_zt.so
2013-07-14 21:43:35.680109 [ERR] ftdm_io.c:5537 Unloading /usr/lib/freeswitch/mod/ftmod_zt.so
2013-07-14 21:43:35.680157 [DEBUG] ftdm_dso.c:90 lib 0x7f258c024db0 was closed with success
2013-07-14 21:43:35.680165 [CRIT] ftdm_io.c:866 failure creating span, no such I/O type 'zt'
2013-07-14 21:43:35.680170 [CRIT] ftdm_io.c:5173 failure creating span of type zt
2013-07-14 21:43:35.680176 [DEBUG] ftdm_io.c:5144 found config for span
2013-07-14 21:43:35.680294 [NOTICE] ftmod_zt.c:1451 Using DAHDI control device
2013-07-14 21:43:35.680310 [ERR] ftmod_zt.c:1460 Cannot open control device /dev/dahdi/ctl: 
Permission denied
2013-07-14 21:43:35.680315 [ERR] ftdm_io.c:5497 Error loading /usr/lib/freeswitch/mod/ftmod_zt.so
2013-07-14 21:43:35.680319 [ERR] ftdm_io.c:5537 Unloading /usr/lib/freeswitch/mod/ftmod_zt.so
2013-07-14 21:43:35.680347 [DEBUG] ftdm_dso.c:90 lib 0x23626c0 was closed with success
2013-07-14 21:43:35.680353 [CRIT] ftdm_io.c:866 failure creating span, no such I/O type 'zt'
2013-07-14 21:43:35.680357 [CRIT] ftdm_io.c:5173 failure creating span of type zt
2013-07-14 21:43:35.680377 [INFO] ftdm_io.c:5421 Configured 0 channel(s)
2013-07-14 21:43:35.680384 [ERR] ftdm_io.c:6340 FreeTDM global configuration failed!
2013-07-14 21:43:35.680389 [DEBUG] ftdm_sched.c:224 Waiting for main schedule thread to finish
2013-07-14 21:43:35.779910 [NOTICE] ftdm_sched.c:154 Main scheduling thread going out ...
2013-07-14 21:43:35.780564 [CRIT] switch_loadable_module.c:1383 Error Loading module 
/usr/lib/freeswitch/mod/mod_freetdm.so
**Module load routine returned an error**





--------------------------------------------------------------------------------
Karl Schmidt                                  EMail Karl at xtronics.com
Transtronics, Inc.                              WEB http://secure.transtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434

Beware of 'do-good-ers': the greatest evil is always done in the name of 'doing good'. Kps


--------------------------------------------------------------------------------



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list