Play warning before AbsoluteTimout ends call


#1

Hi I am setting the absolute timeout of a call like such, and it works perfectly

exten => s,2,AbsoluteTimeout(180) exten => s,3,Dial(SIP/tr2/*00,,D(wwwwww1234­ 567))

Is there any way that I can play a warning message before the timeout kicks in? Just to warn the caller that they have xxx amount of time left before the call ends? Thanks


#2

Hi Better to use the L Option of the dial command

[code]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. Numbers must be integers- beware of AGI scripts that may return long integers in scientific notation (esp PHP 5.2.5&6) 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").[/code]

Ian


#3

Thanks! That is a much better way than what I was originally doing.