that's pretty bad, but I need a full debug log to try to see what happened.<div><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 Thu, May 13, 2010 at 10:44 AM, Guilherme <span dir="ltr"><<a href="mailto:guilherme@vdt.com.br">guilherme@vdt.com.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div 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"> </font></div>
<blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px"><div><div></div><div class="h5">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="background:#e4e4e4;font:10pt arial"><b>From:</b>
<a title="moises.silva@gmail.com" href="mailto:moises.silva@gmail.com" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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>
</div></div><p>
</p><hr>
<p></p>--
<br><div class="im">_____________________________________________________________________<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></div><p></p></blockquote></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></div>