mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-13 19:56:38 +05:00
Return usage as 0 in case of errors on SMG.GetMaxUsage to cope with OpenSIPS
This commit is contained in:
@@ -1019,6 +1019,7 @@ func (smg *SMGeneric) CallBiRPC(clnt rpcclient.RpcClientConnection, serviceMetho
|
||||
}
|
||||
|
||||
func (smg *SMGeneric) BiRPCV1GetMaxUsage(clnt rpcclient.RpcClientConnection, ev SMGenericEvent, maxUsage *float64) error {
|
||||
*maxUsage = 0 // Bug in OpenSIPS, remove in the future
|
||||
maxUsageDur, err := smg.GetMaxUsage(ev)
|
||||
if err != nil {
|
||||
return utils.NewErrServerError(err)
|
||||
|
||||
Reference in New Issue
Block a user