Showing 6 results.
Items per Page 50
of 1

CVP Forum

« Back to General Discussion

Set Data in Session!

Combination View Flat View Tree View
Threads [ Previous | Next ]
I am developing VXML Script for an IVR using CU Call Studio. I am facing a problem setting data in the session. My scenario is that I have a 3 options menu and i want to call same Custom Action with different value of a session variable based on menu option selected. I am not at too much home with CVP Call Studio and as per my understanding I can do that by putting an option element on exit states of menu and then create session variable in configuration of audio element. But I dont wanna have audio element there, in fact I can not put one in my scenario. How can I do that WITHOUT INVOLVING JAVA.

Furthermore, can somebody provide me material+sample on usage of HotLinks

Hope I could put my question clearly!!
Thanking in anticipation!

I want conventional IVR jumping with HotLinks...* to move to main menu, # for previous menu. I have put a HotLink with Inline DTMF * and exited it on main menu, but I get semantic error. I have tried putting a digit, but that doesnt work and call ends up.

Hello Shahzad,

I have the same problem, i opened a TAC case with Cisco and i'm still waiting for a reply i'll let you know as soon as i get it

Hello Fabien

Did TAC help in this regard ?

Hi Shahzad,

Concerning your first question, there are many ways to set session data without involving Java. In the example you gave, you want to set session data based on the choice made by the caller in a 3 option menu. I believe you don't actually need to do this, you can always look at the element's "value" element data to get the choice made by the caller. So if you access the element data for the 3 option menu, the result would be 1, 2 or 3, depending on what the caller entered. Remember, while element data can only be set by an element, you can access element data from anywhere including an action element.

However if you want to set session data and use that instead of element data, you can easily do this by following the procedure:

  1. Open up the Data tab of the 3 option menu element.
  2. Select the "Session" radio button and enter a name for the session data, for example "MyMenuChoice".
  3. For the value, clock on the {} to bring up the substitution dialog.
  4. Choose the ElementData tab, select the 3 option menu element from the dropdown menu and next to element data enter "value", which is the element data variable that contains the choice made by the caller.
  5. Click on the "Add Tag" button to add the substitution and click on Ok to exit the dialog.
  6. Make sure that next to "Create:" you select "After" - this is very important.
What this will do is create a session data variable named "MyMenuChoice" after the 3 option menu has completed with its value coming from the element data variable created by the element that contains the choice made by the caller.

You can then code the action element to look at this session data and do what you want to do with it.

Hope this helps!

the most simple thing is to use an audi element and have a blank audio file be played in it. something like blank.wav that has 1s non-voice audio

While this is a possibility, please keep in mind that doing this will add an extra "round trip" between the server and voice browser. It will also be slightly slower to the caller since even if the audio file is small, time is taken to do the round trip and playing of the empty audio. Not a huge deal but seeing as there is a relatively easy way to do this without the round trip, that solution is more efficient and more "elegant".

If you're still looking for an alternative to using an Audio element to provide a Data tab for assignments - here are 2 alternatives.
 
 
You can use a Counter element instead of an audio element, and use its data tab. Counter element executes on the Vxml Server. Sure, it creates an element data variable, but just ignore that, it's less CPU usage than an Audio element.
 
The other element I sometimes use to provide a data tab is the ApplicationModifier element (introduced in 4.1/7.0). This element has no required settings - so I just leave the settings empty and use the data tab to do assignments.
 
Make sure that you name the element appropriately, so someone opening your application in 2 years knows why you have a Counter or AppModifier element that looks likes it's not being used.
 
I've requested many times that Cisco include an Assignment element, but am still waiting...
 
Regards, Janine
 
 

The Counter element works fine for me when creating Session variables.
 
One thing I have noticed on the Call Studio 7.0.(1) is that the Session variables are not available on a drop down list when using the tag builder which is good, but I also have noticed that the same variable name appears multiple times on the dropdown list, if the variable is created on more that one element. 
 
So far haven't experienced any issue with that, but always pick the first appearance on the dropdown list. Wondering is someone knows exactly how to proceed.
 
Sidney
 
If you're still looking for an alternative to using an Audio element to provide a Data tab for assignments - here are 2 alternatives.
 
 
You can use a Counter element instead of an audio element, and use its data tab. Counter element executes on the Vxml Server. Sure, it creates an element data variable, but just ignore that, it's less CPU usage than an Audio element.
 
The other element I sometimes use to provide a data tab is the ApplicationModifier element (introduced in 4.1/7.0). This element has no required settings - so I just leave the settings empty and use the data tab to do assignments.
 
Make sure that you name the element appropriately, so someone opening your application in 2 years knows why you have a Counter or AppModifier element that looks likes it's not being used.
 
I've requested many times that Cisco include an Assignment element, but am still waiting...
 
Regards, Janine
 
 

Did anyone figure out the below, I am trying to do the exact same thing and am also getting the semantic error. We are on CVP v7.0
 
thanks
 

I want conventional IVR jumping with HotLinks...* to move to main menu, # for previous menu. I have put a HotLink with Inline DTMF * and exited it on main menu, but I get semantic error. I have tried putting a digit, but that doesnt work and call ends up.

This can be fixed by using the following in the inline grammar field, it is read by the voice browser as an astrix only:
 
\*
 
Fred