Processing Call Data
To obtain call data, you need to process and submit the integration address form on the server and add the processing logic to return the obtained data to the page. The processing varies according to the server. Table 1 describes the main call parameters passed. The sample code is in Java+Spring Boot+template (Thymeleaf) mode. For details, see the following steps.
Parameter |
Description |
---|---|
callerNum |
Calling number.
|
calledNum |
Called number.
|
callid |
Session ID. Unique ID of the current session in a call. The value must be the same as that of Call S/N on the page. |
mediaType |
Media type.
|
callType |
Call type.
|
workNo |
Platform agent ID of the agent that performs the current operation. |
callskill |
Skill queue used by the agent in a call. |
callskillid |
ID of the skill queue used by the agent in a call. |
agentName |
Business account of the agent in a call. |
- Create a Maven project.
- Add the dependency on the template engine Thymeleaf to the pom.xml file of the project.
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
- Compile the controller. The controller is used to receive parameters submitted using the form, save the parameters to a map object (request in the following figure), and pass the parameters to the template. Figure 1 shows the sample code.
- Add the corresponding Thymeleaf template. Figure 2 shows the resource path.
Figure 3 shows the content of hello.html.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot