2
« on: July 24, 2009, 12:06:22 »
Thanks Marco
Well here is my solution.
mySQL is your friend in this solution. Access the asteriskcdr and use the following command:
SELECT * FROM cdr WHERE duration < 0;
This will return all the negative call durations of all the calls that where ever made. Take down the unique callerID, mine was 1251814212.2597.
Access the queuemetrics database and issue the following command:
> SELECT * FROM queue_log where call_id = "1251814212.2597";
This will display the queue_log disposition of the call.
Remove the entries from the database:
> DELETE FROM queue_log WHERE call_id = "1251814212.2597";
If your queuemetrics is set to use the queue_log file found in /var/log/asterisk/queue_log, the entries in this log file will also need to be removed.
Make sure no calls are currently been made as soon as a call is made through a queue it is written to this file.
$ asterisk -rx "show channels",
should see 0 channels.
vi /var/log/asterisk/queue_log and search for the unique callID.
Once you have found the unique callID remove all the entries found in the queue_log.
Check in the realtime monitor in queuemetrics to see if the call has been removed from inbound call waiting list.