mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 13:19:53 +05:00
Detect active single-leg channels
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user