Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move MixMonitor to s instead of talk #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions helloyouthere.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)

Expand Down