[NEW Functionality] extra accounting from replies

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[NEW Functionality] extra accounting from replies

Bogdan-Andrei Iancu
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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users