Hi all,<br><br>I am trying to make an outgoing call using FXO connected to an external telephone line. <br>I use Linphone (account 1001) to make a call to mobile number 0973385525<br><br>But I got this log: <b>outgoing_call method not implemented in this span</b><br>
<br>2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1238 Connect outbound channel FreeTDM/1:3/0973385525<br>2012-10-12 11:30:49.552355 [NOTICE] switch_channel.c:951 New Channel FreeTDM/1:3/0973385525 [71426de3-5e2d-44f0-ad1d-46328ce86294]<br>
2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1247 (FreeTDM/1:3/0973385525) State Change CS_NEW -> CS_INIT<br>2012-10-12 11:30:49.552355 [DEBUG] switch_core_session.c:1210 Send signal FreeTDM/1:3/0973385525 [BREAK]<br>
2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1266 Attached session 71426de3-5e2d-44f0-ad1d-46328ce86294 to channel 1:3<br>2012-10-12 11:30:49.552355 [ERR] ftdm_io.c:2681 [s1c3][1:3] <b>outgoing_call method not implemented in this span!</b><br>
2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3185 [s1c3][1:3] DTMF debug is already disabled<br>2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3217 [s1c3][1:3] No need to disable input dump<br>2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3248 [s1c3][1:3] No need to disable output dump<br>
2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:2990 [s1c3][1:3] channel done<br>2012-10-12 11:30:49.552355 [NOTICE] mod_freetdm.c:1756 Close Channel FreeTDM/1:3/0973385525 [CS_INIT]<br>2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:530 (FreeTDM/1:3/0973385525) Running State Change CS_DESTROY<br>
2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:540 (FreeTDM/1:3/0973385525) State DESTROY<br>2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:540 (FreeTDM/1:3/0973385525) State DESTROY going to sleep<br>
2012-10-12 11:30:49.552355 [NOTICE] switch_ivr_originate.c:2591 Cannot create outgoing channel of type [freetdm] cause: [DESTINATION_OUT_OF_ORDER]<br>2012-10-12 11:30:49.552355 [DEBUG] switch_ivr_originate.c:3508 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]<br>
2012-10-12 11:30:49.552355 [INFO] mod_dptools.c:3027 Originate Failed. Cause: DESTINATION_OUT_OF_ORDER<br><i><br>Could anyone help me out in getting FXO working?<br></i><pre><i>
</i></pre><b>Here is detail setup.</b><br><br>Yeastar TDM400 with 2 O2 modules installed (The O2 is a module with 2 FXO ports to terminate two analog PSTN lines). I installed DAHDI driver (follow this guide <a href="http://www.yeastar.com/download/TDM_DriverInstall_dahdi.pdf">http://www.yeastar.com/download/TDM_DriverInstall_dahdi.pdf</a>) and installed freeTDM with Freeswitch (<a href="http://wiki.freeswitch.org/wiki/FreeTDM#FreeTDM_with_FreeSWITCH">http://wiki.freeswitch.org/wiki/FreeTDM#FreeTDM_with_FreeSWITCH</a>)<br>
<br><br><br><b>1. Result of dahdi_hardware</b><br>pci:0000:02:01.0 wctdm+ e159:0001 Wildcard S400P Prototype<br><br><b>2. Result of dahdi_cfg -vv</b><br>DAHDI Tools Version - 2.6.1<br><br>DAHDI Version: 2.3.0.1<br>
Echo Canceller(s): MG2<br>Configuration<br>======================<br><br><br>Channel map:<br><br>Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)<br>Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)<br>
Channel 03: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03)<br>Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)<br><br>4 channels to configure.<br><br>Setting echocan for channel 1 to mg2<br>
Setting echocan for channel 2 to mg2<br>Setting echocan for channel 3 to mg2<br>Setting echocan for channel 4 to mg2<br><br><b>3. File freeswitch/conf/freetdm.conf</b><br>[span zt FXO1]<br>fxo-channel => 1,2,3,4<br><br>
<b>4. File freeswitch/conf/autoload_configs/freetdt.conf.xml</b><br><analog_spans><br> <span name="FXO1" ><br><div style="margin-left:40px"> <param name="dialplan" value="XML"/><br>
</div><div style="margin-left:40px"> <param name="context" value="default"/><br></div> </span><br> </analog_spans><br><br><b>5. Result of CLI command: ftdm dump 1</b><br><br>
+OK<br>span_id: 1<br>chan_id: 1<br>physical_span_id: 1<br>physical_chan_id: 1<br>physical_status: alarmed<br>physical_status_red: 1<br>physical_status_yellow: 0<br>physical_status_rai: 0<br>physical_status_blue: 0<br>physical_status_ais: 0<br>
physical_status_general: 0<br>signaling_status: DOWN<br>type: FXS<br>state: DOWN<br>last_state: DOWN<br>txgain: 0.00<br>rxgain: 0.00<br>cid_date: <br>cid_name: <br>cid_num: <br>ani: <br>aniII: <br>dnis: <br>rdnis: <br>cause: NONE<br>
session: (none)<br><br>span_id: 1<br>chan_id: 2<br>physical_span_id: 1<br>physical_chan_id: 2<br>physical_status: alarmed<br>physical_status_red: 1<br>physical_status_yellow: 0<br>physical_status_rai: 0<br>physical_status_blue: 0<br>
physical_status_ais: 0<br>physical_status_general: 0<br>signaling_status: DOWN<br>type: FXS<br>state: DOWN<br>last_state: DOWN<br>txgain: 0.00<br>rxgain: 0.00<br>cid_date: <br>cid_name: <br>cid_num: <br>ani: <br>aniII: <br>
dnis: <br>rdnis: <br>cause: NONE<br>session: (none)<br><br>span_id: 1<br>chan_id: 3<br>physical_span_id: 1<br><b>physical_chan_id: 3</b><br><b>physical_status: ok //(I have a telephone line connect to port 3)</b><br>physical_status_red: 0<br>
physical_status_yellow: 0<br>physical_status_rai: 0<br>physical_status_blue: 0<br>physical_status_ais: 0<br>physical_status_general: 0<br>signaling_status: DOWN<br>type: FXS<br>state: DOWN<br>last_state: DOWN<br>txgain: 0.00<br>
rxgain: 0.00<br>cid_date: <br>cid_name: <br>cid_num: <br>ani: <br>aniII: <br>dnis: <br>rdnis: <br>cause: NONE<br>session: (none)<br><br>span_id: 1<br>chan_id: 4<br>physical_span_id: 1<br>physical_chan_id: 4<br>physical_status: alarmed<br>
physical_status_red: 1<br>physical_status_yellow: 0<br>physical_status_rai: 0<br>physical_status_blue: 0<br>physical_status_ais: 0<br>physical_status_general: 0<br>signaling_status: DOWN<br>type: FXS<br>state: DOWN<br>last_state: DOWN<br>
txgain: 0.00<br>rxgain: 0.00<br>cid_date: <br>cid_name: <br>cid_num: <br>ani: <br>aniII: <br>dnis: <br>rdnis: <br>cause: NONE<br>session: (none)<br><br><b>6. A snipet from CLI command: reload mod_freetdm</b><br>
2012-10-12 11:31:43.672340 [INFO] ftdm_io.c:860 Auto-loaded I/O module 'zt'<br>
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5160 created span 1 (FXO1) of type zt<br>
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5178 span 1 [fxo-channel]=[1,2,3,4]<br>
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5213 setting trunk type to 'FXO' start(KEWL), mode(CPE)<br>
2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:40<br>
2012-10-12 11:31:43.672340 [INFO] switch_time.c:1163 Timezone reloaded 530 definitions<br>
2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 2 as FreeTDM device 1:2 fd:41<br>
2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 3 as FreeTDM device 1:3 fd:42<br>
2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 4 as FreeTDM device 1:4 fd:43<br>
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5853 Creating new group:__default<br>
2012-10-12 11:31:43.672340 [INFO] ftdm_io.c:5416 Configured 4 channel(s)<br>
<br><br><b>7. Diaplan default.xml</b><br><action application="bridge" data="freetdm/1/3/0973385525"/><br><br><b>8. File /etc/dahdi/system.cfg</b><br><br># Span 1: WCTDM/4 "Wildcard S400P Prototype Board 5" (MASTER) <br>
fxsks=1<br>echocanceller=mg2,1<br>fxsks=2<br>echocanceller=mg2,2<br>fxsks=3<br>echocanceller=mg2,3<br>fxsks=4<br>echocanceller=mg2,4<br><br># Global data<br><br>loadzone = us<br>defaultzone = us<br><br>===========================<br>
(I am from Vietnam)<b><br></b><br><br>Thanks in advance,<br>BR,<br>Nguyen Duc Vinh, Mr<br>