Skip to content

Instantly share code, notes, and snippets.

@ambiorixg12
Created March 5, 2021 04:59
Show Gist options
  • Select an option

  • Save ambiorixg12/23469d6acadb4ee98454312d19dbe243 to your computer and use it in GitHub Desktop.

Select an option

Save ambiorixg12/23469d6acadb4ee98454312d19dbe243 to your computer and use it in GitHub Desktop.
asterisk sequential audio plain
[audio-admin]
exten=>_x.,1,Answer()
same=>n,Noop( ******* ${DB(test/count)} ***)
same=>n,GotoIf($[${DB(test/count)} >4]?del)
same=>n,GotoIf($[${DB(test/count)} >0]?inc)
same =>n,Set(DB(test/count)=1)
same=>n,Set(COUNT=${DB(test/count)})
same => n,SayNumber(${COUNT})
same=>n,hangup()
same => n(inc),Set(DB(test/count)=$[${DB(test/count)} + 1])
same=>n,Set(COUNT=${DB(test/count)})
same => n,SayNumber(${COUNT})
same=>n,hangup()
same=>n(del),Set(del=${DB_DELETE(test/count)})
same=>n,playback(im-sorry)
same=>n,hangup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment