FS weird issue with TLS/SRTP and xml_curl on windows
hi, i have two instances of FS running on a windows server, one is used for routing to carriers and that uses xml files and that works fine, the second instance is set up to allow clients to register to it using tls and srtp and users are authenticated using xml_curl which calls a php script which inturn sends the directory users details on a register from a client. The problem is every few hours or so FS stops accepting new clients unless i restart the service, i check the php script and the webserver and those are running just fine so no idea whats causing FS to stop calling the script or something else. -- Regards, Bipin ------------------------------------------------------------------------
Hi Bipin, I've implemented a similar solution and it works correctly (without tls). If you want, give me more information (configuration, script, etc) and try to see if I find something strange. 2017-10-06 16:09 GMT+02:00 Bipin Patel <bipin@xbipin.com>:
hi,
i have two instances of FS running on a windows server, one is used for routing to carriers and that uses xml files and that works fine, the second instance is set up to allow clients to register to it using tls and srtp and users are authenticated using xml_curl which calls a php script which inturn sends the directory users details on a register from a client. The problem is every few hours or so FS stops accepting new clients unless i restart the service, i check the php script and the webserver and those are running just fine so no idea whats causing FS to stop calling the script or something else.
-- Regards, Bipin
------------------------------
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Bipin, I ran into some thing like this once. Turned out to be a the webservice which is called by xml_curl took too long to repond and FS waited there forever with out timing out. Later on timeout option is introduced in xml curl config. Try setting a reasonable timeout and see if that resolves your issue. On Fri, Oct 6, 2017 at 7:39 PM, Bipin Patel <bipin@xbipin.com> wrote:
hi,
i have two instances of FS running on a windows server, one is used for routing to carriers and that uses xml files and that works fine, the second instance is set up to allow clients to register to it using tls and srtp and users are authenticated using xml_curl which calls a php script which inturn sends the directory users details on a register from a client. The problem is every few hours or so FS stops accepting new clients unless i restart the service, i check the php script and the webserver and those are running just fine so no idea whats causing FS to stop calling the script or something else.
-- Regards, Bipin
------------------------------
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Thanks & Regards, Godson Gera FreeSWITCH Consultant <http://godson.in>
hi, the webserver and server where FS runs is same, for now i have added the timeout options in xml_curl so lets see if it happens again and ill report back, the other issue is for no reason at times FS just hangs or so, running the fs_cli app shows blank, this happened today morning itself, after killing the process and restarting the service it went back to normal Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] FS weird issue with TLS/SRTP and xml_curl on windows From: Godson Gera <godson.g@gmail.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 10/16/2017, 10:45:08 AM
Hi Bipin,
I ran into some thing like this once. Turned out to be a the webservice which is called by xml_curl took too long to repond and FS waited there forever with out timing out. Later on timeout option is introduced in xml curl config. Try setting a reasonable timeout and see if that resolves your issue.
On Fri, Oct 6, 2017 at 7:39 PM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
i have two instances of FS running on a windows server, one is used for routing to carriers and that uses xml files and that works fine, the second instance is set up to allow clients to register to it using tls and srtp and users are authenticated using xml_curl which calls a php script which inturn sends the directory users details on a register from a client. The problem is every few hours or so FS stops accepting new clients unless i restart the service, i check the php script and the webserver and those are running just fine so no idea whats causing FS to stop calling the script or something else.
-- Regards, Bipin
------------------------------------------------------------------------
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
-- Thanks & Regards, Godson Gera FreeSWITCH Consultant <http://godson.in>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
hi, after setting timeout etc it is better but there is something still wrong because xml_curl doesnt seem to cache properly as the time now shows negative and it still calls script for registration details Time Now: -101036188 Expires: 1044723532 2017-12-09 09:57:29.764708 [DEBUG] switch_xml.c:1990 Cache expired for user@1.2.3.4, doing fresh lookup 2017-12-09 09:57:29.804735 [DEBUG] switch_xml.c:2068 caching lookup for user user@1.2.3.4 for 1200000 milliseconds earlier both time now and expires was negative but after running FS with -monotonic-clock expires came to positive but time now still negative and the php script is always called rather than using cache Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] FS weird issue with TLS/SRTP and xml_curl on windows From: Bipin Patel <bipin@xbipin.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 10/17/2017, 10:54:11 AM
hi,
the webserver and server where FS runs is same, for now i have added the timeout options in xml_curl so lets see if it happens again and ill report back, the other issue is for no reason at times FS just hangs or so, running the fs_cli app shows blank, this happened today morning itself, after killing the process and restarting the service it went back to normal
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] FS weird issue with TLS/SRTP and xml_curl on windows From: Godson Gera <godson.g@gmail.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 10/16/2017, 10:45:08 AM
Hi Bipin,
I ran into some thing like this once. Turned out to be a the webservice which is called by xml_curl took too long to repond and FS waited there forever with out timing out. Later on timeout option is introduced in xml curl config. Try setting a reasonable timeout and see if that resolves your issue.
On Fri, Oct 6, 2017 at 7:39 PM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
i have two instances of FS running on a windows server, one is used for routing to carriers and that uses xml files and that works fine, the second instance is set up to allow clients to register to it using tls and srtp and users are authenticated using xml_curl which calls a php script which inturn sends the directory users details on a register from a client. The problem is every few hours or so FS stops accepting new clients unless i restart the service, i check the php script and the webserver and those are running just fine so no idea whats causing FS to stop calling the script or something else.
-- Regards, Bipin
------------------------------------------------------------------------
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
-- Thanks & Regards, Godson Gera FreeSWITCH Consultant <http://godson.in>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
hi, after trying a lot i still suffer the issue and when this happens i see the below constantly flooding the cli ..\..\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 Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] FS weird issue with TLS/SRTP and xml_curl on windows From: Bipin Patel <bipin@xbipin.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 12/9/2017, 10:01:40 AM
hi,
after setting timeout etc it is better but there is something still wrong because xml_curl doesnt seem to cache properly as the time now shows negative and it still calls script for registration details
Time Now: -101036188 Expires: 1044723532 2017-12-09 09:57:29.764708 [DEBUG] switch_xml.c:1990 Cache expired for user@1.2.3.4, doing fresh lookup 2017-12-09 09:57:29.804735 [DEBUG] switch_xml.c:2068 caching lookup for user user@1.2.3.4 for 1200000 milliseconds
earlier both time now and expires was negative but after running FS with -monotonic-clock expires came to positive but time now still negative and the php script is always called rather than using cache
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] FS weird issue with TLS/SRTP and xml_curl on windows From: Bipin Patel <bipin@xbipin.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 10/17/2017, 10:54:11 AM
hi,
the webserver and server where FS runs is same, for now i have added the timeout options in xml_curl so lets see if it happens again and ill report back, the other issue is for no reason at times FS just hangs or so, running the fs_cli app shows blank, this happened today morning itself, after killing the process and restarting the service it went back to normal
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] FS weird issue with TLS/SRTP and xml_curl on windows From: Godson Gera <godson.g@gmail.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 10/16/2017, 10:45:08 AM
Hi Bipin,
I ran into some thing like this once. Turned out to be a the webservice which is called by xml_curl took too long to repond and FS waited there forever with out timing out. Later on timeout option is introduced in xml curl config. Try setting a reasonable timeout and see if that resolves your issue.
On Fri, Oct 6, 2017 at 7:39 PM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
i have two instances of FS running on a windows server, one is used for routing to carriers and that uses xml files and that works fine, the second instance is set up to allow clients to register to it using tls and srtp and users are authenticated using xml_curl which calls a php script which inturn sends the directory users details on a register from a client. The problem is every few hours or so FS stops accepting new clients unless i restart the service, i check the php script and the webserver and those are running just fine so no idea whats causing FS to stop calling the script or something else.
-- Regards, Bipin
------------------------------------------------------------------------
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
-- Thanks & Regards, Godson Gera FreeSWITCH Consultant <http://godson.in>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Bipin Patel
-
Godson Gera
-
Jose David Jurado Alonso