[Home]

Summary:ASTERISK-27544: have 6 asterisk servers, working perfectly, suddenly all stop responding or delaying the responses for a few minutes causing havoc
Reporter:Andres Collazos (anfecora)Labels:
Date Opened:2018-01-03 13:04:32.000-0600Date Closed:2020-01-14 11:13:33.000-0600
Priority:MajorRegression?Yes
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:13.12.0 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Description: Debian GNU/Linux 8.7 (jessie) Release: 8.7 Codename: jessie Asterisk 13.12.1 Attachments:( 0) Capture.JPG
( 1) trace.txt
Description:we have 6 Freeswitches and 6 asterisk processing calls perfectly for weeks but randomly all servers stop responding for several minutes.
Asterisk does not crash it looks like it is slowed down.
we are using chansip.
there is no sign of over load since asterisk is only using 10% load.
no high memory utilization.
we still puzzling about this issue since it happens in all asterisk servers at the same time.
Comments:By: Asterisk Team (asteriskteam) 2018-01-03 13:04:33.369-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2018-01-03 13:07:17.803-0600

The version of Asterisk you are using is over a year old so upgrading would be needed before we can look into this.

As well we need more information. What do the Asterisk servers do? What do you mean by slow down? How are they configured? Are you using realtime?

By: Andres Collazos (anfecora) 2018-01-03 13:07:19.852-0600

this is a sample of what happens with new calls at the time of the issue. other established dialog seem to be ok during the event.

it is happening very random;y but at least once a week, we had troubleshoot database network, but no leads.

thank you.

By: Joshua C. Colp (jcolp) 2018-01-03 13:13:08.905-0600

If you are using realtime then ANY database blip or interruption will have a negative impact on chan_sip, which will block traffic from being processed.

By: Andres Collazos (anfecora) 2018-01-03 18:35:12.619-0600

What do the Asterisk servers do?
we are using asterisk as feature servers, they do not register any user
What do you mean by slow down?
seems to freeze and not respond for few minutes but never crashes only affecting new dialog
How are they configured?
they have a basic dialplan that sends control to an agi server on the same physical server.
Are you using realtime?
yes, but only for queues application.

By: Joshua C. Colp (jcolp) 2018-01-03 19:18:59.304-0600

Your trace disagrees that the database is only used for queues:

{noformat}
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Connection okay.
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM asterisk_sip WHERE name = 'freeswitch' AND host = 'dynamic'
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Connection okay.
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM asterisk_sip WHERE name = 'freeswitch'
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Connection okay.
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM asterisk_sip WHERE host = '10.12.77.39' AND callbackextension = 'trunk-+22222000000' AND port = '5060'
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Connection okay.
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM asterisk_sip WHERE host = '10.12.77.39' AND port = '5060'
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Connection okay.
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM asterisk_sip WHERE ipaddr = '10.12.77.39' AND port = '5060'
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Connection okay.
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM asterisk_sip WHERE host = '10.12.77.39' AND insecure LIKE '%port%' ORDER BY host
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Connection okay.
[Dec 31 11:22:50] DEBUG[21533][C-00114013] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM asterisk_sip WHERE ipaddr = '10.12.77.39' AND insecure LIKE '%port%' ORDER BY ipaddr
{noformat}

Those queries are in regards to chan_sip.

By: Asterisk Team (asteriskteam) 2018-01-18 12:00:01.016-0600

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines