Author Message
MohammedAnees
Joined: Feb 23, 2017
Messages: 11
Offline
I am using variable "im_str" to collect digits from user..
Please guide, how to initialize a variable with defined value...(i.e) i need to keep default value of im_str as 999999.
I hope if the user doesn't key in value after prompt, then default value 999999 will not change.
FergusCameron [Avatar]
Joined: Apr 17, 2012
Messages: 131
Location: WI, USA
Offline
This is configured in the CCMA interface. If you go to the "Launchpad > Configuration" you will see a list of variables and can set a default value.

Fergus Cameron :: AVAYA :: DevConnect :: http://www.avaya.com/devconnect/
MohammedAnees
Joined: Feb 23, 2017
Messages: 11
Offline
Hi FergusCameron

Actually, This is my requirement. I need to play "Welcome to xxxxxx, Please dial the required extension or 0 to speak to an Operator, For Emergency press 8". and collect digits. If user doesn't input anything menu has to be played again.

I am stuck here.
1. If i store caller input as integer, i am unable to do noinput check, but unable to route calls to desired extensions
2. if i store caller input as string, i am unable to route extension to desired extension, but i am able to do noinput check.

Application 1: Caller input is stored as integer variable.
In this scenario, i am unable to check blank input..(i.e) if the caller doesn't provide any input, i need to play the menu again.
I generally use, variable=-1 condition to check blank data. I am unable to check condition -1 using integer variable.

Application 2: Caller input is stored as string variable.
In this scenario, I am unable to route the call to the desired extension. (i.e) user will enter any extension starting from 1xxx to 9xxx. i am unable to select route destination as string variable.

-----------------
i need both conditions in same application (i.e) do blank value check to repeat menu and route the call to the desired extension

Please advise, Is it possible.
FergusCameron [Avatar]
Joined: Apr 17, 2012
Messages: 131
Location: WI, USA
Offline
Have you looked at the 'CONVERT' function in scripting? Details can be found in the "Using Contact Center Orchestration Designer" document.

Fergus Cameron :: AVAYA :: DevConnect :: http://www.avaya.com/devconnect/
MohammedAnees
Joined: Feb 23, 2017
Messages: 11
Offline
Hi FergusCameron

yes.. I collected input as integer variable in_int1, then i converted to String using below script.
please verify

I used IVR block to play and collect digits --> after collecting digits, i used custom block and used below script -->Then i used check menu block to check condition.

"ASSIGN in_int1 to in_int2
CONVERT in_int2 to STRING in_str"

Please advise, Is it correct
FergusCameron [Avatar]
Joined: Apr 17, 2012
Messages: 131
Location: WI, USA
Offline
Looks OK to me. How'd you get on? 'it work?

Fergus Cameron :: AVAYA :: DevConnect :: http://www.avaya.com/devconnect/
Go to:   
Mobile view