I just stumbled over something you might be able to hack into what you need. Look at the “L” flag of the DIAL command.
[quote]L(x[:y][:z]): Limit the call to ‘x’ ms, warning when ‘y’ ms are left, repeated every ‘z’ ms) Only ‘x’ is required, ‘y’ and ‘z’ are optional. The following special variables are optional for limit calls: (pasted from app_dial.c)
LIMIT_PLAYAUDIO_CALLER - yes|no (default yes) - Play sounds to the caller.
LIMIT_PLAYAUDIO_CALLEE - yes|no - Play sounds to the callee.
LIMIT_TIMEOUT_FILE - File to play when time is up.
LIMIT_CONNECT_FILE - File to play when call begins.
LIMIT_WARNING_FILE - File to play as warning if ‘y’ is defined. If LIMIT_WARNING_FILE is not defined, then the default behaviour is to announce (“You have [XX minutes] YY seconds”).[/quote]
So how about using that (I assume people get transfered to an Agent at some point). It’s that Z varable that’s all that we want.