Schnup89 / ioBroker.pbx-3cx

Anbindung von 3CX Telefonanlagen
MIT License
2 stars 0 forks source link

Adapter wird für 5 min. gelb #7

Closed baerenwaldfreund closed 1 year ago

baerenwaldfreund commented 1 year ago

Ich habe den Abfrageintervall auf 300 sec. eingestellt. Genau nach einer Stunde wird der Adapter für 5 min. gelb. Danach wechselt er wieder in grün. Hier ein Auszug aus den Logs:

2023-02-22 15:33:16.012 | warn | PBX-Connection Changed isConnected: true -> grün 2023-02-22 16:33:15.778 | error | PBX-Connection Changed isConnected: false -> gelb 2023-02-22 16:38:15.781 | warn | PBX-Connection Changed isConnected: true -> grün

d.h. zwischen Connected: false und Connected: true ist der Adapter immer gelb.

Schnup89 commented 1 year ago

Würdest du bitte das Log mit aktiviertem Debugging hier rein stellen?

Da es keine Error Meldung gab gehe ich von einem Cookie refresh aus. Im debug sichtbar mit Code 401.

Wenn dem so ist lasse ich mir was einfallen z.b. Cookie refresh alle 30 Minuten. Grund siehe Cookie issued hier im repo.

baerenwaldfreund commented 1 year ago

Ich habe mal das Intervall auf 60s herunter gesetzt. Hier das Ergebnis des Logs:

` 2023-02-24 16:29:25.895 - debug: pbx-3cx.0 (636679) Update json of SystemStatus

2023-02-24 16:29:25.896 - debug: pbx-3cx.0 (636679) Update json of CallLog?TimeZoneName=Europe%2FBerlin&callState=All&dateRangeType=Today&fromFilter=&fromFilterType=Any&numberOfRows=50&searchFilter=&startRow=0&toFilter=&toFilterType=Any 2023-02-24 16:29:25.900 - debug: pbx-3cx.0 (636679) Result: Unathorized (HTTP401) 2023-02-24 16:29:25.900 - warn: pbx-3cx.0 (636679) Error getting Endpoint: SystemStatus 2023-02-24 16:29:25.901 - debug: pbx-3cx.0 (636679) Result: Unathorized (HTTP401) 2023-02-24 16:29:25.901 - warn: pbx-3cx.0 (636679) Error getting Endpoint: CallLog?TimeZoneName=Europe%2FBerlin&callState=All&dateRangeType=Today&fromFilter=&fromFilterType=Any&numberOfRows=50&searchFilter=&startRow=0&toFilter=&toFilterType=Any 2023-02-24 16:29:25.903 - error: pbx-3cx.0 (636679) PBX-Connection Changed isConnected: false 2023-02-24 16:29:25.914 - debug: pbx-3cx.0 (636679) Got Cookie: .AspNetCore.CookiesA=[...] 2023-02-24 16:30:25.895 - debug: pbx-3cx.0 (636679) Update json of SystemStatus 2023-02-24 16:30:25.906 - warn: pbx-3cx.0 (636679) PBX-Connection Changed isConnected: true 2023-02-24 16:30:30.859 - silly: pbx-3cx.0 (636679) redis message expired/evicted 2023-02-24 16:31:25.896 - debug: pbx-3cx.0 (636679) Update json of SystemStatus 2023-02-24 16:31:25.896 - debug: pbx-3cx.0 (636679) Update json of CallLog?TimeZoneName=Europe%2FBerlin&callState=All&dateRangeType=Today&fromFilter=&fromFilterType=Any&numberOfRows=50&searchFilter=&startRow=0&toFilter=&toFilterType=Any 2023-02-24 16:32:25.896 - debug: pbx-3cx.0 (636679) Update json of SystemStatus `

Die Gültigkeit des Cookies scheint eine Dauer von 1h zu haben.

Schnup89 commented 1 year ago

Super, vielen Dank für die Logs, Problem wird mit fix für https://github.com/Schnup89/ioBroker.pbx-3cx/issues/6 behoben