The dialbyname.aef Script

The dialbyname.aef script allows a caller to spell an employee's name (the name to user step in the script shown in the next section). When a match is found (the get user info step in the script), the caller is transferred (the call redirect step in the script) to that employee's extension.

The full text and variable definitions for the dialbyname.aef script are given in the next section. Figure B-4 shows a GUI view of the main portion of the script.

Figure B-4. The dialbyname.aef Script

 

Script Content

Example B-2 is a text representation of the script contents.

Example B-65. The dialbyname.aef Script

Start /* Dial By Name */ Set again = 2 tryagain: Name To User (contact: --Triggering Contact--, result user:dialname) Successful Get User Info (user: dialname) If ( spokenname == null ) Then True Create Generated Prompt( spelling type, store in spelledname) False Create Container Prompt (output prompt: spelledname) Implicit Confirmation (contact: --Triggering Contact--) No Goto tryagain Yes Call Redirect (contact: --Triggering Contact--, extension: extension) Successful End Busy Play Prompt (contact: --Triggering Contact--, prompt: userbusy) Goto Terminate Invalid Play Prompt (contact: --Triggering Contact--, prompt: invaliduser) Decrement again If ( again == 0 ) Then True Play Prompt (contact: --Triggering Contact--, problems) Goto Terminate False Goto tryagain Unsuccessful Play Prompt (contact: --Triggering Contact--, prompt: invaliduser) Goto Terminate Set Contact Info (contact: --Triggering Contact--) Timeout Play Prompt (contact: --Triggering Contact--, prompt: problems) Goto Terminate Unsuccessful Play Prompt (contact: --Triggering Contact--, prompt: problems) Goto Terminate Terminate: Play Prompt (contact: --Triggering Contact--, prompt: goodbye) Terminate (contact: --Triggering Contact--) Set Contact Info (contact: --Triggering Contact--) End

 

Variables

The variables defined in the dialbyname.aef script are shown in Figure B-5.

Figure B-5. Variables of the dialbyname.aef Script

The dialbyextension aef Script

Категории