Daniel,
Thanks, that did the trick :) I now see a Stop record instead of a
Failed.
Jan
Daniel-Constantin Mierla schreef op 2016-11-22 14:46:
Hello,
try with the response code you want to be reflected as event type to be
the first token in the acc_rad_request() parameter, like:
acc_rad_request("200 BYE with 481 response");
Cheers,
Daniel
On 22/11/2016 09:24, Jan Hazenberg wrote:
Hi all,
I have a issue here on a old OpenSER 1.3 system. We have some clients
that respond to a BYE message with a 481 resulting in a missing radius
accounting record. I have added some code to the failure route to
force accounting even if a 481 response in received:
if (t_check_status("481") && $rm == "BYE")
{
xlog("L_INFO", "INFO: [FAILURE] 481 response detected!!
Forcing accounting! - SRC=$si:$sp R=$ru ID=$ci FU=$fu M=$rm S=$rs\n");
acc_rad_request("BYE with 481 response");
}
Now OpenSER sends a accounting record, but this has the attribute
Acct-Status-Type set to Failed. This gives a problem with our
accounting service and i would like to change it to a normal Stop
record.
Is there a way to change this and force OpenSER/Kamailio to send a
Stop record instead of a Failed record?
Thanks,
Jan
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users