def __init__(self, ua): self.keepalives = 0 self.ka_tr = None UaStateGeneric.__init__(self, ua) self.ua.branch = None if self.ua.kaInterval > 0: Timeout(self.keepAlive, self.ua.kaInterval)
def __init__(self, ua): UaStateGeneric.__init__(self, ua) ua.on_local_sdp_change = None ua.on_remote_sdp_change = None # 300 provides good estimate on the amount of time during which # we can wait for receiving non-negative response to CANCELled # INVITE transaction. self.te = Timeout(self.goIdle, 300.0)
def __init__(self, ua): UaStateGeneric.__init__(self, None) if ua.cId != None: ua.global_config['sip_tm'].unregConsumer(ua, str(ua.cId)) ua.tr = None ua.event_cb = None ua.conn_cbs = () ua.disc_cbs = () ua.fail_cbs = () ua.on_local_sdp_change = None ua.on_remote_sdp_change = None # Keep this at the very end of processing for callback in ua.dead_cbs: callback(ua) ua.dead_cbs = () # Break cross-ref chain self.ua = None
def __init__(self, ua): UaStateGeneric.__init__(self, None) if ua.cId != None: ua.global_config['_sip_tm'].unregConsumer(ua, str(ua.cId)) ua.tr = None ua.event_cb = None ua.conn_cbs = () ua.disc_cbs = () ua.fail_cbs = () ua.on_local_sdp_change = None ua.on_remote_sdp_change = None ua.expire_timer = None ua.no_progress_timer = None ua.credit_timer = None # Keep this at the very end of processing for callback in ua.dead_cbs: callback(ua) ua.dead_cbs = () ua.cleanup() # Break cross-ref chain self.ua = None
def __init__(self, ua): UaStateGeneric.__init__(self, ua) ua.on_local_sdp_change = None ua.on_remote_sdp_change = None Timeout(self.goDead, ua.godead_timeout)