Fixup concurrency on mediation runs and stats, improving tutorial CdrStats files

This commit is contained in:
DanB
2014-08-03 16:04:43 +02:00
parent 455379ef97
commit 90fa1465ac
7 changed files with 45 additions and 26 deletions

View File

@@ -122,6 +122,7 @@ func (osm *OsipsSessionManager) SubscribeEvents(evStop chan struct{}) error {
continue // Try again
}
if !success {
engine.Logger.Err(fmt.Sprintf("<SM-OpenSIPS> Shutting down, failed subscribing to OpenSIPS at address: <%s>", osm.cgrCfg.OsipsMiAddr))
close(osm.stopServing) // Do not serve anymore since we got errors on subscribing
return errors.New("Failed subscribing to OpenSIPS events")
}