[asterisk-dev] How to retrieve current time on hold?

Russell Bryant russell at digium.com
Tue May 31 01:27:16 CDT 2011



----- Original Message -----
> I am interested in writing a script that can retrieve which extensions
> are currently on
> hold and how long they have been on hold for.
> 
> I see that from the CLI I can use "core show hints" to actually find
> which extensions have
> State:Hold and I can also use "core show channels" to trace what/where
> the channel/extension is connected.
> 
> I cannot however find a current hold time for how long an
> extension/channel has been on
> hold. I searched the mysql db but did not find the information (or
> just didn't know what I was looking for).
> 
> What command and/or where should I be looking to find this
> information? Maybe in a logfile somewhere?

This information does not exist anywhere in Asterisk.  The only way to do it is to watch state changes from a manager interface application track the times yourself.

-- 
Russell Bryant
Digium, Inc.   |   Engineering Manager, Open Source Software
445 Jan Davis Drive NW    -     Huntsville, AL 35806  -  USA
www.digium.com  -=-  www.asterisk.org -=- blogs.asterisk.org



More information about the asterisk-dev mailing list