Cisco Cisco Unified Customer Voice Portal 11.0(1) 开发者指南

下载
页码 79
C
HAPTER 
4:
 
C
ALL 
S
TART 
A
CTION
 
 
C
ISCO 
CVP V
OICE
XML 3.1
 
 
  
Programmer 
Guide 
 
that occur during execution of this action are placed in the error log but do not end the call 
(unless the application cannot run without performing the tasks in the call start action). 
Using the Java API 
The call start action is built in Java by implementing the CVP VoiceXML class 
StartCallInterface
 found in the 
com.audium.server.proxy
 package. It contains a single 
method named 
onStartCall 
that is the execution method for the call start class. This method 
receives a single argument, an instance of 
CallStartAPI
. This class belongs to the Session API 
and is used to access and modify session information such as session data (See Chapter 3: 
Session API for m
ore on this API). The method does not have a return value. It is expected that 
should an unrecoverable error occur, the call start action should throw an 
AudiumException
Using the XML API 
As described in Chapter 3: Session API, the standard “inputs” and “settings” XML documents 
are sent via POST to the call start URI. Figure 4-1 shows the DTD diagram of the XML 
document that must be sent in response. The DTD for the start of call action response is defined 
in the file 
CallStartResponse.dtd
 found in the Server 
dtds
 folder.  
 
 
Copyright 2001 - 2005 Audium Corporation.  All Rights Reserved. 10/05
 
27