Amanda Work Group 7xx Installation Manual
Here you can view all the pages of manual Amanda Work Group 7xx Installation Manual. The Amanda manuals for Communications System are available online for free. You can easily download all the documents as PDF.
Page 241
Chapter 12: Programming Examples 227 This configuration now changes Amanda’s standard processing and keeps the caller connected to the correct language Instruction mailbox. It works because whenever a new call is answered, Amanda initializes the %S tokens to (the empty string). Therefore, if the caller never presses 1 for Spanish, then %S1 is never set to the value MEXICAN and control is always passed on to mailbox 991 from mailbox 992. Order Shipment Information This example illustrates how you...
Page 242
228 Installing [email protected] Application The application is as follows: 1. Ask the caller to enter an order number (let’s assume that it is five digits). 2. Determine whether or not the corresponding order has shipped. 3. If the order has not shipped, inform the caller. Otherwise, tell the caller the date the order was shipped. In order for Amanda to determine an order’s shipped status and its ship date, she needs to retrieve information from some source. One possible way she can obtain the data...
Page 243
Chapter 12: Programming Examples 229 Translating to Amanda’s Tokens: 1. To ask the caller for an order number, use R(G1,%S1,20) where Greeting 1 has the recording “Please enter the five-digit order number now.” After the caller enters the order number, Amanda can perform some additional checking. For example, to determine if a five-digit order number was entered, use I(LEN[%S1],!,5, mailbox). If the number of digits stored in %S1 is not equal to 5, Amanda continues processing with mailbox...
Page 244
230 Installing [email protected] One-call and Two-call Faxbacks You can use fax files and the token programming language to perform one- call and two-call faxbacks. Most of this functionality is preconfigured for you inside Amanda using specific mailboxes. A one-call faxback is a call from a fax machine so that a document can be faxed to the caller at that fax machine. Unless you have a toll-free telephone line, the faxing is at the caller’s expense. A two-call faxback requires two calls. Someone...
Page 245
Chapter 12: Programming Examples 231 If you decide to use a fax machine and a mailbox, the mailbox that performs these tasks must have: Extension Field:@R(G1,%S1,30)J(“C:/FAX/ %S1”,””,”%X%FH”)G(999) DND: OFF Screen Calls: OFF Store Messages: YES Greeting 1: Please enter the number of the fax that you are sending new. %S1 must not be used in any other application. %X must be defined in 1001.PBX. %F must be the extension that is physically connected to the fax modem and must be set in the install.cfg...
Page 246
232 Installing [email protected] Mailbox 92000 contains the menu. It should have the following settings and greetings: Extension Field: blank DND: ON Store Messages: NO Greeting 1: If you are calling from your fax machine, please press the number corresponding to the technical report you are interested in. For report #1 on SMDI, press 1. For report #2 on Service Plans, press 2. For report #3 on Upgrading Voice Boards, press 3. Menu 1: 92001 Menu 2: 92002 Menu 3: 92003 Mailbox 92001’s Extension...
Page 247
Chapter 12: Programming Examples 233 NOTE:All the quotation marks in these token examples are single quotation marks (although double quotation marks can be used). Forward slashes are used (although double back- ward slashes \\ can also be used with this token). Two-call Faxback This example allows the caller to select one or more fax documents, and leave his fax number. The steps are as follows: 1. Request the fax area code (this is to determine whether or not to set up for long distance dialing)....
Page 248
234 Installing [email protected] Menu 2: 1000 Menu 3: 991 Mailbox 1001’s Extension field contains the tokens that determine whether or not the entered area code is local (assuming that the local area code is 714). If the area code is not local, it stores the long distance dialing digit 1 in the variable %S0. Extension Field:@I(%S1,=,714,1002)=(%S0,1)G(1003) DND: OFF Store Messages: NO If the area code is local, mailbox 1002’s Extension field sets both the long distance dialing string and the area...
Page 249
Chapter 12: Programming Examples 235 Mailbox 1004 contains a menu that lists the available documents. It should have the following settings and greetings: Extension Field:@(C:/FAX/TECH1)G(1005) DND: OFF Store Messages: NO Greeting 1: The technical report on SMDI will be faxed to you. Mailbox 10042’s Extension field contains the tokens that send technical report #2. Extension Field:@P(G1)>(C:/FAX/TECH2)G(1005) DND: OFF Store Messages: NO Greeting 1: The technical report on service plans will be faxed...
Page 250
236 Installing [email protected] Mailbox 1005 allows the caller to select another document to be faxed or to end the call (Menu 2 goes to 999). You might prefer to have Menu 2 return to the caller instructions mailbox 991. Extension Field: blank DND: ON Store Messages: NO Greeting 1: To request an additional document, press 1; to exit, press 2. Menu 1: 1004 Menu 2: 999 N OTE:All the quotation marks in these token examples are single quotation marks (although double quotation marks can be used)....