ettoreleandrotognoli / python-ami

Python AMI Client
BSD 3-Clause "New" or "Revised" License
107 stars 66 forks source link

listen to event stuck when server goes off #16

Closed alirezaimi closed 6 years ago

alirezaimi commented 6 years ago

Hi when asterisk server goes off and on again i must restart event listener because event listener do not get events any more until stop and start it again . 1- how can i debug it ? 2- how can i solve this problem ?!

ettoreleandrotognoli commented 6 years ago

I dislike the solution ( I want to rafactor), but did you try to use the AutoReconnect? there is an example in mqtt_bridge. I don't know a good way to debug it, but I tested the AutoReconnect disconnecting the network, turning off the server and closing the ssh bridge.

alirezaimi commented 6 years ago

Hi Thanks for your support, this module so good that solved so many of my problem with cdr log ! very thank for that. I test AutoReconnect, i hope this solve my problem ...