Search

CN-121997893-A - Method for realizing VXML protocol encapsulation based on frame label taglib

CN121997893ACN 121997893 ACN121997893 ACN 121997893ACN-121997893-A

Abstract

The invention relates to a method for realizing encapsulation of a VXML protocol based on a frame tag taglib, which comprises the steps of S1, encapsulating to form a basic tag library through taglib based on the VXML protocol, S2, configuring input parameters and output parameters of each tag in the basic tag library, S3, setting a custom name for each tag in the basic tag library, S4, introducing the basic tag library into a JSP page, calling the corresponding tag through the custom name, carrying out tag assembly to form an executable JSP page structure conforming to service logic, S5, responding to a service request from an IVR service platform, executing the JSP page through executing the assembled tag, generating an IVR document conforming to the VXML protocol, returning to the IVR service platform, analyzing the XML document by the IVR service platform and executing corresponding telephone traffic. According to the method, the VXML protocol is analyzed and packaged into the reusable JSP tag through taglib, so that the reusability and the readability of IVR service logic are improved, and the development difficulty is reduced.

Inventors

  • LIN YI
  • CHEN SHUXI
  • ZHENG WEI
  • ZHENG SHENGHUA
  • Zhu guoda
  • LI XINCHENG

Assignees

  • 中邮科通信技术股份有限公司

Dates

Publication Date
20260508
Application Date
20260120

Claims (9)

  1. 1. The method for realizing the encapsulation of the VXML protocol based on the frame label taglib is characterized by comprising the following steps: Step S1, based on a VXML protocol, a basic tag library is formed through taglib encapsulation, and the basic tag library is used for realizing IVR service functions; s2, configuring input parameters and output parameters of each tag in the basic tag library; Step S3, setting a custom name for each label in the basic label library; Step S4, introducing the basic tag library into the JSP page, calling corresponding tags through custom names, and assembling the tags to form an executable JSP page structure conforming to service logic; And step S5, responding to the service request from the IVR service platform, executing a JSP page by executing the assembled tag, generating an XML document conforming to the VXML protocol, returning to the IVR service platform, analyzing the XML document by the IVR service platform, and executing corresponding telephone traffic actions.
  2. 2. The method for implementing VXML protocol encapsulation based on the frame tag taglib according to claim 1, wherein in step S1, a base tag library is formed by taglib encapsulation based on VXML protocol, specifically including: Acquiring the content of a VXML protocol file; Using taglib tool to analyze the file structure of VXML protocol; And according to the analyzed VXML elements and logic, packaging to form a taglib-based basic tag library.
  3. 3. The method for implementing VXML protocol encapsulation based on the frame tag taglib according to claim 1, wherein in step S2, the input parameters and the output parameters of each tag in the basic tag library are configured, specifically: Traversing all tags in the basic tag library, and defining input parameters and output parameters of each tag.
  4. 4. The method for implementing VXML protocol encapsulation based on the framework tag taglib according to claim 1, wherein in step S3, a custom name is set for each tag in the base tag library, specifically: traversing a basic tag library configured with input and output parameters, setting a custom name for each tag, and recording the mapping relation between the custom name and a tag entity.
  5. 5. The method for implementing VXML protocol encapsulation based on the frame tag taglib of claim 1, wherein in step S4, tag assembly is performed, specifically: And introducing a configured basic tag library into the head of the target JSP, calling a corresponding tag by using a custom name at a corresponding position of the JSP according to service requirements, and introducing corresponding input parameters to complete tag assembly.
  6. 6. The method of implementing VXML protocol encapsulation based on frame tags taglib of claim 1, wherein IVR service functions implemented by the tags encapsulated in the base tag library include at least one of playback, key-up, queuing, transit, and hang-up.
  7. 7. The method for implementing VXML protocol encapsulation based on frame tags taglib of claim 1, wherein the specific application of the method is as follows: In a telephone traffic request initialization scene, triggering a service request to an IVR application platform bearing the JSP by an IVR service platform in an HTTP interface request mode; in a business process assembly scene, the IVR application platform generates an XML document and returns to the IVR service platform to respond to the business request by calling the corresponding label and assembling according to the business process; In the service analysis and execution scene, the IVR service platform analyzes the received XML document and drives the bottom communication resource to execute corresponding telephone traffic action.
  8. 8. A computer device comprising at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any of claims 1-7.
  9. 9. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-7.

