Detect active single-leg channels

This commit is contained in:
Brice Heppner
2015-11-30 12:08:16 +00:00
parent 251129f543
commit 0328f065bd

View File

@@ -376,7 +376,7 @@ func (sm *FSSessionManager) SyncSessions() error {
}
var stillActive bool
for _, fsAChan := range aChans {
if fsAChan["call_uuid"] == session.eventStart.GetUUID() { // Channel still active
if fsAChan["call_uuid"] == session.eventStart.GetUUID() || (fsAChan["call_uuid"] == "" && fsAChan["uuid"] == session.eventStart.GetUUID()) { // Channel still active
stillActive = true
break
}