Adding the default tenant for ProcessCDR if missing

This commit is contained in:
DanB
2020-09-14 17:27:07 +02:00
parent e2c32e9836
commit ebf9ffe968

View File

@@ -3666,6 +3666,9 @@ func (sS *SessionS) BiRPCv1DeactivateSessions(clnt rpcclient.ClientConnector,
}
func (sS *SessionS) processCDR(cgrEv *utils.CGREventWithOpts, flags []string, rply *string) (err error) {
if cgrEv.Tenant == "" {
cgrEv.Tenant = sS.cgrCfg.GeneralCfg().DefaultTenant
}
ev := engine.MapEvent(cgrEv.Event)
cgrID := GetSetCGRID(ev)
s := sS.getRelocateSession(cgrID,