<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>Parallel forking and reply error</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi, all</FONT>
<BR><FONT SIZE=2>I'm implementing a black list, the control access to the gateway and other control policies and I have a problem with the call forking.</FONT></P>

<P><FONT SIZE=2>In case of a call that generates a parallel forking I want the capability to select if accept or refuse the call for each single contact, but if the first reply that I send to the caller is an error message 4xx, the UA caller shuts down the call. </FONT></P>

<P><FONT SIZE=2>What would I have to do to add my reject (caused by my access control policy) to the call forking administration and so reply an error only if all contacts can not be reachable?</FONT></P>

<P><FONT SIZE=2>I'm trying to implement a solution to reply an error only if all the contacts can not be reachable. </FONT>
<BR><FONT SIZE=2>To do this thing I need to know the number of contacts that the lookup function has found for the request-uri that is arrived ( Is it possible to know if I have a single contact or a parallel forking?) and, if there are more than one contact associated to the sip uri, how can I go to serve the next contact in list without sending a reply for the destinations that I have to block?</FONT></P>

<P><FONT SIZE=2>Any suggestion?</FONT>
</P>

<P><FONT SIZE=2>Thanks </FONT>
<BR><FONT SIZE=2>Daniele</FONT>
</P>

</BODY>
</HTML>