[Freeswitch-users] Ignore busy signal when dialling out on anFXO port
Oren Hecht
orenhe at in.taldor.co.il
Tue Nov 19 15:18:50 MSK 2013
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'twork 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 at 163.com>
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>,
"FreeSWITCH Users Help" <freeswitch-users at 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.
/nandy
On Mon, Nov 18, 2013 at 3:41 PM, Oren Hecht <orenhe at in.taldor.co.il
[mailto:orenhe at in.taldor.co.il]> wrote:
Hi,
I'm new to freeswitch so please excuse me if I'm not using the right terms.
I have freeswitch connected to a POTS line using an FXO port, and I am
trying to use it to dial out without success.
The POTS line requires me to dial '9' first to get a line for dialing out,
and as long as I don't press 9 it gives a 'busy' tone.
I am trying to bridge an extension to freetdm port with adding a '9' prefix,
but I get "Failed to open channel" and the reason is
"NORMAL_CIRCUIT_CONGESTION". When I look at 'ftdm dump' I see: "last_state:
BUSY".
I guess the reason for failure is that freeswitch hears the busy tone and
thinks the line is not free and aborts. I also thought this is related to
the early media signaling so I tried adding {ignore_early_media=true}
thinking it will ignore the busy tone, but it dodn't help.
How can I tell freeswitch to ignore the busy signal and just dial the
destaination number, (the '9' prefix will give it a free line)?
Thank you very much for the help,
Oren Hecht.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org [mailto:consulting at freeswitch.org]
http://www.freeswitchsolutions.com [http://www.freeswitchsolutions.com/]
[/]
Official FreeSWITCH Sites
http://www.freeswitch.org [http://www.freeswitch.org/]
http://wiki.freeswitch.org [http://wiki.freeswitch.org/]
http://www.cluecon.com [http://www.cluecon.com/]
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
[mailto:FreeSWITCH-users at lists.freeswitch.org]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
[http://lists.freeswitch.org/mailman/listinfo/freeswitch-users]
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
[http://lists.freeswitch.org/mailman/options/freeswitch-users]
http://www.freeswitch.org [http://www.freeswitch.org/]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131119/2dc4257b/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list