tp.ChannelInterfaceCallState.__init__(self)
tp.ChannelInterfaceHold.__init__(self)
self.__contactHandle = contactHandle
tp.ChannelInterfaceCallState.__init__(self)
tp.ChannelInterfaceHold.__init__(self)
self.__contactHandle = contactHandle
self._implement_property_get(
telepathy.interfaces.CHANNEL_INTERFACE,
self._implement_property_get(
telepathy.interfaces.CHANNEL_INTERFACE,
- if self.__calledNumer is not None:
- self._conn.session.backend.cancel(self.__calledNumer)
- self._delayedClose.cancel()
+
+ if self.__calledNumber is not None:
+ _moduleLogger.debug("Cancelling call")
+ self._conn.session.backend.cancel(self.__calledNumber)
assert self.__contactHandle == contact, "%r != %r" % (self.__contactHandle, contact)
contactNumber = contact.phoneNumber
assert self.__contactHandle == contact, "%r != %r" % (self.__contactHandle, contact)
contactNumber = contact.phoneNumber
self.CallStateChanged(self.__contactHandle, telepathy.constants.CHANNEL_CALL_STATE_RINGING)
self._conn.session.backend.call(contactNumber)
self._delayedClose.start(seconds=0)
self.CallStateChanged(self.__contactHandle, telepathy.constants.CHANNEL_CALL_STATE_RINGING)
self._conn.session.backend.call(contactNumber)
self._delayedClose.start(seconds=0)
self.close()
@misc_utils.log_exception(_moduleLogger)
def _on_close_requested(self, *args):
_moduleLogger.debug("Cancel now disallowed")
self.close()
@misc_utils.log_exception(_moduleLogger)
def _on_close_requested(self, *args):
_moduleLogger.debug("Cancel now disallowed")