Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_sofia tls read failure #3

Open
xbipin opened this issue Sep 25, 2019 · 2 comments
Open

mod_sofia tls read failure #3

xbipin opened this issue Sep 25, 2019 · 2 comments

Comments

@xbipin
Copy link
Contributor

xbipin commented Sep 25, 2019

i have a versy basic setup of FS with 1 profile. The profile accepts calls with TLS and sRTP and then sent to gateway in plain SIP. Im using xml_curl for users.
Every few days the profile keeps crashing or gets stuck in a loop and then i cant even restart the FS service even, have to kill it and then start it or else it wont accept any further registrations or calls. I have tried playing with xml_curl caching, watchdog etc since past one year and nothing seems to help. Even tried logging everything to file to see the cause of the crash but nothing helpful is written in log. The only error i get to see when this happens in fs_cli is below:

..\..\sofia-sip\libsofia-sip-ua\tport\tport_type_tls.c:434 tport_tls_recv() tport_type_tls(00000006A25BB0C0): tls_read() returned -1 ..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:2864 tport_recv_event() tport_recv_event(00000006A25BB0C0) ..\..\sofia-sip\libsofia-sip-ua\tport\tport_type_tls.c:434 tport_tls_recv() tport_type_tls(00000006A25BB0C0): tls_read() returned -1 ..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:2864 tport_recv_event() tport_recv_event(00000006A25BB0C0) ..\..\sofia-sip\libsofia-sip-ua\tport\tport_type_tls.c:434 tport_tls_recv() tport_type_tls(00000006A25BB0C0): tls_read() returned -1 ..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:2864 tport_recv_event() tport_recv_event(00000006A25BB0C0) ..\..\sofia-sip\libsofia-sip-ua\tport\tport_type_tls.c:434 tport_tls_recv() tport_type_tls(00000006A25BB0C0): tls_read() returned -1 ..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:2864 tport_recv_event() tport_recv_event(00000006A25BB0C0) ..\..\sofia-sip\libsofia-sip-ua\tport\tport_type_tls.c:434 tport_tls_recv() tport_type_tls(00000006A25BB0C0): tls_read() returned -1 ..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:2864 tport_recv_event() tport_recv_event(00000006A25BB0C0) ..\..\sofia-sip\libsofia-sip-ua\tport\tport_type_tls.c:434 tport_tls_recv() tport_type_tls(00000006A25BB0C0): tls_read() returned -1

@mjerris
Copy link
Collaborator

mjerris commented Sep 25, 2019

This looks like something is closing the tls port. I've never seen something like this happen before, you'd need to look for something on the system messing with this port.

@mjerris mjerris changed the title FS TLS+SRTP profile keeps crashing - FS-11643 mod_sofia tls read failure Sep 25, 2019
@xbipin
Copy link
Contributor Author

xbipin commented Sep 25, 2019

I tried to look for port conflicts in the start but nothing seems to be using that tls port I have set. There is another instance of FS running but that's using totally different sip and rtp ports. Matter of fact when the above happens I can't even shutdown the FS service, only way to fix is to kill the task and restart it and it happens at random times

This was referenced Oct 11, 2019
mjerris pushed a commit that referenced this issue Jan 9, 2020
[mod_hiredis] Xml object is not freed on load.
Alexanderdgg pushed a commit to Alexanderdgg/freeswitch that referenced this issue Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants