<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#262626;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#262626'>Hi Moises,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#262626'>I’ll test it too, but I’m confused. What version in svn did you
fix? Trunk? Some branch?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#262626'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#262626'>Thanks!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#262626'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#262626'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#262626'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=PT-BR style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>De:</span></b><span lang=PT-BR style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> asterisk-r2-bounces@lists.digium.com
[mailto:asterisk-r2-bounces@lists.digium.com] <b>Em nome de </b>Moises Silva<br>
<b>Enviada em:</b> quinta-feira, 3 de dezembro de 2009 4:37<br>
<b>Para:</b> asterisk-r2@lists.digium.com<br>
<b>Assunto:</b> Re: [asterisk-r2] Channels remain in "CLEAR BA" state
after hang up<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi Diego,<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>It seems like a bug, I am not sure why I did not see it
before. I fixed it in svn, please update and test again :-)<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>On Tue, Dec 1, 2009 at 8:45 AM, Diego Ocampo <<a
href="mailto:docampo2005@gmail.com">docampo2005@gmail.com</a>> wrote:<o:p></o:p></p>
<p class=MsoNormal>I have activated call trace, with mfcr2_call_files=yes,
mfcr2_logging=all, mfcr2_logdir=span1 in chan_dahdi.conf and setting verbose
and debug level to 333 in asterisk.<br>
The backward call log isn't generated, not until after run the "mfcr2 set
idle" command in asterisk console. But, as I don't have the E1 line all
the time, I have made the test with a crossover cable between "span
1" and "span 2", with same result.<br>
<br>
chan_dahdi.conf --> <a href="http://pastebin.com/f7e505486" target="_blank">http://pastebin.com/f7e505486</a><br>
dahdi/system.conf --> <a href="http://pastebin.com/f39e15d57" target="_blank">http://pastebin.com/f39e15d57</a><br>
<br>
[root@asterisk1 span1]# ls -ltr<br>
total 4<br>
-rw------- 1 asterisk asterisk 0 Dec 1 09:29
chan-32-backward-4-20091201092912.call<br>
-rw------- 1 asterisk asterisk 2995 Dec 1 09:29
chan-1-forward-4-20091201092912.call<br>
<br>
[root@asterisk1 span1]# lsof chan-32-backward-4-20091201092912.call<br>
COMMAND PID USER FD TYPE DEVICE SIZE
NODE NAME<br>
asterisk 13557 asterisk 90w REG 8,1 0
9017873 chan-32-backward-4-20091201092912.call<br>
<br>
Before run 'mfcr2 set idle':<br>
<br>
[root@asterisk1 span1]# cat chan-1-forward-4-20091201092912.call<br>
<br>
--> <a href="http://pastebin.com/f6c987559" target="_blank">http://pastebin.com/f6c987559</a><br>
<br>
[root@asterisk1 span1]# cat chan-32-backward-4-20091201092912.call<br>
<br>
--> <a href="http://pastebin.com/f2dfd73b" target="_blank">http://pastebin.com/f2dfd73b</a><br>
<br>
<br>
[root@asterisk1 span1]# tail -f /var/log/asterisk/full | grep chan_dahdi.c<br>
<br>
--> <a href="http://pastebin.com/f14744a71" target="_blank">http://pastebin.com/f14744a71</a><br>
<br>
<br>
Thanks<br>
<br>
<br>
2009/11/30 Moises Silva <<a href="mailto:moises.silva@gmail.com"
target="_blank">moises.silva@gmail.com</a>>:<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
> take a call trace, full call trace, search the mailing list archives with<br>
> google about it if you don't know how to take one (or probably the openr2<br>
> guide tells you that)<br>
><br>
> On Mon, Nov 30, 2009 at 2:31 PM, Diego Ocampo <<a
href="mailto:docampo2005@gmail.com" target="_blank">docampo2005@gmail.com</a>>
wrote:<br>
>><br>
>> I compiled the branches/release-1 source, but still having a problem.<br>
>><br>
>> Thanks.<br>
>><br>
>> > before doing anything else you should use branches/release-1 and NOT<br>
>> > branches/release-1-dtmf, the DTMF support was already merged into<br>
>> > branches/release-1<br>
>> ><br>
>> > On Mon, Nov 30, 2009 at 10:59 AM, Diego Ocampo <docampo2005 at<br>
>> > <a href="http://gmail.com" target="_blank">gmail.com</a>>wrote:<br>
>> ><br>
>> >> 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<br>
>> >> 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 <br>
>> >> CLEAR<br>
>> >> 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<br>
>> >> detector<br>
>> >> [21:04:32:967] [Thread: 1089317184] [Chan 3] - CAS Tx
>> [SEIZE ACK]<br>
>> >> 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<br>
>> >> to<br>
>> >> 0x08<br>
>> >> [21:09:07:770] [Thread: 1120618816] [Chan 3] - CAS Rx
<< [CLEAR<br>
>> >> FORWARD]<br>
>> >> 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]<br>
>> >> 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>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Moises Silva<br>
>> > Software Developer<br>
>> > Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham
ON L3R<br>
>> > 9T3<br>
>> > Canada<br>
>> > t. 1 905 474 1990 x 128 | e. moy at <a href="http://sangoma.com"
target="_blank">sangoma.com</a><br>
>> ><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>
><br>
><br>
><br>
> --<br>
> Moises Silva<br>
> Software Developer<br>
> Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R
9T3<br>
> Canada<br>
> t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com"
target="_blank">moy@sangoma.com</a><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>
><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal><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><o:p></o:p></p>
</div>
<p class=MsoNormal><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><o:p></o:p></p>
</div>
</div>
</body>
</html>