Hi,
I'm trying to write a script that will route a call to a handset, but reroute the call after a fixed period of time.
The problem is that I won't know how long the caller has been on the line at the point this script is executed.
So I've elected to try assigning "AGE OF CALL" to a variable (finish_time) and then adding 10 seconds to it. Then comparing "finish_time" to AGE OF CALL.
This is what I have so far (finish_time is defined as seconds)
ASSIGN (AGE OF CALL + 10) to finish_time
ROUTE CALL 130 CONTROLLED
IF AGE OF CALL > finish_time THEN
ROUTE CALL 206 CONTROLLED
END IF
The script validates... but doesn't ever fall over to ext 206.
Any ideas?
I'm trying to write a script that will route a call to a handset, but reroute the call after a fixed period of time.
The problem is that I won't know how long the caller has been on the line at the point this script is executed.
So I've elected to try assigning "AGE OF CALL" to a variable (finish_time) and then adding 10 seconds to it. Then comparing "finish_time" to AGE OF CALL.
This is what I have so far (finish_time is defined as seconds)
ASSIGN (AGE OF CALL + 10) to finish_time
ROUTE CALL 130 CONTROLLED
IF AGE OF CALL > finish_time THEN
ROUTE CALL 206 CONTROLLED
END IF
The script validates... but doesn't ever fall over to ext 206.
Any ideas?