You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a script to capture all callcenter related events based on the example log_reg_attempt.py and it's working good, but if FS restarts I get the error:
Error receiving data, is FreeSWITCH running?
Which comes from receive_events() (line 89).
I'm trying to reconnect or handle this as exception but I'm not having luck. How can I do it to detect the disconnect and reconnect again?
An easy way to test this is just to kill the freeswitch process with the script running.
Thanks!
The text was updated successfully, but these errors were encountered:
I managed to have it working by checking fs.connected in the while loop before gevent.sleep(1), if is False I sleep for 10 seconds and then just call fs_login() again.
Hi,
I'm working on a script to capture all callcenter related events based on the example
log_reg_attempt.py
and it's working good, but if FS restarts I get the error:Which comes from
receive_events()
(line 89).I'm trying to reconnect or handle this as exception but I'm not having luck. How can I do it to detect the disconnect and reconnect again?
An easy way to test this is just to kill the freeswitch process with the script running.
Thanks!
The text was updated successfully, but these errors were encountered: