[Freeswitch-dev] Can not make outgoing call by FXO port Yeastar TDM400

Nguyễn Đức Vinh vinhndk50ca at gmail.com
Fri Oct 12 08:39:21 MSD 2012


Hi all,

I am trying to make an outgoing call using FXO connected to an external
telephone line.
I use Linphone (account 1001)  to make a call to mobile number 0973385525

But I got this log: *outgoing_call method not implemented in this span*

2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1238 Connect outbound
channel FreeTDM/1:3/0973385525
2012-10-12 11:30:49.552355 [NOTICE] switch_channel.c:951 New Channel
FreeTDM/1:3/0973385525 [71426de3-5e2d-44f0-ad1d-46328ce86294]
2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1247
(FreeTDM/1:3/0973385525) State Change CS_NEW -> CS_INIT
2012-10-12 11:30:49.552355 [DEBUG] switch_core_session.c:1210 Send signal
FreeTDM/1:3/0973385525 [BREAK]
2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1266 Attached session
71426de3-5e2d-44f0-ad1d-46328ce86294 to channel 1:3
2012-10-12 11:30:49.552355 [ERR] ftdm_io.c:2681 [s1c3][1:3] *outgoing_call
method not implemented in this span!*
2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3185 [s1c3][1:3] DTMF debug is
already disabled
2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3217 [s1c3][1:3] No need to
disable input dump
2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3248 [s1c3][1:3] No need to
disable output dump
2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:2990 [s1c3][1:3] channel done
2012-10-12 11:30:49.552355 [NOTICE] mod_freetdm.c:1756 Close Channel
FreeTDM/1:3/0973385525 [CS_INIT]
2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:530
(FreeTDM/1:3/0973385525) Running State Change CS_DESTROY
2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:540
(FreeTDM/1:3/0973385525) State DESTROY
2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:540
(FreeTDM/1:3/0973385525) State DESTROY going to sleep
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]
2012-10-12 11:30:49.552355 [DEBUG] switch_ivr_originate.c:3508 Originate
Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]
2012-10-12 11:30:49.552355 [INFO] mod_dptools.c:3027 Originate Failed.
Cause: DESTINATION_OUT_OF_ORDER
*
Could anyone help me out in getting FXO working?
*

**

*Here is detail setup.*

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 http://www.yeastar.com/download/TDM_DriverInstall_dahdi.pdf) and
installed freeTDM with Freeswitch (
http://wiki.freeswitch.org/wiki/FreeTDM#FreeTDM_with_FreeSWITCH)



*1. Result of dahdi_hardware*
pci:0000:02:01.0     wctdm+       e159:0001 Wildcard S400P Prototype

*2. Result of dahdi_cfg -vv*
DAHDI Tools Version - 2.6.1

DAHDI Version: 2.3.0.1
Echo Canceller(s): MG2
Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2

*3. File freeswitch/conf/freetdm.conf*
[span zt FXO1]
fxo-channel => 1,2,3,4

*4. File freeswitch/conf/autoload_configs/freetdt.conf.xml*
<analog_spans>
    <span name="FXO1" >
    <param name="dialplan" value="XML"/>
    <param name="context" value="default"/>
    </span>
    </analog_spans>

*5. Result of CLI command: ftdm dump 1*

+OK
span_id: 1
chan_id: 1
physical_span_id: 1
physical_chan_id: 1
physical_status: alarmed
physical_status_red: 1
physical_status_yellow: 0
physical_status_rai: 0
physical_status_blue: 0
physical_status_ais: 0
physical_status_general: 0
signaling_status: DOWN
type: FXS
state: DOWN
last_state: DOWN
txgain: 0.00
rxgain: 0.00
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
session: (none)

span_id: 1
chan_id: 2
physical_span_id: 1
physical_chan_id: 2
physical_status: alarmed
physical_status_red: 1
physical_status_yellow: 0
physical_status_rai: 0
physical_status_blue: 0
physical_status_ais: 0
physical_status_general: 0
signaling_status: DOWN
type: FXS
state: DOWN
last_state: DOWN
txgain: 0.00
rxgain: 0.00
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
session: (none)

span_id: 1
chan_id: 3
physical_span_id: 1
*physical_chan_id: 3*
*physical_status: ok   //(I have a telephone line connect to port 3)*
physical_status_red: 0
physical_status_yellow: 0
physical_status_rai: 0
physical_status_blue: 0
physical_status_ais: 0
physical_status_general: 0
signaling_status: DOWN
type: FXS
state: DOWN
last_state: DOWN
txgain: 0.00
rxgain: 0.00
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
session: (none)

span_id: 1
chan_id: 4
physical_span_id: 1
physical_chan_id: 4
physical_status: alarmed
physical_status_red: 1
physical_status_yellow: 0
physical_status_rai: 0
physical_status_blue: 0
physical_status_ais: 0
physical_status_general: 0
signaling_status: DOWN
type: FXS
state: DOWN
last_state: DOWN
txgain: 0.00
rxgain: 0.00
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
session: (none)

*6. A snipet from CLI command: reload mod_freetdm*
2012-10-12 11:31:43.672340 [INFO] ftdm_io.c:860 Auto-loaded I/O module 'zt'
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5160 created span 1 (FXO1) of
type zt
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5178 span 1
[fxo-channel]=[1,2,3,4]
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5213 setting trunk type to
'FXO' start(KEWL), mode(CPE)
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
2012-10-12 11:31:43.672340 [INFO] switch_time.c:1163 Timezone reloaded 530
definitions
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
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
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
2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5853 Creating new
group:__default
2012-10-12 11:31:43.672340 [INFO] ftdm_io.c:5416 Configured 4 channel(s)


*7. Diaplan default.xml*
<action application="bridge" data="freetdm/1/3/0973385525"/>

*8. File /etc/dahdi/system.cfg*

# Span 1: WCTDM/4 "Wildcard S400P Prototype Board 5" (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4

# Global data

loadzone    = us
defaultzone    = us

===========================
(I am from Vietnam)*
*

Thanks in advance,
BR,
Nguyen Duc Vinh, Mr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121012/232ca01e/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list