Closed diasbruno closed 5 years ago
The code is already there: https://github.com/EvoluxBR/greenswitch/blob/master/greenswitch/esl.py#L141
And trying on my setup here I get:
Traceback (most recent call last):
File "examples/log_reg_attempt.py", line 17, in <module>
fs.connect()
File "/Users/italorossi/Projetos/github/greenswitch/greenswitch/esl.py", line 246, in connect
raise NotConnectedError('Server closed connection, check '
greenswitch.esl.NotConnectedError: Server closed connection, check FreeSWITCH config.```
Yep, that seems right. I ran a few tests, but the issues didn't show up...so probably, we were using an old version.
Thanks.
mod_event_socket
can reject a connection because of ACL and the event it will send hasContent-Type: text/rude-rejection
.Freeswitch log:
Stacktrace: