<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hello Brett,<br>
<br>
I guess the easies solution will be do stop using the
db_missed_flag for auto acc on failed branches and to control by
yourself the acc from failure route. (note that the acc missed
call is done prior to failure route, so you cannot disable it from
failure route).<br>
<br>
Keep in mind that the acc_db_request() function accepts variables,
so you can simulate the auto acc via:<br>
</tt><tt>acc_db_request("$T_reply_code Failed");</tt><br>
<tt><br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 03/28/2013 11:55 AM, Brett Nemeroff wrote:
<blockquote
cite="mid:CAPwC5wwH_9RY3EMQkf-+-ngko4idk2j9dGr8STiiE6tHRMU2Og@mail.gmail.com"
type="cite">Hey All,
<div>I'm routing a call using a failure_route and serial attempts.
Under certain conditions, I'd like to customize the failure code
written to the acc table with something like:</div>
<div><br>
</div>
<div>acc_db_request("503 Special Failure");</div>
<div><br>
</div>
<div>But when I'm doing this, I'm getting two acc entries. One for
the last failed attempt and one for that line. Is there anyway I
can suppress the one for the failed call leg and use mine
instead? The issue here is that this is a special failure case
I'd like documented as such and if I just write the sip_reason I
got from the upstream, I won't know that in the logs. </div>
<div><br>
</div>
<div>In the best case, the missed_calls entry would mirror the
actual reply I got, and the acc entry would mirror what I sent
to the requestor. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Brett</div>
<div><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>