[Serusers] Accounting forwarded calls with Setflag
Martin Kjeldsen
martin.kjeldsen at cuatro.dk
Tue Apr 19 17:22:21 CEST 2005
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 at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>>
>
--
Med venlig hilsen / Kind Regards
Martin Kjeldsen
Cuatro-Group P/S (4G)
Hindegade 3, DK-1303 København K
Tel: (+45) 82 35 65 00
Fax: (+45) 82 35 65 65
Mob: (+45) 60 64 65 87
Url: http://www.cuatro.dk
More information about the sr-users
mailing list