[Kamailio-Devel] [Fwd: [OpenSIPS-Devel] [NEW Functionality] extra accounting from replies]

Alex Balashov abalashov at evaristesys.com
Thu Nov 20 19:07:23 CET 2008


I think this would be a good patch to throw in.

-------- Original Message --------
Subject: [OpenSIPS-Devel] [NEW Functionality] extra accounting from replies
Date: Thu, 20 Nov 2008 20:06:37 +0200
From: Bogdan-Andrei Iancu <bogdan at voice-system.ro>
To: users at lists.opensips.org <users at lists.opensips.org>, 
devel at lists.opensips.org <devel at lists.opensips.org>

Hi,

There is available a new enhancement of the acc module that allows you
(via extra accounting) to log also information related to the SIP reply
of that transaction.
So far, all PV from extra accounting were evaluated in the context of
the SIP request, so you were able do directly log only info from the SIP
request; for information related to SIP reply, you had to use a
onreply_route to get the reply, to put the info you are interested in in
some AVPS and than use the AVPS in extra accounting.

Now, you can simply do:
modparam("acc", "log_extra",
     "contactA=$ct;
contactB=$ct/reply;uaA=$hdr(User-Agent);uaB=$hdr(Server)/reply;src_ipA=$si;src_ipB=$si/reply")

use the "/reply" marker to say you want that PV to be evaluated in the
context of the reply; by default (without the marker), the evaluation is
done in the request context.

Regards,
Bogdan


_______________________________________________
Devel mailing list
Devel at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599



More information about the Devel mailing list