Merge branch 'master' of git.13e7.de:fetap
This commit is contained in:
commit
7cdc5504c5
1 changed files with 4 additions and 1 deletions
|
@ -11,12 +11,13 @@ RINGBACK_TONE = 'weckzeichen.wav'
|
|||
class PhoneEvent(object):
|
||||
RegInProgress,\
|
||||
RegSuccessfull,\
|
||||
RegReset,\
|
||||
CallIncoming,\
|
||||
CallRinging,\
|
||||
CallAccepted,\
|
||||
CallEnded,\
|
||||
CallBusy,\
|
||||
CallInvalidNumber = range(8)
|
||||
CallInvalidNumber = range(9)
|
||||
|
||||
@classmethod
|
||||
def string(cls, val):
|
||||
|
@ -58,6 +59,8 @@ class PhoneInterface(object):
|
|||
evt = PhoneEvent.RegInProgress
|
||||
elif state == linphone.RegistrationState.Ok:
|
||||
evt = PhoneEvent.RegSuccessfull
|
||||
elif state == linphone.RegistrationState.None:
|
||||
evt = PhoneEvent.RegReset
|
||||
|
||||
if evt is not None:
|
||||
for cb in self.__event_cbs:
|
||||
|
|
Loading…
Reference in a new issue