Project

General

Profile

Bug #6946

Plantage xivo-ctid

Added by Kévin CHAILLY over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
CTI
Target version:
Security issue:
No
In versions:
17.16
Read documentation?:
Yes

Description

2017-11-29 15:14:51,522 [21138] (WARNING) (main): unexpected socket breakup
2017-11-29 15:14:51,522 [21138] (INFO) (interface_cti): disconnected broken_pipe
2017-11-29 15:14:53,234 [21138] (INFO) (xivo_cti.services.queue_entry_manager): Publishing entries for __switchboard: {'state': {'queue_id': 14, 'queue_name': u'__switchboard', 'entries': []}, 'class': 'queueentryupdate'}
2017-11-29 15:15:11,536 [21138] (ERROR) (main): [<CTI connection to user Not logged at 139688886503248>] <xivo_cti.client_connection.ClientConnection object at 0x7f0bda8939d0>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xivo_cti/ctiserver.py", line 684, in _socket_established_read
    closemenow = self.manage_tcp_connections(sel_i, msg, interface_obj)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/ctiserver.py", line 468, in manage_tcp_connections
    replies = kind.manage_connection(msg)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/interfaces/interface_cti.py", line 116, in manage_connection
    replies.extend(self._run_functions(command))
  File "/usr/lib/python2.7/dist-packages/xivo_cti/interfaces/interface_cti.py", line 129, in _run_functions
    self._cti_command_handler.parse_message(decoded_command)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/cti/cti_command_handler.py", line 32, in parse_message
    command = command_class.from_dict(message)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/cti/cti_command.py", line 57, in from_dict
    self._parse_fun(msg, command)
  File "/usr/lib/python2.7/dist-packages/xivo_cti/cti/commands/login.py", line 34, in _parse_login_id
    command.xivo_version = msg['wazoversion']
KeyError: 'wazoversion'
2017-11-29 15:15:11,536 [21138] (WARNING) (main): unexpected socket breakup
2017-11-29 15:15:11,536 [21138] (INFO) (interface_cti): disconnected broken_pipe
2017-11-29 15:15:16,700 [21138] (INFO) (xivo_cti.services.queue_entry_manager): Publishing entries for supinfo: {'state': {'queue_id': 13, 'queue_name': u'supinfo', 'entries': [{'position': 1, 'number': u'0673612592', 'join_time': 1511964874.587233, 'uniqueid': u'1511964862.23120', 'name': u'<unknown>'}]}, 'class': 'queueentryupdate'}
2017-11-29 15:15:16,702 [21138] (INFO) (xivo_cti.services.queue_entry_manager): for queue supinfo longest wait time 42.1151509285
2017-11-29 15:15:23,354 [21138] (INFO) (xivo_cti.services.queue_entry_manager): queue __switchboard pos 1 name <unknown> number 0680456352 wait 0
2017-11-29 15:15:23,356 [21138] (INFO) (xivo_cti.services.queue_entry_manager): Publishing entries for __switchboard: {'state': {'queue_id': 14, 'queue_name': u'__switchboard', 'entries': [{'position': 1, 'number': u'0680456352', 'join_time': 1511964923.354363, 'uniqueid': u'1511964918.23135', 'name': u'<unknown>'}]}, 'class': 'queueentryupdate'}
2017-11-29 15:15:23,357 [21138] (INFO) (xivo_cti.services.queue_entry_manager): for queue __switchboard longest wait time 0.00307297706604
2017-11-29 15:15:23,650 [21138] (INFO) (xivo_cti.services.queue_entry_manager): queue __switchboard pos 1 name unknown number 0680456352 wait 0
2017-11-29 15:15:23,653 [21138] (INFO) (xivo_cti.services.queue_entry_manager): Publishing entries for __switchboard: {'state': {'queue_id': 14, 'queue_name': u'__switchboard', 'entries': [{'position': 1, 'number': u'0680456352', 'join_time': 1511964923.650834, 'uniqueid': u'1511964918.23135', 'name': u'unknown'}]}, 'class': 'queueentryupdate'}
2017-11-29 15:15:23,658 [21138] (INFO) (xivo_cti.services.queue_entry_manager): Publishing entries for __switchboard_hold: {'state': {'queue_id': 6, 'queue_name': u'__switchboard_hold', 'entries': [{'position': 1, 'number': u'1231', 'join_time': 1511964411.896114, 'uniqueid': u'1511964410.23020', 'name': u'Std SOCARA'}]}, 'class': 'queueentryupdate'}
2017-11-29 15:15:23,660 [21138] (INFO) (xivo_cti.services.queue_entry_manager): Publishing entries for supinfo: {'state': {'queue_id': 13, 'queue_name': u'supinfo', 'entries': [{'position': 1, 'number': u'0673612592', 'join_time': 1511964874.587233, 'uniqueid': u'1511964862.23120', 'name': u'<unknown>'}]}, 'class': 'queueentryupdate'}

History

#1 Updated by Pascal Cadotte-Michaud over 1 year ago

  • Target version set to 17.17
  • Assignee set to Pascal Cadotte-Michaud
  • Status changed from New to Resolved

Cette erreur est dû à un client se connectant avec une version du client qui n'est pas compatible avec la version du serveur.

J'ai modifié le serveur pour avoir le log habituel pour les changements de version du protocole. Le client aura également une popup d'erreur.

2017-11-29 10:37:55,445 [14477] (INFO) (xivo_cti.authentication): alice failed to connect: version mismatch 2.2 <> 2.3

#2 Updated by Pascal Cadotte-Michaud over 1 year ago

Nouveau message de log:

2017-11-29 11:02:28,149 [19139] (INFO) (xivo_cti.authentication): alice failed to connect: the client protocol version 2.2 is different from the server protocol version 2.3

Also available in: Atom PDF