[Freeswitch-users] Installing OpenZap?
GillesToo
codecomplete at free.fr
Fri May 28 08:22:05 PDT 2010
Thanks Tom for the help, but I'm still getting an error when typing "reload
mod_openzap" in the Freeswitch console (Actually, two errors:
"ozmod_zt.c:Cannot open control device /dev/dahdi/ctl: Permission denied",
followed by "zap_io.c failure creating span, no such type 'zt'" which could
be a syntax error of mine in openzap.conf and/or openzap.conf.xml).
Here are the outputs:
============================================
# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV E/F Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV E/F
location=PCI Bus 03 Slot 01
basechan=1
totchans=4
irq=20
type=analog
port=1,FXO
port=2,none
port=3,none
port=4,none
============================================
# /etc/init.d/dahdi status
### Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)
1 FXO FXSKS (SWEC: MG2) RED
2 EMPTY
3 EMPTY
4 EMPTY
============================================
# cat /usr/local/freeswitch/conf/zt.conf
[defaults]
codec_ms => 20
wink_ms => 150
flash_ms => 750
echo_cancel_level => 64
rxgain => 0.0
txgain => 0.0
============================================
# cat /usr/local/freeswitch/conf/openzap.conf
[span zt FXO]
name => OpenZAP
#number => 1
fxo-channel => 1
============================================
# cat /usr/local/freeswitch/conf/autoload_configs/openzap.conf.xml
<configuration name="openzap.conf" description="OpenZAP Configuration">
<settings>
<!---->
<!---->
<!---->
</settings>
<pri_spans>
<!-- Log Levels: none, alert, crit, err, warning, notice, info, debug
-->
</pri_spans>
<!-- one entry here per openzap span -->
<analog_spans>
<!--span id="1"-->
<!--span id="zt"-->
<!---->
<!---->
<!---->
<!-- regex to stop dialing when it matches -->
<!---->
<!-- regex to stop dialing when it does not match -->
<!---->
</analog_spans>
</configuration>
============================================
# cat /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml
<configuration name="modules.conf" description="Modules">
<modules>
[...]
<load module="mod_openzap"/>
[...]
============================================
#fs_cli
freeswitch at internal> reload mod_openzap
-ERR unloading module [No such module!]
-ERR loading module [module load file routine returned an error]
freeswitch at internal> 2010-05-28 17:13:17.830127 [DEBUG] zap_config.c:56
Configuration file is /usr/local/freeswitch/conf/modules.conf.
2010-05-28 17:13:17.830127 [NOTICE] zap_io.c:3057 Modules configured: 1
2010-05-28 17:13:17.830127 [DEBUG] zap_config.c:56 Configuration file is
/usr/local/freeswitch/conf/openzap.conf.
2010-05-28 17:13:17.830127 [DEBUG] zap_io.c:2587 found config for span
2010-05-28 17:13:17.831145 [NOTICE] ozmod_zt.c:1185 Using DAHDI control
device
2010-05-28 17:13:17.831145 [ERR] ozmod_zt.c:1194 Cannot open control device
/dev/dahdi/ctl: Permission denied
2010-05-28 17:13:17.831145 [ERR] zap_io.c:2856 Error loading
/usr/local/freeswitch/mod/ozmod_zt.so
2010-05-28 17:13:17.831145 [ERR] zap_io.c:2901 Unloading
/usr/local/freeswitch/mod/ozmod_zt.so
2010-05-28 17:13:17.831145 [CRIT] zap_io.c:2610 failure creating span, no
such type 'zt'
2010-05-28 17:13:17.831145 [INFO] zap_io.c:2782 Configured 0 channel(s)
2010-05-28 17:13:17.831145 [ERR] zap_io.c:3065 No modules configured!
2010-05-28 17:13:17.831145 [ERR] mod_openzap.c:3331 Error loading OpenZAP
2010-05-28 17:13:17.831145 [CRIT] switch_loadable_module.c:882 Error Loading
module /usr/local/freeswitch/mod/mod_openzap.so
**Module load routine returned an error**
============================================
Has someone already seen this "/dev/dahdi/ctl: Permission denied" error?
Thank you.
--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Installing-OpenZap-tp5111050p5113544.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
More information about the FreeSWITCH-users
mailing list