コード例 #1
0
 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)
コード例 #2
0
ファイル: UaStateConnected.py プロジェクト: gtkiller/b2bua
 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)
コード例 #3
0
ファイル: UacStateCancelling.py プロジェクト: drlior/b2bua
 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)
コード例 #4
0
ファイル: UacStateCancelling.py プロジェクト: DarthRa/pulsar
 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)
コード例 #5
0
ファイル: UaStateDead.py プロジェクト: gtkiller/b2bua
 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
コード例 #6
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
     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
コード例 #7
0
ファイル: UaStateDisconnected.py プロジェクト: biddyweb/b2bua
 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)
コード例 #8
0
ファイル: UaStateFailed.py プロジェクト: drlior/b2bua
 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)