JAVA-based IVR (Interactive Voice Response) framework implementation method and system
By using a Java-based IVR framework and encapsulating custom XML tags with the VXML2.0 protocol, IVR business processes can be implemented, solving the problem of tight coupling between IVR platform development tools and business platforms, and improving development efficiency and stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA YOUKE COMM TECH
- Filing Date
- 2026-01-28
- Publication Date
- 2026-05-12
AI Technical Summary
Existing IVR platform development tools are tightly coupled with business platforms, requiring developers to master the details of each platform. This results in inconsistent stability and robustness of the developed products, as well as varying quality upon deployment.
The IVR framework based on JAVA is adopted, and custom XML tags are encapsulated through the VXML2.0 protocol. Combined with the IVR service platform, IVR business functions are implemented, and JSP page configuration tags are used to assemble and parse business processes.
It reduces the difficulty of developing IVR business applications, improves the convenience and efficiency of development, and ensures the quality and scalability of R&D. Application developers only need to have basic JAVA knowledge.
Smart Images

Figure CN122018895A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of application development technology, specifically relating to a method and system for implementing an IVR framework based on JAVA. Background Technology
[0002] The market is flooded with interactive voice response (IVR) platforms based on softswitch technology, offered by both mainstream and non-mainstream vendors. These platforms share a common characteristic: they are all tightly coupled with their own development tools, meaning the development process and results can only be applied to their own closed-loop systems. Although VXML is touted as a universal international recommendation for IVR (note: international recommendations differ from standards), most vendors follow the unwritten rule of "use what's useful, discard what's not," resulting in numerous VXML development processes that fail to achieve complete decoupling between business logic and platform characteristics.
[0003] This necessitates that developers master the development details of each IVR platform. Because developers have varying levels of understanding of different platforms, and the development tools used by these platforms each have their own advantages and disadvantages, the resulting products exhibit varying stability and robustness, leading to inconsistent deployment quality and customers' businesses being constrained by the IVR platform.
[0004] In view of this, the present invention proposes a method and system for implementing an IVR framework based on JAVA. Developers can quickly complete the implementation of the IVR business interface process by configuring custom tags in JSP pages in JAVA. Summary of the Invention
[0005] The purpose of this invention is to propose a method and system for implementing an IVR framework based on JAVA, thereby reducing the development difficulty of IVR business applications and improving the convenience and efficiency of development.
[0006] To achieve the above objectives, the technical solution of the present invention is as follows: A Java-based IVR framework implementation method, specifically including: Based on the VXML2.0 protocol, custom XML tags are encapsulated in JAVA according to business scenarios. These custom XML tags encapsulate VXML2.0 standard functions and business logic to realize various functions in IVR services. In the scenario of call request initialization, the IVR service platform triggers business requests via HTTP interface requests; In business process assembly scenarios, custom tags are arranged and assembled according to business scenario requirements; In business parsing scenarios, the assembled XML document is output and parsed by the IVR service platform to complete the relevant call actions, thereby enabling the rapid completion of the IVR call process.
[0007] Preferably, the method involves configuring custom XML tags in a JSP page within Java, including configuring the input and output parameters of the custom XML tags, the names of the custom XML tags, and the tag assembly method.
[0008] Preferably, tag encapsulation is implemented using taglib.
[0009] Preferably, the basic functions implemented by the IVR service platform are encapsulated in JAVA using custom XML tags, including playback, key rewind, queuing, call transfer, and call termination.
[0010] A Java-based IVR framework implementation system includes a processor, a memory, and a computer program stored in the memory. When the processor executes the computer program, it specifically performs any of the steps in the above-described Java-based IVR framework implementation method.
[0011] Compared with the prior art, the present invention has the following beneficial effects: This invention, based on the VXML 2.0 protocol and encapsulated in Java using custom XML tags, integrates with an IVR service platform to implement basic capabilities such as playback, call reception, queuing, call transfer, and call termination. Developers can quickly implement IVR business processes by configuring custom tags in Java JSP pages. This reduces the development difficulty of IVR business applications and improves development convenience and efficiency. In the call request initialization scenario, the IVR service platform triggers the business request via an HTTP interface. In the business process assembly scenario, the request is assembled according to the developed business process using encapsulated custom tags. In the business parsing scenario, the assembled XML document is output and parsed by the IVR service platform to complete the relevant call actions, thus realizing the complete IVR call process. This invention can implement IVR process business functions in a relatively universal way while ensuring a certain degree of scalability. Because only a certain combination of tags is required, the overall readability is reduced. Moreover, in developing business scenario processes, application developers only need basic Java knowledge, thereby reducing the difficulty of application development and ensuring development quality. Attached Figure Description
[0012] Figure 1 This is a block diagram illustrating the principle of the present invention. Detailed Implementation
[0013] The following is in conjunction with the appendix Figure 1The technical solution of the present invention will be described in detail below.
[0014] This invention proposes a Java-based IVR framework implementation method, specifically including: Based on the VXML2.0 protocol, custom XML tags are encapsulated in JAVA according to business scenarios. These custom XML tags encapsulate VXML2.0 standard functions and business logic to realize various functions in IVR services. In the scenario of call request initialization, the IVR service platform triggers business requests via HTTP interface requests; In the business process assembly scenario, the encapsulated custom tags are arranged and assembled according to the business scenario requirements. Specifically, this includes: confirming the business needs, then selecting the corresponding custom tags, and passing them together through input and output parameters. In business parsing scenarios, the assembled XML document is output and parsed by the IVR service platform to complete the relevant call actions, thereby enabling the rapid completion of the IVR call process.
[0015] In this embodiment, custom XML tags are configured through a JSP page in JAVA, including configuring the input and output parameters of the custom XML tags, the name of the custom XML tags, and the tag assembly method.
[0016] In this embodiment, tag encapsulation is implemented using taglib.
[0017] In this embodiment, custom XML tags are encapsulated in JAVA and combined with the basic functions implemented by the IVR service platform, including playback, key rewind, queuing, call transfer, and call termination.
[0018] A Java-based IVR framework implementation system includes a processor, a memory, and a computer program stored in the memory. When the processor executes the computer program, it specifically performs any of the steps in the above-described Java-based IVR framework implementation method.
[0019] In this embodiment, based on the VXML2.0 protocol, a custom XML tag is encapsulated in Java. Its biggest advantage is its ease of reading, similar to the following format: @Override public String toString() { StringBuilder sb = new StringBuilder(); String[] infos = generateDefines(resMap); sb.append("<?xml version=\"1.0\" encoding=\"GBK\"?> \n"); sb.append(" <vxml version="\"2.0\"">\n"); sb.append(" <form>\n"); sb.append(infos[0]); if (Boolean.parseBoolean(IvrDataHolder.getIVRProperty("INT.interfaceallowdelaymusic","false"))&& (stop || failed)&&playing&&this.callID instanceof String) { sb.append(" <object name="\"estObj"" + new random().nextint(1000000)+ "\" classid="\"method: / / ngcc / Call / ExtStopPlay\"">\n"); sb.append(" <param name="\"CallID\"" expr="\""" + this.callID "\"> "); sb.append("< / object> "); sb.append(" <subdialog src="\"ivrservice.do?act=delay&delay="+IvrDataHolder.getIVRProperty("INT.interfaceinvokedelay"," "500")+"\" method="\"post\"">"); sb.append(" <filled / > < / subdialog> "); } sb.append(" <block>\n"); sb.append(infos[1]); sb.append(" <return namelist="\""" + infos[2] "\" / > \n"); sb.append("< / block> \n"); sb.append("< / form> \n"); sb.append("< / vxml> \n"); return sb.toString(); } In summary, the IVR framework implementation method and system proposed in this invention, based on the VXML 2.0 protocol, utilizes custom XML tags encapsulated in Java to achieve business interface responsiveness in conjunction with an IVR service platform, according to business scenarios. Developers can quickly implement IVR business processes by configuring custom tags in Java JSP pages. This reduces the development difficulty of IVR business applications and improves development convenience and efficiency. In the call request initialization scenario, the IVR service platform triggers business requests via HTTP interface requests. In the business process assembly scenario, the encapsulated custom tags are arranged and assembled according to business scenario requirements. In the business parsing scenario, the assembled XML document is output and parsed by the IVR service platform to complete the relevant call actions, thereby achieving rapid completion of the IVR call process. This invention can implement the business functions of the IVR process in a relatively universal way and ensures a certain degree of scalability. Because only a certain combination of tags is required, the overall readability is reduced. Moreover, in developing business scenario processes, application developers only need basic Java knowledge, thus reducing the difficulty of application development and ensuring development quality.
[0020] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.
Claims
1. A method for implementing an IVR framework based on JAVA, characterized in that, Specifically, it includes: Based on the VXML2.0 protocol, custom XML tags are encapsulated in JAVA according to business scenarios. These custom XML tags encapsulate VXML2.0 standard functions and business logic to realize various functions in IVR services. In the scenario of call request initialization, the IVR service platform triggers business requests via HTTP interface requests; In business process assembly scenarios, custom tags are arranged and assembled according to business scenario requirements; In business parsing scenarios, the assembled XML document is output and parsed by the IVR service platform to complete the relevant call actions, thereby enabling the rapid completion of the IVR call process.
2. The method for implementing an IVR framework based on JAVA according to claim 1, characterized in that, This involves configuring custom XML tags in a Java JSP page, including configuring the input and output parameters of the custom XML tags, the names of the custom XML tags, and the tag assembly method.
3. The method for implementing an IVR framework based on JAVA according to claim 1, characterized in that, Tag encapsulation is implemented using taglib.
4. The method for implementing an IVR framework based on JAVA according to claim 1, characterized in that, The basic functions, including playback, key rewind, queueing, call transfer, and call termination, are implemented by encapsulating custom XML tags in JAVA and combining them with the IVR service platform.
5. A Java-based IVR framework implementation system, characterized in that, It includes a processor, a memory, and a computer program stored in the memory. When the processor executes the computer program, it specifically performs the steps in the JAVA-based IVR framework implementation method as described in any one of claims 1-4.