aboutsummaryrefslogtreecommitdiffstats
path: root/addons/ooh323c/src/oochannels.c
diff options
context:
space:
mode:
Diffstat (limited to 'addons/ooh323c/src/oochannels.c')
-rw-r--r--addons/ooh323c/src/oochannels.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/ooh323c/src/oochannels.c b/addons/ooh323c/src/oochannels.c
index 2b2f0b493..7d8c1ab72 100644
--- a/addons/ooh323c/src/oochannels.c
+++ b/addons/ooh323c/src/oochannels.c
@@ -748,8 +748,9 @@ int ooProcessCallFDSETsAndTimers
ast_mutex_lock(&call->Lock);
ooEndCall(call);
ast_mutex_unlock(&call->Lock);
- ooStopMonitorCallChannels(call);
}
+ if(call->callState >= OO_CALL_CLEARED)
+ ooStopMonitorCallChannels(call);
}
return OO_OK;