Problem solved. It&#39;s due to the lack of definition in tones.conf. In case anyone else need it, here&#39;s the tone plan for Singapore.<br><br>[sg]<br>generate-dial =&gt; v=-7;%(1000,0,425)<br>detect-dial =&gt; 425<br><br>
generate-ring =&gt; v=-7;%(2000,4000,425)<br>detect-ring =&gt; 425<br><br>generate-busy =&gt; v=-7;%(750,750,425)<br>detect-busy =&gt; 425<br><br>generate-attn =&gt; v=0;%(100,100,1400,2060,2450,2600)<br>detect-attn =&gt; 1400,2060,2450,2600<br>
<br>generate-callwaiting-sas =&gt; v=0;%(300,0,440)<br>detect-callwaiting-sas =&gt; 440<br><br>generate-callwaiting-cas =&gt; v=0;%(80,0,2750,2130)<br>detect-callwaiting-cas =&gt; 2750,2130<br><br>detect-fail1 =&gt; 913.8<br>
detect-fail2 =&gt; 1370.6<br>detect-fail3 =&gt; 1776.7<br><br><br><br><div class="gmail_quote">On Thu, Dec 3, 2009 at 5:29 PM, Jingwei Yang <span dir="ltr">&lt;<a href="mailto:jingwei.yang@gmail.com">jingwei.yang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello All,<br><br>I have a Digium TDM400P pci card with two FXO ports installed on my linux box. I&#39;ve connected an external telephone line to the first FXO port. But I can&#39;t either make outgoing calls or receive incoming ones. Here are my setups, please let me know where goes wrong.<br>

<b><br>/etc/zaptel.conf</b><br><br><div style="margin-left: 40px;">loadzone = sg<br>defaultzone=sg<br>fxsks=1,2<br></div><br><b>/usr/local/freeswitch/conf/zt.conf</b> remains unchanged<br><br><div style="margin-left: 40px;">

[defaults]<br>codec_ms =&gt; 20<br>wink_ms =&gt; 150<br>flash_ms =&gt; 750<br>echo_cancel_level =&gt; 64<br>rxgain =&gt; 0.0<br>txgain =&gt; 0.0<br></div><br><b>/usr/local/freeswitch/conf/openzap.conf</b><br><br><div style="margin-left: 40px;">

[span zt]<br>name =&gt; OpenZAP<br>number =&gt; 1<br>fxo-channel =&gt; 1<br><br>[span zt]<br>name =&gt; OpenZAP<br>number =&gt; 2<br>fxo-channel =&gt; 2<br></div><br><b>/usr/local/freeswitch/conf/autoload_configs/openzap.conf.xml</b><br>

<br><div style="margin-left: 40px;">&lt;configuration name=&quot;openzap.conf&quot; description=&quot;OpenZAP Configuration&quot;&gt;<br>  &lt;settings&gt;<br>    &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;<br>

  &lt;/settings&gt;<br>  &lt;!-- one entry here per openzap span --&gt;<br>  &lt;analog_spans&gt;<br>    &lt;span id=&quot;1&quot;&gt;<br>      &lt;param name=&quot;tonegroup&quot; value=&quot;sg&quot;/&gt;<br>      &lt;param name=&quot;digit-timeout&quot; value=&quot;2000&quot;/&gt;<br>

      &lt;param name=&quot;max-digits&quot; value=&quot;11&quot;/&gt;<br>      &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>      &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>
    &lt;/span&gt;<br>
    &lt;span id=&quot;2&quot;&gt;<br>      &lt;param name=&quot;tonegroup&quot; value=&quot;sg&quot;/&gt;<br>      &lt;param name=&quot;digit-timeout&quot; value=&quot;2000&quot;/&gt;<br>      &lt;param name=&quot;max-digits&quot; value=&quot;1&quot;/&gt;<br>

      &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>      &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>    &lt;/span&gt;<br>  &lt;/analog_spans&gt;<br>&lt;/configuration&gt;<br>

<br></div>I defined an extension in dialplan/default.xml to receive bridge incoming calls to my skype instance. Frankly speaking, I&#39;m not sure whether this definition is correct. How should I define the expression? When I dial the telephone number, the FS console has no response and I hear nother but busy tones.<br>

<br>    &lt;extension name=&quot;incoming_fxo&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1)$&quot;&gt;<br>        &lt;action application=&quot;bridge&quot; data=&quot;skypiax/ANY/my_skype_account&quot;/&gt;<br>

      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br>For outgoing calls, I tried something like this: originate openzap/1/1/xxxxxxxx &amp;echo, while &quot;xxxxxxxx&quot; is my handphone number. Again, my handphone has no response. Hopefully I&#39;ve explained my situation clearly. Please kindly enlighten where the problem might be.<br>

