예제 #1
0
파일: sipthor.py 프로젝트: ryzhov/ATS0
 def __init__(self):
     self.node = GenericThorEntity(ThorNetworkConfig.node_ip, ["media_relay"], version=__version__)
     self.presence_message = ThorEvent('Thor.Presence', self.node.id)
     self.shutdown_message = ThorEvent('Thor.Leave', self.node.id)
     credentials = X509Credentials(cert_name='relay')
     credentials.session_params.compressions = (COMP_LZO, COMP_DEFLATE, COMP_NULL)
     self.sipthor_dispatchers = []
     self.additional_dispatchers = []
     EventServiceClient.__init__(self, ThorNetworkConfig.domain, credentials)
     SRVMediaRelayBase.__init__(self)
예제 #2
0
 def __init__(self):
     self.node = GenericThorEntity(ThorNetworkConfig.node_ip, ["media_relay"], version=__version__)
     self.presence_message = ThorEvent('Thor.Presence', self.node.id)
     self.shutdown_message = ThorEvent('Thor.Leave', self.node.id)
     self.sipthor_dispatchers = []
     self.additional_dispatchers = []
     credentials = X509Credentials(cert_name='relay')
     tls_context = TLSContext(credentials)
     EventServiceClient.__init__(self, ThorNetworkConfig.domain, tls_context)
     SRVMediaRelayBase.__init__(self)
예제 #3
0
 def __init__(self):
     self.node = GenericThorEntity(ThorNetworkConfig.node_ip,
                                   ["media_relay"],
                                   version=__version__)
     self.presence_message = ThorEvent('Thor.Presence', self.node.id)
     self.shutdown_message = ThorEvent('Thor.Leave', self.node.id)
     self.sipthor_dispatchers = []
     self.additional_dispatchers = []
     credentials = X509Credentials(cert_name='relay')
     tls_context = TLSContext(credentials)
     EventServiceClient.__init__(self, ThorNetworkConfig.domain,
                                 tls_context)
     SRVMediaRelayBase.__init__(self)
예제 #4
0
파일: sipthor.py 프로젝트: ryzhov/ATS0
 def _handle_SIGTERM(self, *args):
     SRVMediaRelayBase._handle_SIGTERM(self, *args)
예제 #5
0
파일: sipthor.py 프로젝트: ryzhov/ATS0
 def _handle_SIGINT(self, *args):
     SRVMediaRelayBase._handle_SIGINT(self, *args)
예제 #6
0
 def _handle_SIGTERM(self, *args):
     SRVMediaRelayBase._handle_SIGTERM(self, *args)
예제 #7
0
 def _handle_SIGINT(self, *args):
     SRVMediaRelayBase._handle_SIGINT(self, *args)