Is correct this sample script??

Unanswered Question
Jun 13th, 2007

Hi friends,

I haver wrote this script and i want to know if is correct. It?s very sample without checks.

# Description:

# This script plays a audio file y wait for and digit insert

# if the digit is correct sends the call to the correct extension.

# Is a sample script without redundancy and checks.

proc Auto{}{

global dest

global departmentA

global departmentB

global oprt

set departmentA 1500

set departmentB 1600

set oprt 1000

media play leg_incoming _welcome.au %s1000 _enter_dest.au

set dest [infotag get evt_dcdigits]

if { $dest == "0" } {

set dest $departmentA

} elseif {$dest == "1"} {

set dest $departmentB

} else {

set dest $oprt

}

}

set fsm(any_state,any_event) "Auto same_state"

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion