[OpenSIPS-Users] Accounting with evaluated AVP values

Dragomir Haralambiev goup2010 at gmail.com
Mon Sep 10 14:41:02 CEST 2012


Hello,

I need to change accounted AVPs values on onreply_route.
How to do that?
Here is example:

modparam("acc", "detect_direction", 1)
modparam("acc", "log_level", 1)
modparam("acc", "cdr_flag", 2)
modparam("acc", "failed_transaction_flag", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "log_missed_flag", 1)

modparam("acc", "aaa_url", "radius:/etc/radiusclient-ng/radiusclient.conf")
modparam("acc", "aaa_extra",   ".......
    Billing-Info=$avp(bill_info);
    .......")
modparam("acc", "aaa_flag", 2)
modparam("acc", "aaa_missed_flag", 2)

....
$avp(bill_info)="set init value";
setflag(1); setflag(2);
t_relay();

.....
onreply_route {
 .....
 $avp(bill_info)="new bill value";
 ...
}

Best regards,
PlayMen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120910/db0e0223/attachment.htm>


More information about the Users mailing list