Hi Diego,<div><br></div><div>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 :-)</div><div><br><div class="gmail_quote">On Tue, Dec 1, 2009 at 8:45 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;">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>>:<div>
<div></div><div class="h5"><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>
><br>
<br>
</div></div><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>
</div>