def OnDTMF(self, call_id=None, Digit=None): """DTMF erkannt""" nowTime = timtim() if nowTime - self.lastTime > 0.05: self.TriggerEvent("DTMF."+chr(Digit), call_id) self.lastTime = nowTime
def OnDTMF(self, call_id=None, Digit=None): """DTMF erkannt""" nowTime = timtim() if nowTime - self.lastTime > 0.05: self.TriggerEvent("DTMF." + chr(Digit), call_id) self.lastTime = nowTime
def __init__(self): self.memo = {} self.lastIdle = None self.lastTime = timtim()