"failed_transactions" is not a flag - it's enabled (<>0) or disabled
(==0) - it generally apply and says if the transaction marker for acc
(via flags) should or not be still log in case of failure.
bogdan
Martin Kjeldsen wrote:
Thanks for the info.
Just to be on the safe side, does that mean I'll have to setflag with
the flag number ascociated with modparam("acc",
"failed_transactions",
2), e.g. setflag(2), if I'm using modparam("acc", "db_flag", 1)?
if (method=="INVITE" & search("Diversion:"))
{
log(1, "Call is being forwarded and we need to account it to
this person\n");
append_hf("P-hint: Call being forwarded from\r\n");
setflag(2);
};
Help greatly appreciated
Martin
Bogdan-Andrei Iancu wrote:
to get non-200 transactions accounted you need to
add this for acc
module:
modparam("acc", "failed_transactions", 1)
bogdan
PS: by doing this *all* non-200 transactions marked for acc will be
logged
Martin Kjeldsen wrote:
Hi
I was wondering if anybody had some advice on howto account
forwarded calls to the subscriber who farwarded his phone?
ATM I account people by the From address, and I was thinking of
adding a control prior to the routes in ser.cfg, which serched the
message for any diversion header:
if (method=="INVITE" & search("Diversion:"))
{
log(1, "Call is being forwarded and we need to account it to
this person\n");
append_hf("P-hint: Call being forwarded from\r\n");
setflag(1);
};
But I dont seem to be getting the information, that I seek, cause no
302 status gets recorded in my accouonting table.
Any help on what I'm doing wrong? And is there a better way to use
setflag, or more correct?
Regards
Martin
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers