Author Message
GayathriManickam

Joined: Mar 20, 2014
Messages: 14
Offline
Hi Sir,

I would like to call a vxml application with URL below:

http://CFServer:29286/cf/startcall?BROWSERNAME=AVP

Someone please help


RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
Can you provide more details? Do you want to call from an existing OD application?
RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
File -> Import -> Avaya Speech Development -> Import Orchestration Designer Reusable Module

Click Manually define module definition

Click Next

Enter in a name and the url. You can also define input and output parameters

Click Finish.

You should now have a module on you palette that you can reference in your flow.
GayathriManickam

Joined: Mar 20, 2014
Messages: 14
Offline
Dear sir,

Thanks for your prompt reply. I will explain you my requirements clearly which will enable to guide me appropriately.

The requirement from my customer is to call the WFO customer service feedback ivr url it is basically another ivr application given by Avaya WFO itself. When a customer completes the discussion with agent, agent will transfer the call to experience portal for customer to fill up the survey inputs. The survey application is given WFO. I have an application that works intermediate that redirects call to WFO survey application.

Agent->Exp portal->My application (Developed in OD To receive UUI and process)->call Avaya WFO survey application RL with desired parameters)

The WFO survey application source is code is not with us the only way we can call the URL.

For example
1. I have developed one same surple application in AAOD
2. I am fetching UUI in this application
3. Manipulating this UUI to getting values and assigned this values to WFO url parameter
4. I need to REDIRECT this url from my AAOD application (http://CFServer:29286/cf/startcallBROWSERNAME=AVP&AGENTID=1234&TRANSCODE=15&LANGCODE=2&CASENBR=AB88775)
5. It's a third party WFO survey application placed in external server. I can't use this as reuseable module

When i am redirecting WFO url from my application . I am getting an error
(java.lang.IllegalStateException: Cannot forward after response has been committed)

I hope given enough details about the problem. Appreciate if any one can guide me to achieve thsi functionality.

RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
The redirect will never work. The problem is that when the app does its own redirect in RedirectProcess, after that the app will continue on to the next servlet node and eventually try to return a response.

You could just move that code to updateBranches and then alter the goto. The other option is to use a plain data node and override the setNext().
RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
Alternatively you can invoke the VXML as a subdialog as I mentioned. The redirect is not supported.
GayathriManickam

Joined: Mar 20, 2014
Messages: 14
Offline
Hi Sir,

Thanks for your reply .

I have already tried this in VXML Subdialog. Subdialog without parameter its working.(http://CFServer:29286/cf/startcall?)

But I need to send this url with parameter, When i am trying this i am getting runtime error.

(http://CFServer:29286/cf/startcall?BROWSERNAME=AVP&AGENTID=5677&LANGCODE=3&CDN=9&CUSTNO=9884528207)

Kindly give me some solution to reslove this problem.


RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
I have attached an example. This calls a jsp page as a subdialog and also adds a parameter to the call.

Note in untitledJSPAccessModule1.java, you override a method and add query string parameters here.

@Override
	public String updateWebAppEntryPoint(SCESession mySession, String appName, String moduleName, String oldEntryPoint) {
		IVariableField field = mySession.getVariableField(IProjectVariables.ACCOUNT);
		return (oldEntryPoint + "?accountnumber=" + field.getStringValue());
	}


You also need to manually define the module.
Filename TestJSPAccessModule.zip [Disk] Download
Description No description given
Filesize 416 Kbytes
Downloaded: 274 time(s)

GayathriManickam

Joined: Mar 20, 2014
Messages: 14
Offline
Hi Sir,
Thanks for giving me an example application.
I have tried to below example , Without parameter its working, When i pass parameters with this url its showing badfetch error

I have attached my source code for your refernce

@Override
public String updateWebAppEntryPoint(SCESession mySession, String appName, String moduleName, String oldEntryPoint)
{
IVariableField field = mySession.getVariableField(IProjectVariables.ACCOUNT);

oldEntryPoint = "http://192.168.168.60:8080/WFO_TEST_APP/VerifyDetails?";

LoggerUtil.writeTrace(mySession, ITraceInfo.TRACE_LEVEL_DEBUG, ">>> SUBDIALOG URL " +oldEntryPoint+ "?ACCOUNT_NUMBER=" + field.getStringValue());
return (oldEntryPoint + "?ACCOUNT_NUMBER=" + field.getStringValue());

}

Kindly give me some solution for this problem.
GayathriManickam

Joined: Mar 20, 2014
Messages: 14
Offline
I forgot to inlude the below code:

public String getWebAppEntryPoint(com.avaya.sce.runtimecommon.SCESession mySession) {
String entryPoint = mySession.getParameter("module.WFO_DLG.entrypoint");
if (entryPoint != null)
return checkEntryPoint(entryPoint, mySession);
return(checkEntryPoint("http://rtauedccf01:29286/cf/startcall?", mySession));
}
RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
Can you enable all the OD tracking in ddrt.properties and post the resulting trace.log and also post the actual java file.
GayathriManickam

Joined: Mar 20, 2014
Messages: 14
Offline
Hi Sir,

It's going to webservice application. After that its playing default technical difficulty message in AEP.
I have attached the java file and log files

Kindly check the log files and guide me for resolving this issue.
Filename LogFile.zip [Disk] Download
Description No description given
Filesize 269 Kbytes
Downloaded: 287 time(s)

RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
The trace was rather sparse I had asked that all traceing be enabled

localddtrace=enabled
localapptrace=enabled
showxml=enabled
showxmlroot=always
localreportlog=enabled
frameworkreporting=enabled
localsoaptrace=enabled
xmlrootinline=enabled
showcaughtexceptions=enabled

If you enter http://192.168.168.60:8080/WFO_TEST_APP/VerifyDetails into a web browser do you get a 404?

Please post the trace with all traceing enabled.
RossYakulis

Joined: Nov 6, 2013
Messages: 2652
Offline
Note you do not have to pass account number that is just an example of how to pass custom data on the query string.
Go to:   
Mobile view