Juha Heinanen writes:
is there any way to unset the accounting flags after calling t_newtran()? for example, i would not like to account invites that result to 407 proxy authentication required.
just to clarify, i added statement
resetflag(ACC_FAILED_FLAG);
just before proxy_challenge() call, but it did not have any effect. i guess the reason is that transaction was already created.
if failed transaction reporting cannot be undone after transaction has been created, then another possibility (although not as attractive) would be to add a filter param to accounting module that would list which response codes >=300 script writer is not interested in.
-- juha