Example SDC script files

A sample SDC script file, adsicb.sdc, is supplied with the ADSI feature. It is located in the $CUR_DIR/ca/ADSI_dir directory. This script file is part of the ADSI Banking sample application, and is used by the ADSI_Banking state table. For a listing of this file, see The adsicb.sdc script file.

Figure 1 shows another example SDC script file. This shows two softkey definitions that can be used by any function in the file. The example also contains two ADSI functions that can be called individually from the application state table. Parameters can be passed from the application state table. The state table replaces the argument names if they are prefixed with a dollar ($) character.

For more examples, see Example SDC statements.

Figure 1. An example of an SDC script file
softkey SK1 : "Dial Toni" : "Toni" {
                 ;   go_offhook;
                 ;   switch_to_voice;
                 ;   wait_for_dial_tone;
                 ;   send_dtmf "9";
                 ;   delay 10;
                 ;   send_dtmf "01555123456";
}

softkey SK2 : "Call Office" : "Office" {
                 ;   go_offhook;
                 ;   switch_to_voice;
                 ;   wait_for_dial_tone;
                 ;   send_dtmf "9";
                 ;   delay 10;
                 ;   send_dtmf "01555654321";
}

softkey SK3 : "Call Mum" : "Mum" {
                 ;   go_offhook;
                 ;   switch_to_voice;
                 ;   wait_for_dial_tone;
                 ;   send_dtmf "9";
                 ;   delay 10;
                 ;   send_dtmf "01555123654";
}

function func_1 message {
                 ;   load_soft_key_table 2 SK1;
                 ;   load_soft_key_table 3 SK2;
                 ;   load_soft_key_table 4 SK3;
                 ;   initialise_soft_key_line sk1=2;
                 ;   load_virtual_display "Hello from Blueworx Voice Response";
                 ;   load_virtual_display "Please press a softkey";
                 ;   load_virtual_display "$message";
}

function func_2 greeting name {
                 ;   initialise_soft_key_line sk1=2;
                 ;   load_virtual_display "Testing" && "Testing";
                 ;   load_virtual_display "$greeting from $name";
}