After moving Asterisk from one server to another, I noticed that ASR dropped by 15-20 %. Also I noticed following warning in logs file
[Dec 8 15:52:00] WARNING[4771][C-00000031] pbx.c: Maximum loadavg limit of 0.900000 load exceeded by 'SIP/889-00000061' (currently 1.010000)!
[Dec 8 15:52:00] WARNING[4771][C-00000031] chan_sip.c: Failed to start PBX (call limit reached)
maxload
was set to 2 and later commented. The real CPU load was below 50 %, I have no clue, why Asterisk was mistaken.
mysql> SELECT
-> terminatecauseid,
-> count(terminatecauseid),
-> count(terminatecauseid) * 100 / t.cnt
-> FROM cc_call c
-> cross join ( select count(1) as cnt FROM cc_call n where n.starttime BETWEEN '' AND '') t
-> where c.starttime BETWEEN '' AND ''
-> group by c.terminatecauseid;
+------------------+-------------------------+----------------------------------------+
| terminatecauseid | count(terminatecauseid) | count(terminatecauseid) * 100 / t.cnt |
+------------------+-------------------------+----------------------------------------+
| 0 | 16731 | 3.1444 |
| 1 | 184780 | 34.7277 |
| 2 | 21788 | 4.0948 |
| 3 | 51831 | 9.7411 |
| 4 | 165769 | 31.1547 |
| 5 | 40409 | 7.5945 |
| 6 | 50775 | 9.5427 |
+------------------+-------------------------+----------------------------------------+
Removing maxload
helped, however I still can see, that congestion is above normal. As I understand 6 stands for CHANUNAVAIL and 5 for CONGESTION.
What is the congestion and chanuavail parameters about? What else can affect it? How to distinguish congestion of my own Asterisk and "congestion responses" sent by donwstream softswitches ?