Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
180 stars 174 forks source link

a2billing.pho agi stuck on channel close #95

Open evgenyh opened 9 years ago

evgenyh commented 9 years ago

Hi guys,

in our installation a2billing.php from time to time completely hangs asterisk. This mainly happens on an established call channel when one of sides have a very bad link. When one side silently dies, asterisk trying to close the channel, when a2billing.php yet tries to complete it's execution. As a result asterisk comes onto infinite loop in attempt to close this channel. In such situation it also wont accept any new connections and can be accessible via CLI only. Only complete killing and restarting of asterisk solves this problem.

Thanks

ghost commented 9 years ago

a) set your asterisk in debug mode https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

b) enable debug in a2billing agi conf to 3

and paste some information

sam123sam123 commented 8 years ago

Not sure if this is your problem but I had a similar problem when testing high call volume.

In /var/log/messages I had the following errors php: /var/www/html/a2billing/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php[140]: mysqli_real_connect(): (08004/1040): Too many connections

Check mysql max connections and max used connections

show variables like "max_connections";` show global status like "Max_used_connections";

If Max used is the same or more you need to increase max connections

Add the following to /etc/my.cnf [mysqld] max-connections=600

or whatever number you want.