cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
135
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Paula Salvador on 05-07-2013 10:28:02 AM
Hi,
I'm using CallStudio v8.5(1).
I have a problem when testing my project with concurrent calls simultaneously.
Expected behavior (works with just one singular call performing this runtest):
1. In one of the menus of my application when I press number "2" on the phone my java code loads user information into SessionData.
2. Next I'm redirected to another menu. In this last menu when I press number "1" my java code gets the information from SessionData to present the right voice messages.
Problem (two simultaneous calls performing the above mentioned runtest):
1. In one of the menus of my application when I press number "2" (at the same time for both calls) on the phone my java code loads user information into SessionData of both calls with success.
2. and next I'm redirected to another menu. In this last menu when I press number "1" (at the same time for both calls) my java code gets a strange behavior. Or it loads information from SessionData for one of the calls and the other gets a voice error message Or both get calls get a voice error message.
 
Looking into the code everything is ok, but in runtime (logs) I realized that in function getConfig(...) all the inputs arguments are null so I'm with no way to access SessionData since my ElementAPI and VoiceElementConfig are null for the call that get the voice error message.
 
Can anyone clarify what I'm doing wrong or is there any configuration needed in callStudio to enable concurrent calls? Anybody can help me?
 
Below is the code I use in getConfig(...):
 
public VoiceElementConfig getConfig(String name, ElementAPI elementAPI, VoiceElementConfig defaults) throws AudiumException {
   VoiceElementConfig.AudioGroup initial=null;
   VoiceElementConfig.StaticAudio prompt= null;
     String  num_cartoes_lidos=null;
     if(defaults.getAudioGroup("initial_audio_group",1) == null){
         initial = defaults.new AudioGroup("initial_audio_group", false);//true=allow bargein
      } else {
         initial = defaults.getAudioGroup("initial_audio_group",1);
      }
     //número de cartões lidos até ao momento
     num_cartoes_lidos = ""+elementAPI.getSessionData("num_cartoes_lidos");
     ....
    prompt=defaults.new StaticAudio ("pt/msg_169.wav");
     initial.addAudioItem(prompt);
    defaults.setAudioGroup(initial);
   return defaults;
}
 

Subject: RE: New Message from Paula Salvador in Customer Voice Portal (CVP) - Genera
Replied by: Hemal Mehta on 05-07-2013 10:51:58 AM
You can have as many concurrent calls, but session is unique to each call.  It does not make sense that you are not able to see the session data in one call and not in other.  It probably got invalidated. Are you making two separate phone calls or you using some kind of automated tool to spawn multiple calls ?
Need to look at your flow.
Hemal
From: Cisco Developer Community Forums [mailto:[email protected]]
Sent: Friday, July 05, 2013 10:28 AM
To: [email protected]
Subject: New Message from Paula Salvador in Customer Voice Portal (CVP) - General Discussion - All Versions: Invalid SessionData when concurrent call (simultaneous)

Paula Salvador has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- Hi,
I'm using CallStudio v8.5(1).
I have a problem when testing my project with concurrent calls simultaneously.
Expected behavior (works with just one singular call performing this runtest):
1. In one of the menus of my application when I press number "2" on the phone my java code loads user information into SessionData.
2. Next I'm redirected to another menu. In this last menu when I press number "1" my java code gets the information from SessionData to present the right voice messages.
Problem (two simultaneous calls performing the above mentioned runtest):
1. In one of the menus of my application when I press number "2" (at the same time for both calls) on the phone my java code loads user information into SessionData of both calls with success.
2. and next I'm redirected to another menu. In this last menu when I press number "1" (at the same time for both calls) my java code gets a strange behavior. Or it loads information from SessionData for one of the calls and the other gets a voice error message Or both get calls get a voice error message.

Looking into the code everything is ok, but in runtime (logs) I realized that in function getConfig(...) all the inputs arguments are null so I'm with no way to access SessionData since my ElementAPI and VoiceElementConfig are null for the call that get the voice error message.

Can anyone clarify what I'm doing wrong or is there any configuration needed in callStudio to enable concurrent calls? Anybody can help me?

Below is the code I use in getConfig(...):

public VoiceElementConfig getConfig(String name, ElementAPI elementAPI, VoiceElementConfig defaults) throws AudiumException {
   VoiceElementConfig.AudioGroup initial=null;
   VoiceElementConfig.StaticAudio prompt= null;
     String  num_cartoes_lidos=null;
     if(defaults.getAudioGroup("initial_audio_group",1) == null){
         initial = defaults.new AudioGroup("initial_audio_group", false);//true=allow bargein
      } else {
         initial = defaults.getAudioGroup("initial_audio_group",1);
      }
     //número de cartões lidos até ao momento
     num_cartoes_lidos = ""+elementAPI.getSessionData("num_cartoes_lidos");
     ....
    prompt=defaults.new StaticAudio ("pt/msg_169.wav");
     initial.addAudioItem(prompt);
    defaults.setAudioGroup(initial);
   return defaults;
}

--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/community/-/message_boards/view_message/16898338 or simply reply to this email.

Subject: RE: Invalid SessionData when concurrent call (simultaneous)
Replied by: Paula Salvador on 08-07-2013 05:10:32 AM
Yes, we are doing two separate phone calls and when we try to access the same kind of information (available from a menu option) at the same time we get this wrong behavior.

