I have a IVR i’m creating that i’d like to collect several inputs into (up to 10) a single string. I’m stuck on how to attempt this. I think I can use the array command but I’m not sure exactly how to write it out.
Basically the user would get a prompt that says something like "please enter your numbers"
They enter 01
it accepts it and says please enter your next number
they enter 02
etc… up to 10 #'s
They can end the entry any time by pressing *
The end result would be a single string of characters that say something like 01@02@03 etc…
Oh and they cant enter duplicates…
I’m thinking I’m going to have to do this in two macros of sorts… the 1st one collects the digit and then calls out to another macro to check and see if it’s already been entered…
I would assume I can use astdb to store the data as I’m building it?
I really dont want to use an agi script because I’m trying to keep as much of this inside asterisk as possible (for saving of resources…)