Description

Method for realizing VXML protocol encapsulation based on frame label taglib Technical Field The invention relates to the technical field of communication, in particular to a method for realizing encapsulation of a VXML protocol based on a Tag Library (taglib). Background Interactive voice response systems are widely used in the field of customer service. VXML is a standardized markup language that provides voice dialog services for IVR systems that aims to achieve decoupling of business logic from platform implementations. However, in actual industrial practice, the present situation is not ideal. Although VXML is considered an international recommendation, each IVR platform vendor often adopts a "favorable use, unfavorable discard" strategy for standards based on its own interests, resulting in the advent of a large number of nonstandard, fragmented VXML development flows. This prevents business logic from being completely separated from platform features and the developer must go deep into the development details of a particular IVR platform. Because the understanding degree of developers on various platforms and the quality of development tools thereof are uneven, the developed IVR application has obvious difference in stability and robustness, the online quality cannot be ensured, and the business of customers is also limited by a specific IVR platform. The existing technical scheme is generally based on the VXML2.0 protocol, java code logic is directly written in a JSP page by an IVR service system, and the VXML tag is dynamically spliced through judgment of Java codes. The IVR platform then accesses the JSP page via the HTTP protocol to retrieve the generated VXML document. The method has obvious disadvantages that developers have to have deep understanding on the VXML protocol and Java programming at the same time, and business logic is tightly coupled with view rendering (VXML generation), so that the code is complex to change, the redundancy is high, the readability is poor, and finally the research and development efficiency is low. Disclosure of Invention The invention aims to overcome the defects of the prior art and provides a method for realizing VXML protocol encapsulation based on a frame label taglib. According to the method, the VXML protocol is analyzed and packaged into the reusable JSP tag through taglib, so that the reusability and the readability of IVR service logic are improved, and the development difficulty is reduced. In order to achieve the above purpose, the invention adopts the following technical scheme that the method for realizing the VXML protocol encapsulation based on the frame label taglib comprises the following steps: Step S1, based on a VXML protocol, a basic tag library is formed through taglib encapsulation, and the basic tag library is used for realizing IVR service functions; s2, configuring input parameters and output parameters of each tag in the basic tag library; Step S3, setting a custom name for each label in the basic label library; Step S4, introducing the basic tag library into the JSP page, calling corresponding tags through custom names, and assembling the tags to form an executable JSP page structure conforming to service logic; And step S5, responding to the service request from the IVR service platform, executing a JSP page by executing the assembled tag, generating an XML document conforming to the VXML protocol, returning to the IVR service platform, analyzing the XML document by the IVR service platform, and executing corresponding telephone traffic actions. Further, in step S1, a basic tag library is formed by taglib packages based on VXML protocol, which specifically includes: Acquiring the content of a VXML protocol file; Using taglib tool to analyze the file structure of VXML protocol; And according to the analyzed VXML elements and logic, packaging to form a taglib-based basic tag library. Further, in step S2, input parameters and output parameters of each tag in the basic tag library are configured, specifically: Traversing all tags in the basic tag library, and defining input parameters and output parameters of each tag. Further, in step S3, a custom name is set for each tag in the basic tag library, specifically: traversing a basic tag library configured with input and output parameters, setting a custom name for each tag, and recording the mapping relation between the custom name and a tag entity. Further, in step S4, label assembly is performed, specifically: And introducing a configured basic tag library into the head of the target JSP, calling a corresponding tag by using a custom name at a corresponding position of the JSP according to service requirements, and introducing corresponding input parameters to complete tag assembly. Further, IVR service functions implemented by the labels encapsulated in the base label library include at least one of playback, key receiving, queuing, switching, and hanging up. Further, the method is spe