Hello All,<br><br>I have a Digium TDM400P pci card with two FXO ports installed on my linux box. I've connected an external telephone line to the first FXO port. But I can'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 => 20<br>wink_ms => 150<br>flash_ms => 750<br>echo_cancel_level => 64<br>rxgain => 0.0<br>txgain => 0.0<br></div><br><b>/usr/local/freeswitch/conf/openzap.conf</b><br><br><div style="margin-left: 40px;">
[span zt]<br>name => OpenZAP<br>number => 1<br>fxo-channel => 1<br><br>[span zt]<br>name => OpenZAP<br>number => 2<br>fxo-channel => 2<br></div><br><b>/usr/local/freeswitch/conf/autoload_configs/openzap.conf.xml</b><br>
<br><div style="margin-left: 40px;"><configuration name="openzap.conf" description="OpenZAP Configuration"><br> <settings><br> <param name="debug" value="0"/><br>
</settings><br> <!-- one entry here per openzap span --><br> <analog_spans><br> <span id="1"><br> <param name="tonegroup" value="sg"/><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="2"><br> <param name="tonegroup" value="sg"/><br> <param name="digit-timeout" value="2000"/><br> <param name="max-digits" value="1"/><br>
<param name="dialplan" value="XML"/><br> <param name="context" value="default"/><br> </span><br> </analog_spans><br></configuration><br>
<br></div>I defined an extension in dialplan/default.xml to receive bridge incoming calls to my skype instance. Frankly speaking, I'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> <extension name="incoming_fxo"><br> <condition field="destination_number" expression="^(1)$"><br> <action application="bridge" data="skypiax/ANY/my_skype_account"/><br>
</condition><br> </extension><br><br>For outgoing calls, I tried something like this: originate openzap/1/1/xxxxxxxx &echo, while "xxxxxxxx" is my handphone number. Again, my handphone has no response. Hopefully I'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> originate openzap/1/1/xxxxxxxx &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 -> 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 -> 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 -> 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 &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 -> 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 -> 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> 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>