"show channels" will display all calls including Duration and BridgeTo. You can check the BridgeTo column to determine if one call leg is still attached to the other. If that fails, you can also check the duration for hung calls. To automate, there are a number of approaches. I personally suggest looking into writing/deploying an Asterisk manager.
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Savoy, Kevin - Williston, ND Sent: Wednesday, January 17, 2007 2:08 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] How to detect long calls We have been running an Asterisk box with 1.2.9.1 on it since August in a call center environment. We use the Asterisk box as an IVR and then pass the calls on to a Nortel Option 11C. Today we found in our long distance bill two calls that lasted a VERY long time. One was 58 hours and another was 38 DAYS!!! Nortel does not show this call being that long. Obviously the person that called in didn't hold the line for 58 days so somehow between Asterisk and MCI the call got stuck open and didn't hang up on the network. My question is two parts, part one, has anyone heard of anything like this where a call doesn't hang up properly and seems "stuck" in the system. Part two is there anyway to monitor in Asterisk the length of all active calls and then if a call lasts longer then, say one hour, we could send off a text message or warning. Any ideas or comments would be helpful Thanks _____________________ Kevin Savoy Business Unit Telecom Analyst 2218 4th Ave W Williston, ND 58801 Ph: 701-774-4023 Fax: 701-774-2901 <http://www.novo1.com/> http://www.novo1.com Novo 1 is a service mark of Novo 1, Inc
image001.gif
Description: GIF image
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users