ami: TCP client with parser, list actions, ping and reconnect backoff
Parser tests replay a real Asterisk 24 session recorded byte for byte, in every chunking from 1 byte up. Client tests use an in-process fake AMI. Checked live against the container: login, command, hard kill rejects the pending action, reconnect follows the 1/2/4/8/16/30 s backoff. Task: M2-T1
This commit is contained in:
1 parent
9a81e37725
commit
70b0a92666
7 files changed
+800
No files matched your search
@@ -85,6 +85,9 @@ Details:
|
||||
- Send `Action: Ping` every 20 s. If no reply in 10 s, destroy the socket and reconnect.
|
||||
- Reconnect backoff: 1, 2, 4, 8, 16, 30, 30, … seconds.
|
||||
- Pending actions reject with `AmiDisconnectedError` when the socket closes.
|
||||
- Some list actions answer an empty list with `Response: Error` instead of an empty EventList
|
||||
(Asterisk 24: `PJSIPShowContacts` → `Message: No Contacts found`, ending in a bare LF). `actionList`
|
||||
turns `No … found` errors into `[]`. The parser strips stray CR/LF from the end of values.
|
||||
- Default action timeout: 10 s.
|
||||
- **Never log the Login action fields.**
|
||||
|
||||
|
||||
Reference in new issue
Block a user