[asterisk-r2] Channels remain in "CLEAR BA" state after hang up

Diego Ocampo docampo2005 at gmail.com
Mon Nov 30 09:59:55 CST 2009


Hello everybody,

First of all, I want to thank for the extraodinary work.
I'm use the openr2 version 1.3.0, compilied from
branches/release-1-dtmf, because my provider in Argentina (Global
Crossing) uses r2-digital-dtmf-dnis configuration.

The library work great, but I have a problem when the caller hang up,
the channel goes to "CLEAR BA - CLEAR FO" state.

asterisk1*CLI>mfcr2 show channels
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS   Rx CAS
   1 AR      10      4        No        No               IDLE     IDLE
   2 AR      10      4        No        No               IDLE     IDLE
   3 AR      10      4        No        No               CLEAR BA     CLEAR FO
   4 AR      10      4        No        No               IDLE     IDLE
   5 AR      10      4        No        No               IDLE     IDLE
   6 AR      10      4        No        No               IDLE     IDLE
   7 AR      10      4        No        No               IDLE     IDLE
   8 AR      10      4        No        No               IDLE     IDLE
   9 AR      10      4        No        No               IDLE     IDLE
  10 AR      10      4        No        No               IDLE     IDLE
  11 AR      10      4        No        No               IDLE     IDLE
  12 AR      10      4        No        No               IDLE     IDLE

Log (chan-3-backward-0-20091128210432.call):

[21:04:32:967] [Thread: 1089317184] [Chan 3] - Call started at Sat Nov
28 21:04:32 2009 on chan 3 [openr2 version 1.3.0, revision 273M]
[21:04:32:967] [Thread: 1089317184] [Chan 3] - Initialized R2 DTMF detector
[21:04:32:967] [Thread: 1089317184] [Chan 3] - CAS Tx >> [SEIZE ACK] 0x0C
[21:04:32:967] [Thread: 1089317184] [Chan 3] - CAS Raw Tx >> 0x0D
[21:04:33:081] [Thread: 1089317184] [Chan 3] - Got digits 1 of len 1
[21:04:33:261] [Thread: 1089317184] [Chan 3] - Got digits 5 of len 1
[21:04:33:461] [Thread: 1089317184] [Chan 3] - Got digits 1 of len 1
[21:04:33:681] [Thread: 1089317184] [Chan 3] - Got digits 5 of len 1
[21:04:34:241] [Thread: 1089317184] [Chan 3] - Done with DTMF detection
[21:04:34:241] [Thread: 1089317184] [Chan 3] - Attempting to cancel
timer timer 0
[21:04:34:241] [Thread: 1089317184] [Chan 3] - Cannot cancel timer 0
[21:04:34:261] [Thread: 1120618816] [Chan 3] - CAS Tx >> [ANSWER] 0x04
[21:04:34:261] [Thread: 1120618816] [Chan 3] - CAS Raw Tx >> 0x05
[21:09:07:770] [Thread: 1120618816] [Chan 3] - Bits changed from 0x00 to 0x08
[21:09:07:770] [Thread: 1120618816] [Chan 3] - CAS Rx << [CLEAR FORWARD] 0x08
[21:09:07:770] [Thread: 1120618816] [Chan 3] - Far end disconnected.
Reason: Normal Clearing
[21:09:07:774] [Thread: 1120618816] [Chan 3] - Attempting to cancel
timer timer 0
[21:09:07:774] [Thread: 1120618816] [Chan 3] - Cannot cancel timer 0
[21:09:07:774] [Thread: 1120618816] [Chan 3] - CAS Tx >> [CLEAR BACK] 0x0C
[21:09:07:774] [Thread: 1120618816] [Chan 3] - CAS Raw Tx >> 0x0D
[21:29:16:592] [Thread: 1120618816] [Chan 3] - Attempting to cancel
timer timer 0
[21:29:16:592] [Thread: 1120618816] [Chan 3] - Cannot cancel timer 0

chan_dahdi.conf:

[trunkgroups]
[channels]
context=from-pstn
switchtype=national
usecallerid=yes
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
echocancel=yes
rxgain=0.0
txgain=0.0
immediate=no

resetinterval=never
context=from-pstn
group=0
echocancel=yes
signalling=mfcr2
mfcr2_variant=ar
mfcr2_get_ani_first=no
mfcr2_max_ani=10
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
mfcr2_dtmf_detection=1
mfcr2_dtmf_dialing=1
channel => 1-12

dahdi/system.conf:
# Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER) HDB3/ RED
span=1,1,0,cas,hdb3
cas=1-12:1101
dchan=16

# Global data
loadzone        = ar
defaultzone     = ar

Thanks in advance.

P.D.: Sorry, my english is not good



More information about the asterisk-r2 mailing list