Hi Guys,
Looking for a little nudge of assistance here, recently.. I’ve been looking at customizing GAD by adding a new button. I’ve followed the example/sample provided by Genesys and successfully added a button that will release the call; However, i need it to transfer to another route point.
Here is my current configuration
Custom.xml
- <gcn-resources>
- <desktop>
<dictionary-class>custom</dictionary-class>
- <interaction-action>
- <buttons>
- <button name="releaseButton">
<image-up-name>custom/btnrelease_up.png</image-up-name>
<image-disable-name>custom/btnrelease_disable.png</image-disable-name>
<image-focus-name>custom/btnrelease_focus.png</image-focus-name>
<tooltip-dictionary-key>interaction.release</tooltip-dictionary-key>
- <javascript-oninteractionstatuschange>
- <![CDATA[ if( interactionStatus == STATUS_TALKING )
enableButton("releaseButton");
else
disableButton("releaseButton");
]]>
</javascript-oninteractionstatuschange>
- <javascript-onload>
- <![CDATA[ if( interactionStatus == STATUS_TALKING )
enableButton("releaseButton");
else
disableButton("releaseButton");
]]>
</javascript-onload>
- <javascript-onselect>
- <![CDATA[ document.forms.releaseForm.elements.idInteraction.value =
idInteraction;
document.forms.releaseForm.submit();
]]>
</javascript-onselect>
- <html-body>
- <![CDATA[ <form name="releaseForm" method="get" target="releaseActionFrame"
action="custom/releaseInteraction.jsp">
<input type="hidden" name="idInteraction">
</form>
<iframe name="releaseActionFrame" style="visibility:hidden" frameborder="no" width="0" height="0" src="custom/empty.htm"></iframe>
]]>
</html-body>
</button>
</buttons>
</interaction-action>
</desktop>
</gcn-resources>
releaseInteraction.jsp
<%@ page language="java" buffer="none" contentType="text/html; charset=utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="javascript">
window.parent.includeGDFunctionalities(window);
function custom_load() {
activateGDFunctionalities();
}
function custom_unload() {
unactivateGDFunctionalities();
}
</script>
</head>
<body height="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="custom_load()" onunload="custom_unload()">
<script language="javascript">
<%
com.genesyslab.ail.AilFactory factory =
com.genesyslab.ail.AilLoader.getAilFactory();
com.genesyslab.ail.Interaction interaction =
factory.getInteraction( (String)request.getParameter( "idInteraction" ) );
try {
if( com.genesyslab.ail.Interaction.Type.PHONE_CALL.equals(
interaction.getType() ) ) {
interaction.releaseCall( null );
}
} catch( com.genesyslab.ail.exception.RequestFailedException
requestFailedException ) {
%>
showWarningMessage("Release interaction failed!");
<%
}
%>
</script>
</body>
</html>
My java knowledge is pretty limited at the moment and I’m only starting to learn. Any help to get this to forward/1step transfer to another destination would be great.
Thanks folks.