<br>Thanks,<br>-Jingwei<br><br>p.s. here is the outgoing log trace for your reference.<br><br><br>freeswitch@localhost.localdomain&gt; originate openzap/1/1/xxxxxxxx &amp;echo<br>2009-12-03 17:21:04.664276 [INFO] ozmod_zt.c:636 Setting echo cancel to 64 taps for 1:1<br>

2009-12-03 17:21:04.664276 [DEBUG] mod_openzap.c:366 Set codec PCMU 20ms<br>2009-12-03 17:21:04.665278 [DEBUG] mod_openzap.c:1191 Connect outbound channel OpenZAP/1:1/xxxxxxxx<br>2009-12-03 17:21:04.665278 [NOTICE] switch_channel.c:613 New Channel OpenZAP/1:1/xxxxxxxx [6f843194-18ce-4525-862f-f5f4e96db5eb]<br>

2009-12-03 17:21:04.665278 [DEBUG] mod_openzap.c:1203 (OpenZAP/1:1/xxxxxxxx) State Change CS_NEW -&gt; CS_INIT<br>2009-12-03 17:21:04.665278 [DEBUG] switch_core_session.c:999 Send signal OpenZAP/1:1/xxxxxxxx [BREAK]<br>2009-12-03 17:21:04.665278 [DEBUG] ozmod_analog.c:59 Changing state on 1:1 from DOWN to DIALING<br>

2009-12-03 17:21:04.665278 [DEBUG] ozmod_analog.c:279 ANALOG CHANNEL thread starting.<br>2009-12-03 17:21:04.665278 [INFO] ozmod_zt.c:636 Setting echo cancel to 64 taps for 1:1<br>2009-12-03 17:21:04.665278 [DEBUG] ozmod_analog.c:450 Executing state handler on 1:1 for DIALING<br>

2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:314 (OpenZAP/1:1/xxxxxxxx) Running State Change CS_INIT<br>2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:338 (OpenZAP/1:1/xxxxxxxx) State INIT<br>

2009-12-03 17:21:04.665278 [DEBUG] mod_openzap.c:390 (OpenZAP/1:1/xxxxxxxx) State Change CS_INIT -&gt; CS_ROUTING<br>2009-12-03 17:21:04.665278 [DEBUG] switch_core_session.c:999 Send signal OpenZAP/1:1/xxxxxxxx [BREAK]<br>

2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:338 (OpenZAP/1:1/xxxxxxxx) State INIT going to sleep<br>2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:314 (OpenZAP/1:1/xxxxxxxx) Running State Change CS_ROUTING<br>

2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:341 (OpenZAP/1:1/xxxxxxxx) State ROUTING<br>2009-12-03 17:21:04.665278 [DEBUG] mod_openzap.c:413 OpenZAP/1:1/xxxxxxxx CHANNEL ROUTING<br>2009-12-03 17:21:04.665278 [DEBUG] switch_ivr_originate.c:66 (OpenZAP/1:1/xxxxxxxx) State Change CS_ROUTING -&gt; CS_CONSUME_MEDIA<br>

2009-12-03 17:21:04.665278 [DEBUG] switch_core_session.c:999 Send signal OpenZAP/1:1/xxxxxxxx [BREAK]<br>2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:341 (OpenZAP/1:1/xxxxxxxx) State ROUTING going to sleep<br>

2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:314 (OpenZAP/1:1/xxxxxxxx) Running State Change CS_CONSUME_MEDIA<br>2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:360 (OpenZAP/1:1/xxxxxxxx) State CONSUME_MEDIA<br>

2009-12-03 17:21:04.665278 [DEBUG] switch_core_state_machine.c:360 (OpenZAP/1:1/xxxxxxxx) State CONSUME_MEDIA going to sleep<br>2009-12-03 17:21:34.114940 [DEBUG] skypiax_protocol.c:141 rev 15765M[(nil)|37     ][DEBUG_SKYPE  141  ][skypiax8  ][-1, 0, 0] READING: |||USER amanda8884 PHONE_HOME |||<br>

2009-12-03 17:21:34.114940 [DEBUG] skypiax_protocol.c:141 rev 15765M[(nil)|37     ][DEBUG_SKYPE  141  ][skypiax8  ][-1, 0, 0] READING: |||USER amanda8884 PHONE_OFFICE |||<br>2009-12-03 17:21:34.114940 [DEBUG] skypiax_protocol.c:141 rev 15765M[(nil)|37     ][DEBUG_SKYPE  141  ][skypiax8  ][-1, 0, 0] READING: |||USER amanda8884 PHONE_MOBILE |||<br>

2009-12-03 17:21:34.684709 [DEBUG] ozmod_analog.c:340 Changing state on 1:1 from DIALING to BUSY<br>2009-12-03 17:21:34.704705 [DEBUG] ozmod_analog.c:450 Executing state handler on 1:1 for BUSY<br>2009-12-03 17:21:34.704705 [DEBUG] ozmod_analog.c:579 Changing state on 1:1 from BUSY to DOWN<br>

