mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 10:36:24 +05:00
Add source *sessions in case that isn't present when SessionS send the CDR to CDRServer to be processed
This commit is contained in:
committed by
Dan Christian Bogos
parent
8b08199b74
commit
0ed30ff0ea
@@ -2550,6 +2550,9 @@ func (sS *SessionS) BiRPCv1ProcessCDR(clnt rpcclient.RpcClientConnection,
|
||||
if cgrEvWithArgDisp.ID == "" {
|
||||
cgrEvWithArgDisp.ID = utils.GenUUID()
|
||||
}
|
||||
if _, has := cgrEvWithArgDisp.Event[utils.Source]; !has {
|
||||
cgrEvWithArgDisp.Event[utils.Source] = utils.MetaSessionS
|
||||
}
|
||||
|
||||
// RPC caching
|
||||
if sS.cgrCfg.CacheCfg()[utils.CacheRPCResponses].Limit != 0 {
|
||||
|
||||
Reference in New Issue
Block a user