Commit Graph

51 Commits

Author SHA1 Message Date
clerie a11629f543 Readable error messages when OMM is unreachable when using cli 2023-06-17 18:27:30 +02:00
clerie 11f96a6069 Set short timeout to fail fast when the OMM is unreachable 2023-06-17 18:25:14 +02:00
clerie ddb5194320 Add project script for cli 2022-07-06 12:50:16 +02:00
clerie 003b2ff367 Make ommcli part of the module 2022-07-06 12:49:57 +02:00
clerie f8c215d380 Make encryption part of the client library and make sipauth take plain text passwords 2022-06-19 16:21:29 +02:00
clerie 0df5286c0e Ignore if socket is blocking 2022-06-19 15:41:43 +02:00
clerie 000a00fec8 Add method to filter users 2022-06-19 15:40:28 +02:00
clerie 405f71f621 Add method to filter devices 2022-06-19 14:45:26 +02:00
clerie 82378e0bd7 Add user device realation changes 2022-06-17 00:08:40 +02:00
clerie 1d60043f37 Add method for detaching device and user 2022-06-16 23:13:54 +02:00
clerie 8849b8488c Introduce ability to attach users to devices 2022-06-16 23:01:04 +02:00
clerie ac9ae74a0b Make the exception show you all unknown keys at once
In case a response type contains an unknown key, there are probably some 
more.
2022-06-16 23:00:22 +02:00
clerie 501be198c4 Allow ommsync mode to be used in cli 2022-06-16 22:40:01 +02:00
clerie 4796d1587b Improve exception message 2022-06-16 22:32:01 +02:00
clerie deba76228b Add CreatePPUser message 2022-06-16 21:29:21 +02:00
clerie 93e0676147 Add infrastructure for dealing with encryption keys 2022-06-16 14:56:39 +02:00
clerie 2d8a1897f0 Add method for changing PP user num 2022-05-02 18:54:49 +02:00
clerie e3f9fbf36b Allow modification of PPUser 2022-05-02 18:33:21 +02:00
clerie 36187c18b3 Fix message name quoting 2022-05-02 18:08:31 +02:00
clerie 2eb04e0428 Remove weird side effects that insert the values from previuos call 2022-05-02 18:07:15 +02:00
clerie 0a442e4ab5 Add child typing to all other existing message types 2022-05-02 00:41:46 +02:00
clerie bb8dd03299 Implement EnumType 2022-05-02 00:14:24 +02:00
clerie bd68cbd7d8 Bootstrap child type casting 2022-05-01 23:55:18 +02:00
clerie cf3c16c66a Refactor message classes
Message classes allow dynamic attribute access to message fields. Childs
get exposed through a dedicated class by attributes too. Message type
fields and childs have types that get enforces. None type is allowed
too while transitioning.
2022-05-01 22:32:08 +02:00
clerie 1752a9151d Add support for PP user 2022-05-01 13:27:56 +02:00
clerie 5365b942ce Add function to get all devices 2022-05-01 13:13:31 +02:00
clerie 7064d6f615 Rename get_pp_dev to get_device to match python-mitel feature naming 2022-05-01 12:53:46 +02:00
clerie 50d9b79ad0 Fix documentation 2022-05-01 12:50:59 +02:00
clerie 49a4ecc07f Remove DictRequest type 2022-04-02 21:23:43 +02:00
clerie 7076eb1543 Expose connection object directly instead of proxying the request method 2022-04-02 21:10:05 +02:00
clerie 8d2e94f5f3 Move last components of session layer to client and remove session completely 2022-01-17 12:20:54 +01:00
clerie 80fb8cd7cc Replace send and recv in connection with a concurrent synchronous implementation of request 2022-01-17 00:09:16 +01:00
clerie 8501aab7c3 Handle message parsing in connection 2022-01-16 22:29:18 +01:00
clerie 1365226c00 Use thread for receiving data 2022-01-16 22:17:28 +01:00
clerie a8d9afe3d1 Add ommsync mode 2022-01-16 13:58:38 +01:00
clerie f1c340fb3d Add GetPPDev message 2022-01-16 13:52:08 +01:00
clerie 1b0a5caa1b Pass childs to childs attribute 2022-01-16 13:47:06 +01:00
clerie c63ecf7781 Fix GetAccountResp data parsing 2022-01-06 23:58:59 +01:00
clerie 5d8affbb5f Actually pass response to exception object 2022-01-06 23:56:35 +01:00
clerie 9e1e7c3377 Fix data read loop from connection 2022-01-06 23:55:36 +01:00
clerie a87893199c Use right var name 2022-01-06 23:55:01 +01:00
clerie 5c565bc62c Use request wrapper for session login 2022-01-06 23:54:40 +01:00
clerie d14fb10ddb Import Open messages 2022-01-06 23:53:52 +01:00
clerie 3617494917 Default to unencrypted connection because the required old ssl protocols aren't supported anymore 2022-01-06 23:52:24 +01:00
clerie f62579ce90 Add GetAccount 2022-01-06 18:13:48 +01:00
clerie 496b915c9d Stop on failed login 2022-01-06 17:59:12 +01:00
clerie 9f9df79ab8 Introduce exception handling 2022-01-06 17:28:19 +01:00
clerie d821b57f7c Introduce high level OMMClient2 interface 2022-01-06 16:11:21 +01:00
clerie f7dce4bfcd Bootstrap some basic session handling 2022-01-06 16:10:30 +01:00
clerie 7c028834b9 Add message handling 2022-01-06 16:09:55 +01:00