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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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>