mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Adding the default tenant for ProcessCDR if missing
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user