[OpenSIPS-Users] Accounting with evaluated AVP values

Muhammad Shahzad shaheryarkh at googlemail.com
Mon Sep 10 15:41:40 CEST 2012


Set following modparam, and all AVPs will be visible in reply route as well,

modparam("tm", "onreply_avp_mode", 1)

Thank you.


On Mon, Sep 10, 2012 at 2:41 PM, Dragomir Haralambiev <goup2010 at gmail.com>wrote:

> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari_786pk at hotmail.com
Email: shaheryarkh at googlemail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120910/be85e621/attachment.htm>


More information about the Users mailing list