<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Calibri>Hi,</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>I have the problem below when I use
DAHDIAcceptR2Call(yes)</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>When the called number hook off the phone the call
is finished with this error.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>[May 13 11:34:24] ERROR[718]: chan_dahdi.c:1606
dahdi_r2_write_log: Chan 177 - Protocol error. Reason = Invalid R2 state, R2
State = *Unknown*, MF state = MF Engine Off, MF Group = Backward Group B, CAS =
0x08<BR>DNIS = 2199, ANI = 1182240518, MF = 0x20<BR>[May 13 11:34:24]
ERROR[718]: chan_dahdi.c:1378 dahdi_r2_on_protocol_error: MFC/R2 protocol error
on chan 177: Invalid R2 state<BR></FONT></DIV>
<DIV><FONT face=Calibri>This case occur only in Collect Call, other calls are
fine.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>my chan_dahdi.conf</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT
face=Calibri>signalling=mfcr2<BR>mfcr2_variant=br<BR>mfcr2_get_ani_first=no<BR>mfcr2_max_ani=20<BR>mfcr2_max_dnis=4<BR>mfcr2_category=national_subscriber<BR>;mfcr2_logdir=span1<BR>mfcr2_call_files=no<BR>;mfcr2_logging=all<BR>mfcr2_mfback_timeout=-1<BR>mfcr2_metering_pulse_timeout=-1<BR>mfcr2_allow_collect_calls=no<BR>mfcr2_double_answer=yes<BR>mfcr2_immediate_accept=no<BR>mfcr2_forced_release=no<BR>mfcr2_charge_calls=yes<BR>language=pt_BR<BR></FONT></DIV>
<DIV><FONT face=Calibri>If I set only mfcr2_allow_collect_calls=no, none call is
blocked, I need to set mfcr2_double_answer=yes to block
then.<BR></FONT> </DIV>
<DIV><FONT face=Calibri>Guilherme</FONT></DIV>
<DIV><FONT face=Calibri> </DIV></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=moises.silva@gmail.com href="mailto:moises.silva@gmail.com">Moises
Silva</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=asterisk-r2@lists.digium.com
href="mailto:asterisk-r2@lists.digium.com">asterisk-r2@lists.digium.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, April 13, 2010 4:31
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [asterisk-r2] Collect
Call</DIV>
<DIV><BR></DIV>You can use DAHDIAcceptR2Call() application to accept the call
if that's what you want ( be sure you don't Answer() before, because that
implicitly accepts the call ). If you don't call DAHDIAcceptR2Call and just
Hangup() the call will be rejected with the specified reason in MFCR2_CAUSE
variable ( if not specified, line out of order will be used).<BR><BR>I have
not documented the MFCR2_CAUSE variable, so you may want to ignore it, or
check the code inside chan_dahdi.c to find out the valid values.<BR><BR
clear=all>Moises Silva<BR>Senior Software Engineer<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><BR><BR>
<DIV class=gmail_quote>On Tue, Apr 13, 2010 at 1:46 PM, Guilherme <SPAN
dir=ltr><<A
href="mailto:guilherme@vdt.com.br">guilherme@vdt.com.br</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV>
<DIV bgcolor="#ffffff">
<DIV><FONT face=Calibri>Hi,</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>I have a openr2 installed on my asterisk and I need
to use mfcr2_allow_collect_calls for some calls, not for all. I want know if
exist some variable that I use in my extensions.conf to block or allow a
collect call for some calls.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Tanks,</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV><FONT color=#888888>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT
face=Calibri>Guilherme</FONT></DIV></FONT></DIV></DIV></DIV><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>
<P>
<HR>
<P></P>--
<BR>_____________________________________________________________________<BR>--
Bandwidth and Colocation Provided by http://www.api-digital.com
--<BR><BR>asterisk-r2 mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-r2</BLOCKQUOTE></BODY></HTML>