<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
I am trying to branch a call based on it's duration but
${CDR(duration)} is always 0.<br>
(The idea is to keep ringing the operator until a certain amount of
time has lapsed)<br>
<br>
This does not work:<br>
exten => s,4,Background(local/script8)<br>
exten => s,5,Dial(${OPERATOR},30,tr)<br>
exten => s,6,Noop(${CDR(duration)})<br>
exten => s,7,GotoIf($[${CDR(duration)} < 80]?4)<br>
exten => s,8,Playback(local/script7)<br>
<br>
CLI output:<br>
-- Nobody picked up in 30000 ms<br>
-- Executing NoOp("SIP/mvn-f877", "0") in new
stack<br>
-- Executing GotoIf("SIP/mvn-f877", "1?4") in new
stack<br>
-- Goto (ivr,s,4)<br>
-- Executing BackGround("SIP/mvn-f877", "local/script8")
in new
stack<br>
<br>
<br>
Any suggestions would be appreciated.<br>
<br>
<br>
Thank you<br>
<br>
<br>
Marnus van Niekerk<br>
</font>
<pre class="moz-signature" cols="72">--
"Opportunity is missed by most people because it is
dressed in overalls and looks like work."
Thomas Alva Edison - Inventor of 1093 patents,
including the light bulb, phonogram and motion pictures.
</pre>
</body>
</html>