lider ejabberd resource parameter was added

This commit is contained in:
Volkan Şahin 2016-06-10 10:50:20 +03:00
parent 06f65d0c35
commit 2eea107ccc
2 changed files with 4 additions and 2 deletions

View file

@ -12,6 +12,7 @@ password=
host = im.mys.pardus.org.tr host = im.mys.pardus.org.tr
port = 5222 port = 5222
receiverjid = lider_sunucu receiverjid = lider_sunucu
receiverresource = Smack
servicename = im.mys.pardus.org.tr servicename = im.mys.pardus.org.tr
fileserver = fileserver =
receivefileparam = /tmp/ receivefileparam = /tmp/

View file

@ -27,14 +27,15 @@ class Messager(slixmpp.ClientXMPP):
self.event_manger = scope.getEventManager() self.event_manger = scope.getEventManager()
self.execution_manager = scope.getExecutionManager() self.execution_manager = scope.getExecutionManager()
self.my_jid = str(self.configuration_manager.get('CONNECTION', 'uid') + '@' + self.configuration_manager.get('CONNECTION', 'servicename') + '/receiver') self.my_jid = str(self.configuration_manager.get('CONNECTION', 'uid') + '@' + self.configuration_manager.get('CONNECTION', 'servicename'))
self.my_pass = str(self.configuration_manager.get('CONNECTION', 'password')) self.my_pass = str(self.configuration_manager.get('CONNECTION', 'password'))
slixmpp.ClientXMPP.__init__(self, self.my_jid, self.my_pass) slixmpp.ClientXMPP.__init__(self, self.my_jid, self.my_pass)
self.file = None self.file = None
self.hostname = self.configuration_manager.get('CONNECTION', 'host') self.hostname = self.configuration_manager.get('CONNECTION', 'host')
self.receiver = self.configuration_manager.get('CONNECTION', 'receiverjid') + '@' + self.configuration_manager.get('CONNECTION', 'servicename') + '/Smack' self.resource_name = self.configuration_manager.get('CONNECTION', 'receiverresource')
self.receiver = self.configuration_manager.get('CONNECTION', 'receiverjid') + '@' + self.configuration_manager.get('CONNECTION', 'servicename') + '/' + self.resource_name
self.receive_file_path = self.configuration_manager.get('CONNECTION', 'receivefileparam') self.receive_file_path = self.configuration_manager.get('CONNECTION', 'receivefileparam')
self.logger.debug('[Messager] XMPP Messager parameters were set') self.logger.debug('[Messager] XMPP Messager parameters were set')