|
|
@ -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) |
|
|
|