def checkAlias(self, res): if res: alias=res if genutils.isTrue(res.launch_voipaction): self.core.manageAction(alias.voip_action_name) return self.fagi.goTo(alias.contextto, alias.aliasto) self.getAction()
def checkTimeLimits(self, epoch): # check if we are out of time limits now=int(time.time()) if isTrue(self.core.configGet('protocol','timecheck')): tollerance=int(self.core.configGet('protocol','tollerance')) if(int(epoch)<now-tollerance or int(epoch)>now+tollerance): return False return True