|
Hi, I am trying to branch a call based on it's duration but ${CDR(duration)} is always 0. (The idea is to keep ringing the operator until a certain amount of time has lapsed) This does not work: exten => s,4,Background(local/script8) exten => s,5,Dial(${OPERATOR},30,tr) exten => s,6,Noop(${CDR(duration)}) exten => s,7,GotoIf($[${CDR(duration)} < 80]?4) exten => s,8,Playback(local/script7) CLI output: -- Nobody picked up in 30000 ms -- Executing NoOp("SIP/mvn-f877", "0") in new stack -- Executing GotoIf("SIP/mvn-f877", "1?4") in new stack -- Goto (ivr,s,4) -- Executing BackGround("SIP/mvn-f877", "local/script8") in new stack Any suggestions would be appreciated. Thank you Marnus van Niekerk -- "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. |
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
