[OpenSIPS-Users] Accounting BYE response

Ben Newlin Ben.Newlin at genesys.com
Fri Sep 7 16:40:21 EDT 2018


I am having an issue trying to add values to accounting based on the response to the BYE request.

We use the dialog timeout mechanism to terminate long calls in our system. In some cases, these are “valid” calls that remained connected for too long due to some error elsewhere in the application. But sometimes one or both ends of the call believe they have disconnected, but we did not receive or process the disconnect, due to a malformed BYE or a network disruption. In these cases, when the Dialog timeout is reached and OpenSIPS generates a BYE to both parties, they will respond with a 481.

What I want is to set a CDR flag on receipt of that 481 to indicate that there was an error and the calculated call time may not be correct. But it seems that any accounting flags set after the BYE is sent are not honored. Is there any way to accomplish this?

This is my attempt:

  $acc_extra(disconnect_error) = "true";


Ben Newlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180907/cb76e41a/attachment.html>

More information about the Users mailing list