Try set <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">loadzone and defaultzone for your country in zaptel.conf </span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">then do this:</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">ztcfg -vv</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">and</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">zttol -vvv (see if status of your card is OK)</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Att</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Eng Eder de Souza</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font><br><div class="gmail_quote">On Sat, Feb 20, 2010 at 4:10 PM, Michael S Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Ports 1 and 2 are FXO which need a phone line. Try port 3 or 4. Also<br>
pastebin your zaptel.conf file.<br>
<br>
-MC<br>
<br>
Sent from my iPhone<br>
<br>
On Feb 19, 2010, at 9:57 PM, Brian May<br>
<div><div></div><div class="h5"><<a href="mailto:brian@microcomaustralia.com.au">brian@microcomaustralia.com.au</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I think I have the config correct, and not confused FXO/FXS anywhere.<br>
><br>
> voyage:/opt/freeswitch/conf# ztcfg -vv<br>
><br>
> Zaptel Version: 1.4.11<br>
> Echo Canceller: MG2<br>
> Configuration<br>
> ======================<br>
><br>
><br>
> Channel map:<br>
><br>
> Channel 01: FXO Kewlstart (Default) (Slaves: 01)<br>
> Channel 02: FXO Kewlstart (Default) (Slaves: 02)<br>
> Channel 03: FXS Kewlstart (Default) (Slaves: 03)<br>
> Channel 04: FXS Kewlstart (Default) (Slaves: 04)<br>
><br>
> 4 channels to configure.<br>
><br>
> voyage:/opt/freeswitch/conf# cat openzap.conf<br>
> [span zt FXO1]<br>
> name => OpenZAP-FXO1<br>
> number => 1<br>
> fxo-channel => 1<br>
><br>
> [span zt FXO2]<br>
> name => OpenZAP-FXO2<br>
> number => 2<br>
> fxo-channel => 2<br>
><br>
> [span zt FXS1]<br>
> name => OpenZAP-FXS1<br>
> number => 3<br>
> fxs-channel => 3<br>
><br>
> [span zt FXS2]<br>
> name => OpenZAP-FXS2<br>
> number => 4<br>
> fxs-channel => 4<br>
><br>
> voyage:/opt/freeswitch/conf# cat autoload_configs/openzap.conf.xml<br>
> <configuration name="openzap.conf" description="OpenZAP<br>
> Configuration"><br>
> <settings><br>
> <param name="debug" value="0"/><br>
> <!--<param name="hold-music" value="$${moh_uri}"/>--><br>
> <!--<param name="enable-analog-option" value="call-swap"/>--><br>
> <!--<param name="enable-analog-option" value="3-way"/>--><br>
> </settings><br>
> <!-- one entry here per openzap span --><br>
> <analog_spans><br>
> <span id="1"><br>
> <param name="tonegroup" value="au"/><br>
> <param name="digit-timeout" value="2000"/><br>
> <param name="max-digits" value="11"/><br>
> <param name="dialplan" value="XML"/><br>
> <param name="context" value="default"/><br>
> <param name="enable-analog-option" value="3-way"/><br>
> <!-- <param name="moh" value="$${base_dir}/sounds/<br>
> Dardedisco.wav"/> --><br>
> </span><br>
> <span id="2"><br>
> <param name="tonegroup" value="au"/><br>
> <param name="digit-timeout" value="2000"/><br>
> <param name="max-digits" value="11"/><br>
> <param name="dialplan" value="XML"/><br>
> <param name="context" value="default"/><br>
> <param name="enable-analog-option" value="3-way"/><br>
> <!-- <param name="moh" value="$${base_dir}/sounds/<br>
> Dardedisco.wav"/> --><br>
> </span><br>
> <span id="3"><br>
> <param name="tonegroup" value="au"/><br>
> <param name="digit-timeout" value="2000"/><br>
> <param name="max-digits" value="11"/><br>
> <param name="dialplan" value="XML"/><br>
> <param name="context" value="default"/><br>
> </span><br>
> <span id="4"><br>
> <param name="tonegroup" value="au"/><br>
> <param name="digit-timeout" value="2000"/><br>
> <param name="max-digits" value="11"/><br>
> <param name="dialplan" value="XML"/><br>
> <param name="context" value="default"/><br>
> </span><br>
> </analog_spans><br>
> </configuration><br>
><br>
><br>
> freeswitch@voyage> reload mod_openzap<br>
> 2010-02-20 16:45:53.312813 [NOTICE] switch_loadable_module.c:464<br>
> Deleting Endpoint 'openzap'<br>
> 2010-02-20 16:45:53.312813 [NOTICE] switch_loadable_module.c:545<br>
> Deleting Application 'disable_ec'<br>
> 2010-02-20 16:45:53.312813 [NOTICE] switch_loadable_module.c:572<br>
> Deleting API Function 'oz'<br>
> 2010-02-20 16:45:53.312813 [CONSOLE] switch_loadable_module.c:1277<br>
> Stopping: mod_openzap<br>
> 2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:<br>
> 1:1 fd:36<br>
> 2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:<br>
> 2:1 fd:40<br>
> 2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:<br>
> 3:1 fd:41<br>
> 2010-02-20 16:45:53.312813 [INFO] zap_io.c:269 Closing channel zt:<br>
> 4:1 fd:42<br>
> 2010-02-20 16:45:53.612813 [ERR] ozmod_analog.c:951 Failure Polling<br>
> event! [no matching descriptor]<br>
> 2010-02-20 16:45:54.162813 [ERR] ozmod_analog.c:951 Failure Polling<br>
> event! [no matching descriptor]<br>
> 2010-02-20 16:45:54.162813 [ERR] ozmod_analog.c:951 Failure Polling<br>
> event! [no matching descriptor]<br>
> 2010-02-20 16:45:54.162813 [ERR] ozmod_analog.c:951 Failure Polling<br>
> event! [no matching descriptor]<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2694 Unloading<br>
> /opt/freeswitch/mod/ozmod_analog.so<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2679 Unloading IO zt<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2694 Unloading<br>
> /opt/freeswitch/mod/ozmod_zt.so<br>
> 2010-02-20 16:45:54.322813 [CONSOLE] switch_loadable_module.c:1297<br>
> mod_openzap unloaded.<br>
> 2010-02-20 16:45:54.322813 [NOTICE] zap_io.c:2778 Modules<br>
> configured: 1<br>
> 2010-02-20 16:45:54.322813 [NOTICE] ozmod_zt.c:1161 Using Zaptel<br>
> control device<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2579 Loading IO from<br>
> /opt/freeswitch/mod/ozmod_zt.so [zt]<br>
> 2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:556 Setting rxgain val<br>
> to 0.000000<br>
> 2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:565 Setting txgain val<br>
> to 0.000000<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2379 auto-loaded 'zt'<br>
> 2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails<br>
> on older zaptel but is harmless if you used ztcfg<br>
> [device /dev/zap/channel chan 1 fd 27 (Invalid argument)]<br>
> 2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device<br>
> /dev/zap/channel channel 1 as OpenZAP device 1:1 fd:36<br>
> 2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails<br>
> on older zaptel but is harmless if you used ztcfg<br>
> [device /dev/zap/channel chan 2 fd 27 (Invalid argument)]<br>
> 2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device<br>
> /dev/zap/channel channel 2 as OpenZAP device 2:1 fd:40<br>
> 2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails<br>
> on older zaptel but is harmless if you used ztcfg<br>
> [device /dev/zap/channel chan 3 fd 27 (Invalid argument)]<br>
> 2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device<br>
> /dev/zap/channel channel 3 as OpenZAP device 3:1 fd:41<br>
> 2010-02-20 16:45:54.322813 [WARNING] ozmod_zt.c:333 this ioctl fails<br>
> on older zaptel but is harmless if you used ztcfg<br>
> [device /dev/zap/channel chan 4 fd 27 (Invalid argument)]<br>
> 2010-02-20 16:45:54.322813 [INFO] ozmod_zt.c:385 configuring device<br>
> /dev/zap/channel channel 4 as OpenZAP device 4:1 fd:42<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2502 Configured 4 channel<br>
> (s)<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2596 Loading SIG from<br>
> /opt/freeswitch/mod/ozmod_analog.so<br>
> 2010-02-20 16:45:54.322813 [INFO] zap_io.c:2712 auto-loaded 'analog'<br>
> 2010-02-20 16:45:54.358813 [CONSOLE] switch_loadable_module.c:900<br>
> Successfully Loaded [mod_openzap]<br>
> 2010-02-20 16:45:54.362813 [NOTICE] switch_loadable_module.c:144<br>
> Adding Endpoint 'openzap'<br>
> 2010-02-20 16:45:54.362813 [NOTICE] switch_loadable_module.c:250<br>
> Adding Application 'disable_ec'<br>
> 2010-02-20 16:45:54.362813 [NOTICE] switch_loadable_module.c:272<br>
> Adding API Function 'oz'<br>
><br>
> +OK module unloaded<br>
> +OK module loaded<br>
><br>
> freeswitch@voyage> oz list<br>
><br>
> +OK<br>
> span: 1 (FXO1)<br>
> type: analog<br>
> chan_count: 1<br>
> dialplan: XML<br>
> context: default<br>
> dial_regex:<br>
> fail_dial_regex:<br>
> hold_music:<br>
> analog_options 3way<br>
> +OK<br>
> span: 2 (FXO2)<br>
> type: analog<br>
> chan_count: 1<br>
> dialplan: XML<br>
> context: default<br>
> dial_regex:<br>
> fail_dial_regex:<br>
> hold_music:<br>
> analog_options 3way<br>
> +OK<br>
> span: 3 (FXS1)<br>
> type: analog<br>
> chan_count: 1<br>
> dialplan: XML<br>
> context: default<br>
> dial_regex:<br>
> fail_dial_regex:<br>
> hold_music:<br>
> analog_options none<br>
> +OK<br>
> span: 4 (FXS2)<br>
> type: analog<br>
> chan_count: 1<br>
> dialplan: XML<br>
> context: default<br>
> dial_regex:<br>
> fail_dial_regex:<br>
> hold_music:<br>
> analog_options none<br>
><br>
><br>
> Yet, when I lift the handset on port 1 or port 2 I don't get a dial<br>
> tone :-(<br>
><br>
> Instead I get this message:<br>
><br>
> 2010-02-20 16:52:26.332813 [INFO] ozmod_zt.c:640 Setting echo cancel<br>
> to 64 taps for 2:1<br>
> 2010-02-20 16:52:26.332813 [ERR] zap_io.c:1599 I/O backend does not<br>
> support command 24!<br>
><br>
> Am I doing something wrong?<br>
> --<br>
> Brian May <<a href="mailto:brian@microcomaustralia.com.au">brian@microcomaustralia.com.au</a>><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-</a><br>
> users<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>