ilya-savichev
ilya-savichev
> The events don't go to the response, you need to add a listener to collect them > > This is the response: > > ``` > Response: Success >...
Work! but after a minute of work, freepbx (DOWN) freezes, . although I filter events. how can I get a QueueStatus response?, because here I get queue joining events, and...
> try something like that: > > ```python > def event_listener(event): > print(event) > > # add the event listener before send the action > client.add_event_listener(event_listener) > > future =...
> But this time you sent the action twice, in the lines 27 and 34 Try to add the listener before the line 27 I added 2 times to show...
 I already tried to connect to another PBX, the result is the same. in the example where everything is read from the ATs port, for some reason it freezes...

> The response returns before the events, so it really can happen, maybe your process was closed before receiving the events In your example that worked you did a `while`...