Skip to content

Handling exceptions when FS disconnects #45

@badcrc

Description

@badcrc

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:

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!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions