Fixup CgrId in FS-SM

This commit is contained in:
DanB
2014-04-08 21:30:23 +02:00
parent c11e5ae7e7
commit a7b71bae43
2 changed files with 3 additions and 2 deletions

View File

@@ -122,7 +122,8 @@ func (fsev FSEvent) GetTOR(fieldName string) string {
return utils.FirstNonEmpty(fsev[fieldName], fsev[TOR], config.CgrConfig().DefaultTOR)
}
func (fsev FSEvent) GetCgrId() string {
return utils.Sha1(fsev[UUID], fsev[SETUP_TIME])
setupTime, _ := fsev.GetSetupTime("")
return utils.Sha1(fsev[UUID], setupTime.String())
}
func (fsev FSEvent) GetUUID() string {
return fsev[UUID]