Connection to older VTO2000A with SIP firmware makes container crash
I tried your solution with my VTO2000A, some years old and with SIP firmware (calls an Asterisk server on button press).
After the following log lines, the container crashes so that even a docker-compose down
can't remote it. I have to kill it manually.
Is the SIP firmware not supported, or is it supposed to work ?
dahuavto2mqtt | 2023-06-16 14:12:56,257 INFO clients.BaseClient Initialize MQTTClient
dahuavto2mqtt | 2023-06-16 14:12:56,258 INFO clients.BaseClient Starting to connect MQTTClient, Should connect: True
dahuavto2mqtt | 2023-06-16 14:12:56,258 INFO clients.BaseClient Initialize DahuaClient
dahuavto2mqtt | 2023-06-16 14:12:56,259 INFO clients.BaseClient Starting to connect DahuaClient, Should connect: True
dahuavto2mqtt | 2023-06-16 14:12:57,258 INFO clients.MQTTClient MQTT Broker is trying to connect...
dahuavto2mqtt | 2023-06-16 14:12:57,260 INFO clients.DahuaClient Connecting
dahuavto2mqtt | 2023-06-16 14:12:57,261 DEBUG asyncio Using selector: EpollSelector
dahuavto2mqtt | 2023-06-16 14:12:57,264 DEBUG clients.DahuaAPI Connection established
dahuavto2mqtt | 2023-06-16 14:12:57,264 DEBUG clients.DahuaAPI Prepare pre-login message
dahuavto2mqtt | 2023-06-16 14:12:57,282 INFO clients.MQTTClient MQTT Broker connected with result code 0
dahuavto2mqtt | 2023-06-16 14:12:57,294 DEBUG clients.DahuaAPI Data received: {'error': {'code': 268632079, 'message': 'Component error: login challenge!'}, 'id': 2, 'params': {'authorization': 'f06a0c2c39458cf610c8adf13d19284780e821ab', 'encryption': 'Default', 'mac': '4C11BF7C5650', 'random': '940181978', 'realm': 'Login to 2E04370PAN00010'}, 'result': False, 'session': 1239212025}
dahuavto2mqtt | 2023-06-16 14:12:57,295 DEBUG clients.DahuaAPI Prepare login message
dahuavto2mqtt | 2023-06-16 14:12:57,315 DEBUG clients.DahuaAPI Data received: {'id': 3, 'params': None, 'result': True, 'session': 1239212025}
dahuavto2mqtt | 2023-06-16 14:12:57,315 ERROR clients.DahuaAPI Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 90