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@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@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@microcomaustralia.com.au>
On 20 February 2010 16:57, Brian May <brian@microcomaustralia.com.au> wrote:
I think I have the config correct, and not confused FXO/FXS anywhere.
I was confused. The messages after the incoming call gave it away. 2010-02-20 20:42:52.339813 [ERR] ozmod_analog.c:798 Cannot get a RING_START event on a non-fxo channel, please check your config. 2010-02-20 20:42:52.339813 [WARNING] ozmod_analog.c:799 Why bother changing state on 3:1 from DOWN to DOWN 2010-02-20 20:42:53.189813 [INFO] ozmod_zt.c:640 Setting echo cancel to 64 taps for 3:1 2010-02-20 20:42:55.189813 [ERR] ozmod_analog.c:798 Cannot get a RING_START event on a non-fxo channel, please check your config. 2010-02-20 20:42:56.449813 [INFO] ozmod_zt.c:640 Setting echo cancel to 64 taps for 3:1 2010-02-20 20:42:58.239813 [ERR] ozmod_analog.c:798 Cannot get a RING_START event on a non-fxo channel, please check your config. 2010-02-20 20:42:59.499813 [INFO] ozmod_zt.c:640 Setting echo cancel to 64 taps for 3:1 2010-02-20 20:43:01.299813 [ERR] ozmod_analog.c:798 Cannot get a RING_START event on a non-fxo channel, please check your config. 2010-02-20 20:43:02.569813 [INFO] ozmod_zt.c:640 Setting echo cancel to 64 taps for 3:1 2010-02-20 20:43:04.379813 [ERR] ozmod_analog.c:798 Cannot get a RING_START event on a non-fxo channel, please check your config. 2010-02-20 20:43:05.659813 [INFO] ozmod_zt.c:640 Setting echo cancel to 64 taps for 3:1 It appears that a port listed as fxoks in zaptel.conf becomes fxs in openzap.conf, and a port listed as fxsks becomes fxo in openzap.conf - it would be nice if this were documented somewhere... Working configuration: voyage:/opt/freeswitch/conf# cat /etc/zaptel.conf # Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # It must be in the module loading order # Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1" (MASTER) fxoks=1 fxoks=2 fxsks=3 fxsks=4 # Global data loadzone = au defaultzone = au voyage:/opt/freeswitch/conf# vim openzap.conf voyage:/opt/freeswitch/conf# cat /etc/zaptel.conf # Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # It must be in the module loading order # Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1" (MASTER) fxoks=1 fxoks=2 fxsks=3 fxsks=4 # Global data loadzone = au defaultzone = au voyage:/opt/freeswitch/conf# cat openzap.conf [span zt FXS1] name => OpenZAP-FXS1 number => 1 fxs-channel => 1 [span zt FXS2] name => OpenZAP-FXS2 number => 2 fxs-channel => 2 [span zt FXO1] name => OpenZAP-FXO1 number => 3 fxo-channel => 3 [span zt FXO2] name => OpenZAP-FXO2 number => 4 fxo-channel => 4 -- Brian May <brian@microcomaustralia.com.au>
It appears that a port listed as fxoks in zaptel.conf becomes fxs in openzap.conf, and a port listed as fxsks becomes fxo in openzap.conf - it would be nice if this were documented somewhere...
I believe it is, with the specific error you mention, "Cannot get a RING_START event on a non-fxo channel". http://wiki.freeswitch.org/wiki/OpenZAP#Symptom:_.22Why_bother_changing_stat... If you don't think it is clear, please add more details to the wiki so that others will be able to more easily solve this problem when it happens. -- Russell Mosemann
On 20 February 2010 22:25, Russell Mosemann <Russell.Mosemann@cune.org> wrote:
I believe it is, with the specific error you mention, "Cannot get a RING_START event on a non-fxo channel".
That error was clear. I was able to solve the issue when I saw that, without having to look up the documentation in fact. Only I spent ages before I received this error, trying to debug the other ports with the phone lines connected. These ports didn't give any errors, except for stuff I can ignore. Based on the other responses I have got here, it appears other people were confused too. Lets see if I have got this correct: Ports 1 & 2 are FXS, but use FXO signalling. So, yes I do plug a phone into these. Ports 3 & 4 are FXO, but use FXS signalling. So I plug the phone line into these. I will update the wiki, but there is still one part I don't understand, see the example at the end here: <http://wiki.freeswitch.org/wiki/Openzap.conf.xml_Examples> I assume ports 1&2 (with 3-way and moh set) are the FXS ports that use the FXO signalling? i.e. the same numbering as what I have? Do I really need to set moh for every line in this file? Looking at the openzap part of the wiki, the only thing I see related is "I didn't understand why we have to swap the channel numbers for FXS and FXO." There is also a link to http://unixtoys.ca/wordpress/2008/09/freeswitch-and-tdm-hardware-pots-fxofxs... which looks like it would have helped but unfortunately the link appears to be broken. Am going to try and update these issues now. -- Brian May <brian@microcomaustralia.com.au>
Brian May wrote:
Ports 1 & 2 are FXS, but use FXO signalling. So, yes I do plug a phone into these. Ports 3 & 4 are FXO, but use FXS signalling. So I plug the phone line into these.
Maybe a better way to think about it is that Zaptel is looking at the remote end, because it is interested in what signals might be received. FS is looking at the local end, because that is what FS has to manage. If Zaptel is expecting the remote end to be FXO (office phone), then FS is managing an FXS (subscriber signaling). -- Russell Mosemann
Ports 1 and 2 are FXO which need a phone line. Try port 3 or 4. Also pastebin your zaptel.conf file. -MC Sent from my iPhone On Feb 19, 2010, at 9:57 PM, Brian May <brian@microcomaustralia.com.au> wrote:
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@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@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@microcomaustralia.com.au>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- users http://www.freeswitch.org
Try set loadzone and defaultzone for your country in zaptel.conf then do this: ztcfg -vv and zttol -vvv (see if status of your card is OK) Att Eng Eder de Souza On Sat, Feb 20, 2010 at 4:10 PM, Michael S Collins <msc@freeswitch.org>wrote:
Ports 1 and 2 are FXO which need a phone line. Try port 3 or 4. Also pastebin your zaptel.conf file.
-MC
Sent from my iPhone
On Feb 19, 2010, at 9:57 PM, Brian May <brian@microcomaustralia.com.au> wrote:
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@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@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@microcomaustralia.com.au>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Brian May
-
Eder Souza
-
Michael S Collins
-
Russell Mosemann