Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 def __init__(self):
     self.memo = {}
     self.lastIdle = None
     self.lastTime = timtim()
Exemple #4
0
 def __init__(self):
     self.memo = {}
     self.lastIdle = None
     self.lastTime = timtim()