I need to uwrite script where promt saying -" To connect with top manager prees 1 button ,if you know internal number dial or wait for operator"
Internal numbers are 3 number length.
I attach file of my script.
the promp dial internal number of wait for operator if working .I don`t know how to write script for prompt -" To connect with top manager press 1 button"
you can use the Get Digit String step, with string length 1.
The "Scripting and development series" books are a great start:
Okay, so you need to change your script.
Or if you don't have internal extensions starting 1 then just get a 3 digits string and use an If step with the following clause:
extension == "1"
I write IF step after Get Digit String step
If (extension == "1" ) then
but when i i press 1 nohting happens.
how i can change my script ?
When I need something like that, I use the get digit string as Gergely told you before. For example, set the input length to 3. So when the person dial the extension it reaches the succesful branch of the get digit string. If the person just press 1 or any other single digit, then the call reaches the timeout branch of the get digit string, where you can use a Switch step to redirect the call depending of the digit dialed by the customer: