示例#1
0
文件: gateway.py 项目: AiprNick/crest
 def __init__(self, app, domain, stack):
     self.app = app
     self.realm = domain
     self.server_name = "sip:%s:%d" % (settings.SPROUT_HOSTNAME, settings.SPROUT_PORT)
     self.cx = stack.getDictionary("cx")
     self.peer = None
     self.session_id = int(time.time()) << 32
示例#2
0
 def __init__(self, app, domain, stack):
     self.app = app
     self.realm = domain
     self.server_name = "sip:%s:%d" % (settings.SPROUT_HOSTNAME, settings.SPROUT_PORT)
     self.cx = stack.getDictionary("cx")
示例#3
0
 def __init__(self, stack):
     self._pending_responses = {}
     self.cx = stack.getDictionary("cx")
示例#4
0
文件: gateway.py 项目: AiprNick/crest
 def __init__(self, stack, backend_callbacks):
     self.backend_callbacks = backend_callbacks
     self._pending_responses = {}
     self.cx = stack.getDictionary("cx")
示例#5
0
文件: gateway.py 项目: rkday/crest
 def __init__(self, app, domain, stack):
     self.app = app
     self.realm = domain
     self.server_name = "sip:%s:%d" % (settings.SPROUT_HOSTNAME,
                                       settings.SPROUT_PORT)
     self.cx = stack.getDictionary("cx")
示例#6
0
文件: gateway.py 项目: rkday/crest
 def __init__(self, stack):
     self._pending_responses = {}
     self.cx = stack.getDictionary("cx")