Accounting with evaluated AVP values

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Accounting with evaluated AVP values

Dragomir Haralambiev
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Accounting with evaluated AVP values

Muhammad Shahzad
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 <[hidden email]> 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
[hidden email]
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: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Accounting with evaluated AVP values

Dragomir Haralambiev
Thanks!
 
It's working.

2012/9/10 Muhammad Shahzad <[hidden email]>
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 <[hidden email]> 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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B92%20334%20422%2040%2088" target="_blank" value="+923344224088">+92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

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



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