Merge branch 'master' of 13e7git:fetap

This commit is contained in:
Frederic 2015-05-19 22:22:32 +02:00
commit 67a9974ef8
2 changed files with 6 additions and 0 deletions

View file

@ -202,6 +202,9 @@ class DialingState(AbstractState):
self._controller.get_phone().call(self.__number) self._controller.get_phone().call(self.__number)
return ConnectingState return ConnectingState
def on_incoming_call(self):
self._controller.get_phone().decline_call()
class StateMachineController(object): class StateMachineController(object):
def __init__(self, phone, feap): def __init__(self, phone, feap):
self.__state = InitState(self) self.__state = InitState(self)

View file

@ -113,6 +113,9 @@ class PhoneInterface(object):
def accept_call(self): def accept_call(self):
self.__core.accept_call(self.__core.current_call) self.__core.accept_call(self.__core.current_call)
def decline_call(self):
self.__core.decline_call(self.__core.current_call, linphone.Reason.Busy)
def end_call(self): def end_call(self):
self.__core.terminate_call(self.__core.current_call) self.__core.terminate_call(self.__core.current_call)