[OpenSIPS-Users] Accounting with evaluated AVP values

Dragomir Haralambiev goup2010 at gmail.com
Mon Sep 10 20:18:51 CEST 2012


Thanks!

It's working.

2012/9/10 Muhammad Shahzad <shaheryarkh at googlemail.com>

> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120910/9810c2de/attachment.htm>


More information about the Users mailing list