2009-12-03 17:21:34.724706 [DEBUG] ozmod_analog.c:450 Executing state handler on 1:1 for DOWN<br>2009-12-03 17:21:34.724706 [DEBUG] mod_openzap.c:1334 got FXO sig 1:1 [STOP]<br>2009-12-03 17:21:34.724706 [NOTICE] mod_openzap.c:1352 Hangup OpenZAP/1:1/xxxxxxxx [CS_CONSUME_MEDIA] [NORMAL_CIRCUIT_CONGESTION]<br>

2009-12-03 17:21:34.724706 [DEBUG] switch_channel.c:1912 Send signal OpenZAP/1:1/xxxxxxxx [KILL]<br>2009-12-03 17:21:34.724706 [DEBUG] switch_core_session.c:999 Send signal OpenZAP/1:1/xxxxxxxx [BREAK]<br>2009-12-03 17:21:34.724706 [DEBUG] switch_core_state_machine.c:314 (OpenZAP/1:1/xxxxxxxx) Running State Change CS_HANGUP<br>

2009-12-03 17:21:34.724706 [DEBUG] switch_core_state_machine.c:459 thread mismatch skipping state handler.<br>2009-12-03 17:21:34.724706 [DEBUG] zap_io.c:1234 channel done 1:1<br>2009-12-03 17:21:34.724706 [DEBUG] ozmod_analog.c:766 ANALOG CHANNEL 1:1 thread ended.<br>

2009-12-03 17:21:34.724706 [DEBUG] switch_core_state_machine.c:486 (OpenZAP/1:1/xxxxxxxx) State HANGUP<br>API CALL [originate(openzap/1/1/xxxxxxxx &amp;echo)] output:<br>-ERR NORMAL_CIRCUIT_CONGESTION<br><br>2009-12-03 17:21:34.724706 [DEBUG] switch_ivr_originate.c:2988 Originate Resulted in Error Cause: 34 [NORMAL_CIRCUIT_CONGESTION]<br>

2009-12-03 17:21:34.725762 [WARNING] mod_openzap.c:474 VETO Changing state on 1:1 from DOWN to HANGUP<br>2009-12-03 17:21:34.725762 [DEBUG] mod_openzap.c:510 OpenZAP/1:1/xxxxxxxx CHANNEL HANGUP<br>2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:46 OpenZAP/1:1/xxxxxxxx Standard HANGUP, cause: NORMAL_CIRCUIT_CONGESTION<br>

2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:486 (OpenZAP/1:1/xxxxxxxx) State HANGUP going to sleep<br>2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:333 (OpenZAP/1:1/xxxxxxxx) State Change CS_HANGUP -&gt; CS_REPORTING<br>

2009-12-03 17:21:34.725762 [DEBUG] switch_core_session.c:999 Send signal OpenZAP/1:1/xxxxxxxx [BREAK]<br>2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:314 (OpenZAP/1:1/xxxxxxxx) Running State Change CS_REPORTING<br>

2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:577 (OpenZAP/1:1/xxxxxxxx) State REPORTING<br>2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:53 OpenZAP/1:1/xxxxxxxx Standard REPORTING, cause: NORMAL_CIRCUIT_CONGESTION<br>

2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:577 (OpenZAP/1:1/xxxxxxxx) State REPORTING going to sleep<br>2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:327 (OpenZAP/1:1/xxxxxxxx) State Change CS_REPORTING -&gt; CS_DESTROY<br>

2009-12-03 17:21:34.725762 [DEBUG] switch_core_session.c:999 Send signal OpenZAP/1:1/xxxxxxxx [BREAK]<br>2009-12-03 17:21:34.725762 [DEBUG] switch_core_session.c:1136 Session 1 (OpenZAP/1:1/xxxxxxxx) Locked, Waiting on external entities<br>

2009-12-03 17:21:34.725762 [NOTICE] switch_core_session.c:1154 Session 1 (OpenZAP/1:1/xxxxxxxx) Ended<br>2009-12-03 17:21:34.725762 [NOTICE] switch_core_session.c:1156 Close Channel OpenZAP/1:1/xxxxxxxx [CS_DESTROY]<br>2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:423 (OpenZAP/1:1/xxxxxxxx) Running State Change CS_DESTROY<br>

2009-12-03 17:21:34.725762 [DEBUG] switch_core_state_machine.c:434 (OpenZAP/1:1/xxxxxxxx) State DESTROY<br>freeswitch@localhost.localdomain&gt; 2009-12-03 17:21:34.726741 [DEBUG] switch_core_state_machine.c:60 OpenZAP/1:1/xxxxxxxx Standard DESTROY<br>

2009-12-03 17:21:34.726741 [DEBUG] switch_core_state_machine.c:434 (OpenZAP/1:1/xxxxxxxx) State DESTROY going to sleep<br><br><br><br>
</blockquote></div><br>