mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
small corrections in call clearing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@242933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -371,10 +371,11 @@ int ooCleanCall(OOH323CallData *call)
|
||||
}
|
||||
}
|
||||
|
||||
pctxt = call->msgctxt;
|
||||
freeContext(pctxt);
|
||||
free(pctxt);
|
||||
call->msgctxt = NULL;
|
||||
if ((pctxt = call->msgctxt) != NULL) {
|
||||
freeContext(pctxt);
|
||||
free(pctxt);
|
||||
call->msgctxt = NULL;
|
||||
}
|
||||
/* May !!!! Fix it !! */
|
||||
/* free(pctxt); */
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -1595,6 +1595,8 @@ int ooHandleH2250Message(OOH323CallData *call, Q931Message *q931Msg)
|
||||
ret = ooH323CallAdmitted (call);
|
||||
}
|
||||
|
||||
call->callState = OO_CALL_CONNECTING;
|
||||
|
||||
} /* end ret == OO_OK */
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user