before doing anything else you should use branches/release-1 and NOT branches/release-1-dtmf, the DTMF support was already merged into branches/release-1<br><br><div class="gmail_quote">On Mon, Nov 30, 2009 at 10:59 AM, Diego Ocampo <span dir="ltr"><<a href="mailto:docampo2005@gmail.com">docampo2005@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello everybody,<br>
<br>
First of all, I want to thank for the extraodinary work.<br>
I'm use the openr2 version 1.3.0, compilied from<br>
branches/release-1-dtmf, because my provider in Argentina (Global<br>
Crossing) uses r2-digital-dtmf-dnis configuration.<br>
<br>
The library work great, but I have a problem when the caller hang up,<br>
the channel goes to "CLEAR BA - CLEAR FO" state.<br>
<br>
asterisk1*CLI>mfcr2 show channels<br>
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS<br>
1 AR 10 4 No No IDLE IDLE<br>
2 AR 10 4 No No IDLE IDLE<br>
3 AR 10 4 No No CLEAR BA CLEAR FO<br>
4 AR 10 4 No No IDLE IDLE<br>
5 AR 10 4 No No IDLE IDLE<br>
6 AR 10 4 No No IDLE IDLE<br>
7 AR 10 4 No No IDLE IDLE<br>
8 AR 10 4 No No IDLE IDLE<br>
9 AR 10 4 No No IDLE IDLE<br>
10 AR 10 4 No No IDLE IDLE<br>
11 AR 10 4 No No IDLE IDLE<br>
12 AR 10 4 No No IDLE IDLE<br>
<br>
Log (chan-3-backward-0-20091128210432.call):<br>
<br>
[21:04:32:967] [Thread: 1089317184] [Chan 3] - Call started at Sat Nov<br>
28 21:04:32 2009 on chan 3 [openr2 version 1.3.0, revision 273M]<br>
[21:04:32:967] [Thread: 1089317184] [Chan 3] - Initialized R2 DTMF detector<br>
[21:04:32:967] [Thread: 1089317184] [Chan 3] - CAS Tx >> [SEIZE ACK] 0x0C<br>
[21:04:32:967] [Thread: 1089317184] [Chan 3] - CAS Raw Tx >> 0x0D<br>
[21:04:33:081] [Thread: 1089317184] [Chan 3] - Got digits 1 of len 1<br>
[21:04:33:261] [Thread: 1089317184] [Chan 3] - Got digits 5 of len 1<br>
[21:04:33:461] [Thread: 1089317184] [Chan 3] - Got digits 1 of len 1<br>
[21:04:33:681] [Thread: 1089317184] [Chan 3] - Got digits 5 of len 1<br>
[21:04:34:241] [Thread: 1089317184] [Chan 3] - Done with DTMF detection<br>
[21:04:34:241] [Thread: 1089317184] [Chan 3] - Attempting to cancel<br>
timer timer 0<br>
[21:04:34:241] [Thread: 1089317184] [Chan 3] - Cannot cancel timer 0<br>
[21:04:34:261] [Thread: 1120618816] [Chan 3] - CAS Tx >> [ANSWER] 0x04<br>
[21:04:34:261] [Thread: 1120618816] [Chan 3] - CAS Raw Tx >> 0x05<br>
[21:09:07:770] [Thread: 1120618816] [Chan 3] - Bits changed from 0x00 to 0x08<br>
[21:09:07:770] [Thread: 1120618816] [Chan 3] - CAS Rx << [CLEAR FORWARD] 0x08<br>
[21:09:07:770] [Thread: 1120618816] [Chan 3] - Far end disconnected.<br>
Reason: Normal Clearing<br>
[21:09:07:774] [Thread: 1120618816] [Chan 3] - Attempting to cancel<br>
timer timer 0<br>
[21:09:07:774] [Thread: 1120618816] [Chan 3] - Cannot cancel timer 0<br>
[21:09:07:774] [Thread: 1120618816] [Chan 3] - CAS Tx >> [CLEAR BACK] 0x0C<br>
[21:09:07:774] [Thread: 1120618816] [Chan 3] - CAS Raw Tx >> 0x0D<br>
[21:29:16:592] [Thread: 1120618816] [Chan 3] - Attempting to cancel<br>
timer timer 0<br>
[21:29:16:592] [Thread: 1120618816] [Chan 3] - Cannot cancel timer 0<br>
<br>
chan_dahdi.conf:<br>
<br>
[trunkgroups]<br>
[channels]<br>
context=from-pstn<br>
switchtype=national<br>
usecallerid=yes<br>
hidecallerid=no<br>
callwaiting=yes<br>
callwaitingcallerid=yes<br>
threewaycalling=yes<br>
transfer=yes<br>
cancallforward=yes<br>
echocancel=yes<br>
rxgain=0.0<br>
txgain=0.0<br>
immediate=no<br>
<br>
resetinterval=never<br>
context=from-pstn<br>
group=0<br>
echocancel=yes<br>
signalling=mfcr2<br>
mfcr2_variant=ar<br>
mfcr2_get_ani_first=no<br>
mfcr2_max_ani=10<br>
mfcr2_max_dnis=4<br>
mfcr2_category=national_subscriber<br>
mfcr2_mfback_timeout=-1<br>
mfcr2_metering_pulse_timeout=-1<br>
mfcr2_dtmf_detection=1<br>
mfcr2_dtmf_dialing=1<br>
channel => 1-12<br>
<br>
dahdi/system.conf:<br>
# Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER) HDB3/ RED<br>
span=1,1,0,cas,hdb3<br>
cas=1-12:1101<br>
dchan=16<br>
<br>
# Global data<br>
loadzone = ar<br>
defaultzone = ar<br>
<br>
Thanks in advance.<br>
<br>
P.D.: Sorry, my english is not good<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-r2 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-r2" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-r2</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Moises Silva<br>Software Developer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>