On 08/07/06 20:43, Andreas Granig wrote:
Daniel-Constantin Mierla wrote:
try to use acc_db_request() instead of
db_missed_flag for failed
transactions. Maybe a look into the code would reveal how the
callbacks for accounting are executed and so see if resetting the
missed flag in failure route will prevent logging the 404.
By resetting the flag in the reply route the acc record can be
suppressed, but it would be an ugly hack to check in the reply route
... yep, kind
of ...
But in case of 404 the record should be in missed calls table, so B can
see that someone tried to call it. The 200OK is recorded in acc table so
you can bill it.
if there will be serial forking in the failure route.
On the other hand, acc_db_request() doesn't log the response code if
called in the failure route, so it seems to become be a hack anyway.
you can give
the reason as parameter to acc_db_request, but it does not
have much flexibility. However, there is another flag for failed
transactions
http://www.openser.org/docs/modules/1.1.x/acc.html#AEN229
You may get what you want by using this.
Cheers,
Daniel
Thanks,
Andy