I am using dahdi for my tdm card. I have 1 FXO and 1 FXS installed.
At the moment I am trying to check if I can bridge the 2 ports, so
freeswitch will just pass the call.
-
1. If I dial the phone number of the POTS line that is connected to the
FXO port, then freeswitch bridges it to the phone that is connected to the
FXS port, I answer the phone and it works well.
-
The other way around doesn't work though. The simplest test that I am
doing is that if I pickup the handset and dial any number, I want freeswitch
to bridge the call to a specific phone number with the '9' prefix
that is required. This doesn't work as I get the errors that I
stated in my previous mail. If I connect the phone directly to the POTS line
and dial the same exact number (with the '9' prefix) it works.
my dial plan is:
<!-- THIS DOESN'T WORK -->
<extension name="call_from_phone">
<condition field="${freetdm_span_number}"
expression="^1$">
<action application="set"
data="hangup_after_bridge=true"/>
<action application="bridge"
data="freetdm/2/1/9039000000"/>
</condition>
</extension>
<!-- THIS WORKS -->
<extension name="call_from_pots">
<condition
field="${freetdm_span_number}" expression="^2$">
<action
application="set"
data="hangup_after_bridge=true"/>
<action
application="bridge" data="freetdm/1/1/"/>
</condition>
</extension>
The error I get:
2013-11-19 14:07:26.727378 [INFO] ftmod_zt.c:671 Setting echo cancel to 64
taps for 1:1
2013-11-19 14:07:30.987378 [NOTICE] switch_channel.c:1034 New Channel
FreeTDM/1:1/2 [2a930dc8-5113-11e3-82d6-7bb8ac46d104]
2013-11-19 14:07:30.987378 [INFO] mod_dialplan_xml.c:558 Processing
<1>->2 in context analog
2013-11-19 14:07:30.987378 [INFO] ftmod_zt.c:671 Setting echo cancel to 64
taps for 2:1
2013-11-19 14:07:30.987378 [NOTICE] switch_channel.c:1034 New Channel
FreeTDM/2:1/9039000000 [2a934748-5113-11e3-82dc-7bb8ac46d104]
2013-11-19 14:07:30.987378 [INFO] ftmod_zt.c:671 Setting echo cancel to 64
taps for 2:1
2013-11-19 14:07:36.047378 [NOTICE] mod_freetdm.c:2273 Hangup
FreeTDM/2:1/9039000000 [CS_CONSUME_MEDIA] [NORMAL_CIRCUIT_CONGESTION]
2013-11-19 14:07:36.047378 [NOTICE] switch_core_session.c:1564 Session 14
(FreeTDM/2:1/9039000000) Ended
2013-11-19 14:07:36.047378 [NOTICE] switch_core_session.c:1568 Close
Channel FreeTDM/2:1/9039000000 [CS_DESTROY]
2013-11-19 14:07:36.047378 [INFO] mod_dptools.c:3201 Originate
Failed. Cause: NORMAL_CIRCUIT_CONGESTION
2013-11-19 14:07:36.047378 [NOTICE] switch_channel.c:4594 Hangup
FreeTDM/1:1/2 [CS_EXECUTE] [NORMAL_CIRCUIT_CONGESTION]
2013-11-19 14:07:36.067380 [NOTICE] switch_core_session.c:1564 Session 13
(FreeTDM/1:1/2) Ended
2013-11-19 14:07:36.067380 [NOTICE] switch_core_session.c:1568 Close
Channel FreeTDM/1:1/2 [CS_DESTROY]
ftdm list
+OK
span: 1 (myFXS)
type: analog
physical_status: ok
signaling_status: UP
chan_count: 1
dialplan: XML
context: analog
dial_regex:
fail_dial_regex:
hold_music:
analog_options: none
+OK
span: 2 (myFXO)
type: analog
physical_status: ok
signaling_status: UP
chan_count: 1
dialplan: XML
context: analog
dial_regex:
fail_dial_regex:
hold_music:
analog_options: none
ftdm dump 2
+OK
span_id: 2
chan_id: 1
physical_span_id: 1
physical_chan_id: 4
physical_status: ok
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: UP
type: FXO
state: DOWN
last_state: BUSY
txgain: 0.00
rxgain: 0.00
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
session: (none)
freetdm.conf
[span zt myFXS]
number => 1
fxs-channel => 1
[span zt myFXO]
number => 4
fxo-channel => 4
Thanks for the help!
Oren.
-----Original Message-----
From: "windy" <xiaofengcanyuexp@163.com>
To: "FreeSWITCH Users Help"
<freeswitch-users@lists.freeswitch.org>, "FreeSWITCH Users
Help" <freeswitch-users@lists.freeswitch.org>
Date: Tue, 19 Nov 2013 11:46:50 +0800
Subject: Re: [Freeswitch-users] Ignore busy signal when dialling out on
anFXO port
"
NORMAL_CIRCUIT_CONGESTION" has nothing to do with the busy tone. There
should be problem with your TDM card(sangoma).
You can firstly check if your link and cic state are normal before you
dial the call. To check the state, you can either check the freeswitch.log
or use "wanpipe" trace.
windy
2013-11-19
From: Nandy Dagondon
Send: 2013-11-19
07:59:23
To: FreeSWITCH Users Help
CC:
Subject: Re:
[Freeswitch-users] Ignore busy signal when dialling out on anFXO port
Please post your dialplan snippet.
Re POTS line requiring you to dial 9.
Usually this is a PABX access code to grab the LINE e.g. to get a dial tone
but 9 is not dialed. Only the numbers following 9 is actually dialed to the
POTS line. Unless ... this is an unusual setup.