Author Message
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
I have an inbound application using launchvxml ( passing a query-string) . How do I retrieve the values of the query-string? Do I use the input parameter in the App-Root?
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Okay to be clear there are 2 ways to pass data to an application using launchvxml.

1) use the request.setParameters( String ). Where the string is param=value;param2=value2
In this case you use a capture expression on the approot in the form of: session.avaya.telephone.<param name> or
session.avaya.telephone.param
session.avaya.telephone.param2

2) Actually having the values on the query string http://host:port/MyApp/Start?param=value&param2=value2
In this case you define variables in your application that EXACTLY match the parameter names (param and parma2, case matters). OD will automatically store the query string values into those variables. In fact as a general rule the OD runtime will try to store all request parameters into OD variables iff a variable name matches the incoming request parameter.
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
:) - Thanks. I'm goung to try.
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
Is this correct?
In the properties of the LaunchVXMLCall
Parameters Constant:
enable_call_classification=true;
call_classification_timeout=40000;
detect_greeting_end=true;
parm3=305968770
-------------------------------------------------------------------------------------------------------------
I’m trying to pass the 3055968770 to the outbound application.
-------------------------------------------------------------------------------------------
In the outbound AppRoot I have the capture Expression
Capture <variable=TempCaller” expression=”session.avaya.telephone.parm3’>


RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Yes on the capture expression. In the launchVXML call:

LaunchVXMLRequest request = new LaunchVXMLRequest();
request.setApplicationName(appName);
request.setParameters(parameters);

If you have mutiple parameters then format as "name=value;name2=value2"
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
I'm sorry - where in OD do you set those parameters?
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
What version of OD are you using? Are you using the launchOBCall connector or writing java?
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
OD 7 - Outboundcall connector (LaunchVXML)

Thanks a million!!
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Oh okay, in that case then the values go in the parameters property. It can either be a variable or a constant.
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
I did.

Is this correct ?

Parameters Constant:
enable_call_classification=true;
call_classification_timeout=40000;
detect_greeting_end=true;
parm3=305968770

---------------------------------------------------------------
is not working...
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Not working is somewhat non precise. Can you be more explicit? What is not working. Is you app getting launched? Where/what exactly is failing?
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
The outbound call doesn't start.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
What are the values for the other properties? The Application Name is the application name configured on EP and NOT the webapp name. You also need a to. On my test system I have to set the toUri as 91408xxxxxxx due to the way our switch is setup.
Gladys
Joined: Apr 11, 2014
Messages: 85
Offline
The outbound process doesn't start.

These are the errors from the log :

2014-09-26 10:18:26,603 237813878 [WebContainer : 2] ERROR - VPAppRuntimeVars:getAppRuntimeVarsFromVPMS(): No callable EPM to get Application Runtime Vars
2014-09-26 10:18:26,603 237813878 [WebContainer : 2] ERROR - VPAppRuntimeVars:printRuntimeVars: response received is NULL


Also from the trace logs

26/09/2014 11:26:33:013 ERROR - 7rc2zhbFaAdwCOX9yCGbGOt:/PetServices : getNextServerFromZone: no zones could be found for zoneID:0
26/09/2014 11:26:33:013 ERROR - 7rc2zhbFaAdwCOX9yCGbGOt:/PetServices : getService no server in zone found cannot send request, returning
26/09/2014 11:26:33:014 ERROR - 7rc2zhbFaAdwCOX9yCGbGOt:/PetServices : cannot get instance of web service stub
26/09/2014 11:26:33:018 INFO - 7rc2zhbFaAdwCOX9yCGbGOt:/PetServices : session id:s0143902-2014269152619-5 | PetServices:CallOwner | Launch vxml out bound call is failed | DogCallResult :

DogCallResult is the result variable that we are using to capture the return from the LaunchVXMLCall.




RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
From the information I cannot determine anything. Can you post a screenshot of your od app and the LaunchOBCall operation with the properties view visible and the Ep application configuration?
Go to:   
Mobile view