128
Installing [email protected]
Another Consideration
This works for most situations. However, there is one final consideration. What happens if
the caller enters an invalid extension or choice? By definition, an invalid mailbox has no
Done Chain. As a result, Amanda defaults to using the Done Chain of the Company
Greeting mailbox on that port.
The following diagram illustrates this:
The result is that a caller, who has selected Spanish and entered an invalid mailbox,
eventually ends up at the English Instruction mailbox!
To have callers always access the proper language Instruction mailbox, you can add a
control structure to Amanda. In this example, we might perform the following:
1.
If an alternate language is selected, remember which language was selected.
2.
Before playing the default Instruction mailbox, determine which language Instruction
mailbox should play and continue processing at that mailbox.
Using Amanda’s Tokens
This could be accomplished with tokens as follows:
1.
To remember that a specific language was selected, we could use a storage (variable)
token such as %S1 to have a value that represents the language. To assign %S1 a
value, we use the =() token. For example,
=(%S1,"SPANISH")
stores the value
"SPANISH" into %S1.
2.
To determine which language Instruction mailbox to access, we could use the I()
token, often called the If token, which allows Amanda to continue processing at the
correct mailbox.
For example,
I(%S1,=,"SPANISH",981)
checks the value of %S1 for "SPANISH" and
if it matched, then continues processing at mailbox 981 (the Spanish Instruction mail-
box in this example). Finally, to make sure that this occurs before playing the default
Instruction mailbox (in this example mailbox 991) we need to insert this control mail-
Содержание [email protected] Version 3.xx
Страница 1: ...Installing AmAndA Work Place Version 3 xx Installer s Guide Edition 7 01...
Страница 4: ...iv Installing Amanda Work Place...
Страница 60: ...52 Installing Amanda Work Place...
Страница 68: ...60 Installing Amanda Work Place...
Страница 132: ...124 Installing Amanda Work Place...
Страница 150: ...142 Installing Amanda Work Place...
Страница 156: ...148 Installing Amanda Work Place...
Страница 194: ...186 Installing Amanda Work Place...
Страница 206: ...198Installing Amanda Work Place...