Ultimate AA script
Suffering the AA menu prompt tree changing that you need to modify the script frequently? Or trying to find an AA script can fit all menu prompt tree?
You really can create an ultimate script that can fit all prompt structure
Here is the solution:
Think about what is changing? It¿s the menu prompt tree. So instead of modifying script, we create a flat file that can hold all prompt tree information. If we need to change it we change that data file. So the script¿s responsibility is only to have the intelligence to read and interpret the data file and we don¿t need to modify script when menu tree changed.
#Beginning of prompt tree data file
#Should have a main menu prompt(welcome prompt) to lead called to
#the following menu tree
#first level down (Sub menu level 1)
2 _Tech_Support.au (1 for data, 2 for voice, 3 for video)
#second level down (sub menu level 2)
# end of data file
We need a main menu prompt as usual Caller will hear this prompt when calling pilot number This is the same as normal AA welcome prompt, it will lead the caller to the menu above
We should have a configurable parameter in script for data file name so we can configure it from IOS . When script start reading the data file it should interpret the script like this:
When first character is not a number ignore that line.
When there is a number follow by the first then it¿s a destination number, do a call setup to that destination number. If it¿s an audio prompt name, play that prompt then continue. Script should keep reading the file until reach a destination number.
Theoretically it can go to any depth of prompt tree.
Use the data above as an example:
The welcome prompt will guide users to press 1 for ¿, press 2 for ¿ and press 3 for ¿.
Notice that options 1 & 3 are associated with numbers that correspond to Tcl application where you know the destination number you want to reach. Therefore, it will connect that destination number.
Option 2 is associated with another prompt, at which further information will be given to the caller until a final destination number is obtained. At the 2nd level, the first digit is ¿2¿ which signifies that it is from option 2 in the previous level
The process continues to the last level or until a final destination number is reached
Take another example
2 _Sales.au (1 for new, 2 for used)
# second level down (sub menu level 2)
21 _new.au (1 for res, 2 for comm.)
22 _used.au (1 for res, 2 for comm)
# third level down (sub menu level 3)
If caller select 2-1 then will hear the selection 1 for residential 2 for commercial
if caller select 2-1-1 will be connected to 2001 which is sales ¿ new -residential
If caller select 2-2-2 will be connected 2004 which is sales ¿used ¿ commercial
This is the basic concept, hope it gives you an idea to create your own ultimate AA script.