cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
928
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Shahzad Munir on 24-12-2008 12:06:37 PM
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!

Subject: Re: Set Data in Session!
Replied by: Shahzad Munir on 24-12-2008 02:13:51 PM
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.

Subject: Re: Set Data in Session!
Replied by: Fabien Damien on 19-01-2009 07:29:45 AM
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

Subject: Re: Set Data in Session!
Replied by: Shahzad Munir on 26-01-2009 05:20:49 AM
Hello Fabien

Did TAC help in this regard ?

Subject: Re: Set Data in Session!
Replied by: Elam Birnbaum on 26-01-2009 09:10:04 PM
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!

Subject: RE: Set Data in Session!
Replied by: Arvand Owji on 12-02-2009 05:06:33 PM
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

Subject: RE: Set Data in Session!
Replied by: Elam Birnbaum on 13-02-2009 11:54:15 PM
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".

Subject: RE: Set Data in Session!
Replied by: Janine Graves on 20-02-2009 09:30:14 PM
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
 
 

Subject: RE: Set Data in Session!
Replied by: Sidney Orret on 22-04-2009 08:04:07 PM
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
 
 


Subject: RE: Re: Set Data in Session!
Replied by: Fred Esman on 29-12-2009 07:37:26 PM
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.

Subject: RE: Re: Set Data in Session!
Replied by: Fred Esman on 06-01-2010 12:02:13 AM
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
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links