def dispose(self): if self.timeouts: return # we have to wait some responses MediaCall.dispose(self) self._state = "DISCONNECTED" self._dispatch("on_call_ended") self._connection.remove_call(self)
def _dispose(self): logger.info("Call has been disposed") MediaCall.dispose(self) self._remove_all_dialogs() self.stop_all_timeout() self.emit("ended") self._dispatch("on_call_ended") self._dispose_activity()
def dispose(self): MediaCall.dispose(self) self._dispatch("on_call_ended") self._dispose()