Subject: Re: New Message from Paula Salvador in Customer Voice Portal (CVP) - Genera
Replied by: Janine Graves on 08-07-2013 05:53:58 AM
In over 8 years using Studio, I have never seen this behavior with Session Data. It can occur with Application data or Global data, but I've never seen this with Session Data. If you'd like to post the portion of your Studio code and your java then I can try it out. Janine On 7/8/2013 5:10 AM, Cisco Developer Community Forums wrote: Paula Salvador has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- Yes, we are doing two separate phone calls and when we try to access the same kind of information (available from a menu option) at the same time we get this wrong behavior. -- To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/community/-/message_boards/view_message/16933194 or simply reply to this email. -- Janine Graves

Subject: RE: New Message from Paula Salvador in Customer Voice Portal (CVP) - Genera
Replied by: Hemal Mehta on 08-07-2013 08:34:57 AM
This behavior is a function of the web server and how session data works and not even so much specific to Studio or CVP. What you are saying does not make sense.
You need to provide more details of your code.  There is something else going on.
Hemal


From: Cisco Developer Community Forums [mailto:[email protected]]
Sent: Monday, July 08, 2013 5:11 AM
To: [email protected]
Subject: New Message from Paula Salvador in Customer Voice Portal (CVP) - General Discussion - All Versions: RE: Invalid SessionData when concurrent call (simultaneous)

Paula Salvador has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- Yes, we are doing two separate phone calls and when we try to access the same kind of information (available from a menu option) at the same time we get this wrong behavior.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/community/-/message_boards/view_message/16933194 or simply reply to this email.

Subject: RE: Invalid SessionData when concurrent call (simultaneous)
Replied by: Paula Salvador on 08-07-2013 09:35:18 AM
Paula Salvador:
Yes, we are doing two separate phone calls and when we try to access the same kind of information (available from a menu option) at the same time we get this wrong behavior.

Hi,
Maybe I didn't explain enough, sorrry.
What's happening is when I have 2 calls accessing one specific menu at the exact same time, one of the calls enters the getConfig(
String name, ElementAPI elementAPI, VoiceElementConfig defaults) and processes correctly, the other call enters the getConfig(
String name, ElementAPI elementAPI, VoiceElementConfig defaults)
 and all the arguments of the getConfig are null. So I miss the reference to sessionData provided by elementAPI.
Does anyone faced the same problem, or maybe I'm missing something in the Design Rules.

Regards,
--
Miguel Espiga

Subject: RE: New Message from Paula Salvador in Customer Voice Portal (CVP) - Genera
Replied by: Hemal Mehta on 08-07-2013 09:42:21 AM
My take is that this has nothing to do with 2 calls.  These are independent of each other and sessions are completely different.  There may be something in the flow or code causing this.
You might be even to replicate this issue with one call.
Hemal

From: Cisco Developer Community Forums [mailto:[email protected]]
Sent: Monday, July 08, 2013 9:35 AM
To: [email protected]
Subject: New Message from Paula Salvador in Customer Voice Portal (CVP) - General Discussion - All Versions: RE: Invalid SessionData when concurrent call (simultaneous)

Paula Salvador has created a new message in the forum "General Discussion - All Versions": --------------------------------------------------------------
Paula Salvador:
Yes, we are doing two separate phone calls and when we try to access the same kind of information (available from a menu option) at the same time we get this wrong behavior.

Hi,
Maybe I didn't explain enough, sorrry.
What's happening is when I have 2 calls accessing one specific menu at the exact same time, one of the calls enters the getConfig(
String name, ElementAPI elementAPI, VoiceElementConfig defaults) and processes correctly, the other call enters the getConfig(


String name, ElementAPI elementAPI, VoiceElementConfig defaults)

and all the arguments of the getConfig are null. So I miss the reference to sessionData provided by elementAPI.
Does anyone faced the same problem, or maybe I'm missing something in the Design Rules.

Regards,
--
Miguel Espiga
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/16944512 or simply reply to this email.

Subject: Re: New Message from Paula Salvador in Customer Voice Portal (CVP) - Genera
Replied by: Janine Graves on 08-07-2013 11:49:21 AM
I remember someone had a problem once before with GetConfig not able to access anything. See this link: http://developer.cisco.com/web/cvp/forums/-/message_boards/message/4821509 -- Janine Graves

Subject: RE: New Message from Janine Graves in Customer Voice Portal (CVP) - General
Replied by: Hemal Mehta on 08-07-2013 12:36:21 PM
This issue seems slightly different as it not happening for all calls.
Hemal

From: Cisco Developer Community Forums [mailto:[email protected]]
Sent: Monday, July 08, 2013 11:49 AM
To: [email protected]
Subject: New Message from Janine Graves in Customer Voice Portal (CVP) - General Discussion - All Versions: Re: New Message from Paula Salvador in Customer Voice Portal (CVP) - Genera

Janine Graves has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- I remember someone had a problem once before with GetConfig not able to access anything. See this link: http://developer.cisco.com/web/cvp/forums/-/message_boards/message/4821509 -- Janine Graves
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/16974518 or simply reply to this email.
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