[Freeswitch-users] openzap TDM400 card
Brian May
brian at microcomaustralia.com.au
Fri Feb 19 21:57:21 PST 2010
Hello,
I think I have the config correct, and not confused FXO/FXS anywhere.
voyage:/opt/freeswitch/conf# ztcfg -vv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
Channel map:
Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)
4 channels to configure.
voyage:/opt/freeswitch/conf# cat openzap.conf
[span zt FXO1]
name => OpenZAP-FXO1
number => 1
fxo-channel => 1
[span zt FXO2]
name => OpenZAP-FXO2
number => 2
fxo-channel => 2
[span zt FXS1]
name => OpenZAP-FXS1
number => 3
fxs-channel => 3
[span zt FXS2]
name => OpenZAP-FXS2
number => 4
fxs-channel => 4
voyage:/opt/freeswitch/conf# cat autoload_configs/openzap.conf.xml
<configuration name="openzap.conf" description="OpenZAP Configuration">
<settings>
<param name="debug" value="0"/>
<!--<param name="hold-music" value="$${moh_uri}"/>-->
<!--<param name="enable-analog-option" value="call-swap"/>-->
<!--<param name="enable-analog-option" value="3-way"/>-->
</settings>
<!-- one entry here per openzap span -->
<analog_spans>
<span id="1">
<param name="tonegroup" value="au"/>
<param name="digit-timeout" value="2000"/>
<param name="max-digits" value="11"/>
<param name="dialplan" value="XML"/>
<param name="context" value="default"/>
<param name="enable-analog-option" value="3-way"/>
<!-- <param name="moh" value="$${base_dir}/sounds/Dardedisco.wav"/> -->
</span>
<span id="2">
<param name="tonegroup" value="au"/>
<param name="digit-timeout" value="2000"/>
<param name="max-digits" value="11"/>
<param name="dialplan" value="XML"/>
<param name="context" value="default"/>
<param name="enable-analog-option" value="3-way"/>
<!-- <param name="moh" value="$${base_dir}/sounds/Dardedisco.wav"/> -->
</span>
<span id="3">
<param name="tonegroup" value="au"/>
<param name="digit-timeout" value="2000"/>
<param name="max-digits" value="11"/>
<param name="dialplan" value="XML"/>
<param name="context" value="default"/>
</span>
<span id="4">
<param name="tonegroup" value="au"/>
<param name="digit-timeout" value="2000"/>
<param name="max-digits" value="11"/>
<param name="dialplan" value="XML"/>
<param name="context" value="default"/>
</span>
</analog_spans>
</configuration>
freeswitch at voyage> reload mod_openzap
2010-02-20 16:45:53.312813 [NOTICE] switch_loadable_module.c:464
Deleting Endpoint 'openzap'
2010-02-20 16:45:53.312813 [NOTICE] switch_loadable_module.c:545
Deleting Application 'disable_ec'
2010-02-20 16:45:53.312813 [NOTICE] switch_loadable_module.c:572
Deleting API Function 'oz'
2010-02-20 16:45:53.312813 [CONSOLE] switch_loadable_module.c:1277
Stopping: mod_openzap
2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:1:1 fd:36
2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:2:1 fd:40
2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:3:1 fd:41
2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:4:1 fd:42
2010-02-20 16:45:53.612813 [ERR] ozmod_analog.c:951 Failure Polling
event! [no matching descriptor]
2010-02-20 16:45:54.162813 [ERR] ozmod_analog.c:951 Failure Polling
event! [no matching descriptor]
2010-02-20 16:45:54.162813 [ERR] ozmod_analog.c:951 Failure Polling
event! [no matching descriptor]
2010-02-20 16:45:54.162813 [ERR] ozmod_analog.c:951 Failure Polling
event! [no matching descriptor]
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2694 Unloading
/opt/freeswitch/mod/ozmod_analog.so
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2679 Unloading IO zt
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2694 Unloading
/opt/freeswitch/mod/ozmod_zt.so
2010-02-20 16:45:54.322813 [CONSOLE] switch_loadable_module.c:1297
mod_openzap unloaded.
2010-02-20 16:45:54.322813 [NOTICE] zap_io.c:2778 Modules configured: 1
2010-02-20 16:45:54.322813 [NOTICE] ozmod_zt.c:1161 Using Zaptel control device
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2579 Loading IO from
/opt/freeswitch/mod/ozmod_zt.so [zt]
2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:556 Setting rxgain val to 0.000000
2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:565 Setting txgain val to 0.000000
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2379 auto-loaded 'zt'
2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails
on older zaptel but is harmless if you used ztcfg
[device /dev/zap/channel chan 1 fd 27 (Invalid argument)]
2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device
/dev/zap/channel channel 1 as OpenZAP device 1:1 fd:36
2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails
on older zaptel but is harmless if you used ztcfg
[device /dev/zap/channel chan 2 fd 27 (Invalid argument)]
2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device
/dev/zap/channel channel 2 as OpenZAP device 2:1 fd:40
2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails
on older zaptel but is harmless if you used ztcfg
[device /dev/zap/channel chan 3 fd 27 (Invalid argument)]
2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device
/dev/zap/channel channel 3 as OpenZAP device 3:1 fd:41
2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails
on older zaptel but is harmless if you used ztcfg
[device /dev/zap/channel chan 4 fd 27 (Invalid argument)]
2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device
/dev/zap/channel channel 4 as OpenZAP device 4:1 fd:42
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2502 Configured 4 channel(s)
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2596 Loading SIG from
/opt/freeswitch/mod/ozmod_analog.so
2010-02-20 16:45:54.322813 [INFO] zap_io.c:2712 auto-loaded 'analog'
2010-02-20 16:45:54.358813 [CONSOLE] switch_loadable_module.c:900
Successfully Loaded [mod_openzap]
2010-02-20 16:45:54.362813 [NOTICE] switch_loadable_module.c:144
Adding Endpoint 'openzap'
2010-02-20 16:45:54.362813 [NOTICE] switch_loadable_module.c:250
Adding Application 'disable_ec'
2010-02-20 16:45:54.362813 [NOTICE] switch_loadable_module.c:272
Adding API Function 'oz'
+OK module unloaded
+OK module loaded
freeswitch at voyage> oz list
+OK
span: 1 (FXO1)
type: analog
chan_count: 1
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options 3way
+OK
span: 2 (FXO2)
type: analog
chan_count: 1
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options 3way
+OK
span: 3 (FXS1)
type: analog
chan_count: 1
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options none
+OK
span: 4 (FXS2)
type: analog
chan_count: 1
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options none
Yet, when I lift the handset on port 1 or port 2 I don't get a dial tone :-(
Instead I get this message:
2010-02-20 16:52:26.332813 [INFO] ozmod_zt.c:640 Setting echo cancel
to 64 taps for 2:1
2010-02-20 16:52:26.332813 [ERR] zap_io.c:1599 I/O backend does not
support command 24!
Am I doing something wrong?
--
Brian May <brian at microcomaustralia.com.au>
More information about the FreeSWITCH-users
mailing list