From 6a4d207c95f0046ba364b7579952b2cc91c63048 Mon Sep 17 00:00:00 2001 From: hyegeek Date: Sun, 29 Jan 2017 07:22:38 -0800 Subject: [PATCH] Move MixMonitor to s instead of talk MixMonitor only needs to run once, so I moved it to s so that there is no reason to do an if every time through the loop. --- helloyouthere.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helloyouthere.txt b/helloyouthere.txt index 354bcd0..e857fc5 100644 --- a/helloyouthere.txt +++ b/helloyouthere.txt @@ -1,6 +1,7 @@ [Kids] exten => s,1,Answer() same => n,Set(i=0) +same => n,Set(i=${IF($[${i} >= 18]?10:$[0${i}+1])}) same => n,Goto(talk,1) ; Based off of 18 states. @@ -10,9 +11,6 @@ same => n,Goto(talk,1) exten => talk,1,Set(i=${IF($[${i} >= 18]?10:$[0${i}+1])}) -; Turn on recording first time through. -same => n,ExecIf($[${i}=1]?MixMonitor(kids-${UNIQUEID}.wav)) - ; First 8 recordings are of the 4 year old, after than move on same => n,GotoIf($[${i} >= 9]?phonegrab)