WO2012051844A1 - Intelligent network platform, method for executing services and method for analyzing service abnormity - Google Patents

Intelligent network platform, method for executing services and method for analyzing service abnormity Download PDF

Info

Publication number
WO2012051844A1
WO2012051844A1 PCT/CN2011/073321 CN2011073321W WO2012051844A1 WO 2012051844 A1 WO2012051844 A1 WO 2012051844A1 CN 2011073321 W CN2011073321 W CN 2011073321W WO 2012051844 A1 WO2012051844 A1 WO 2012051844A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
intelligent network
script
call
logic
Prior art date
Application number
PCT/CN2011/073321
Other languages
French (fr)
Chinese (zh)
Inventor
舒畅
童遥
刘昕宇
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012051844A1 publication Critical patent/WO2012051844A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Definitions

  • the present invention relates to the field of communications, and in particular to an intelligent network platform, a service execution method, and a method for analyzing a service abnormality.
  • a service is composed of a plurality of basic Service Independence Blocks (SIBs), and various combinations thereof can form various business functions, and thus are widely used.
  • SIBs Service Independent Blocks
  • Applications As business logic becomes more complex, the number of SIBs in the business grows endlessly, making the structure and readability of the business worse and worse. Moreover, such a complex SIB is related to the business and is not conducive to parallel development, which often greatly extends the development cycle of a business.
  • a primary object of the present invention is to provide an intelligent network platform, a service execution method, and a method for analyzing a service anomaly to solve at least one of the above problems.
  • an intelligent network platform including: a service generation module, configured to generate a script corresponding to a service logic of each intelligent network service; a service processing module, configured to be in a call triggered intelligent network During the service, the triggered intelligent network service is executed according to the script corresponding to the business logic of the triggered intelligent network service and the call parameters of the call, and the result is output.
  • the service processing module includes: a service logic processing unit, configured to send a script corresponding to the service logic of the triggered intelligent network service generated by the service generation module, and derive a call parameter; a compiler engine syntax parsing unit, configured to receive the service logic processing a script corresponding to the business logic of the triggered intelligent network service sent by the unit, and parsing a script corresponding to the business logic of the triggered intelligent network service; a script logic processing unit, configured to be exported to the business logic processing unit The call parameter performs interpretation execution of the script, and outputs a result of executing the triggered intelligent network service; the syntax parsing execution unit is configured to interpret the executed call parameter according to the script logic processing unit, and obtain a syntax tree relationship obtained by the compiler engine syntax parsing unit Interpret execution during the call.
  • the above-mentioned compiling engine syntax parsing unit comprises: a lexical analysis subunit, configured to scan a script corresponding to the business logic of the triggered intelligent network service to generate a word sequence; the grammar analysis subunit is set to perform lexical analysis on the word sequence, Get the syntax tree; the node analysis subunit, set to analyze the nested execution relationship of the syntax tree and send it to the parsing execution unit.
  • the above lexical analysis subunit is a Lex lexical analysis subunit
  • the grammar analysis subunit is a yacc grammar analysis subunit.
  • the script logic processing unit includes: a pre-processing sub-unit configured to associate the service running state of the intelligent network call and the content in the call data area with the compiled I engine syntax parsing unit, and provide an environment variable and an initial value of the syntax execution, wherein
  • the call parameters include: the service running status and the content in the call data area; the result is returned to the subunit, and is set to output the result of executing the triggered intelligent network service.
  • the above script is written in C-like language.
  • a service execution method is provided, which is applied to an intelligent network platform, including: an intelligent network platform generates a script corresponding to a service logic of each intelligent network service; when a call triggers an intelligent network service, the smart The network platform executes the triggered intelligent network service and outputs the result according to the script corresponding to the business logic of the triggered intelligent network service and the call parameter of the call.
  • the intelligent network platform includes: a service processing module and a service generation module, where the intelligent network platform executes the triggered intelligent network service and returns a result, where the service processing module corresponds to the service logic of the triggered intelligent network service generated by the service generation module.
  • the script performs syntax analysis and performs script interpretation execution on the call parameters.
  • the service processing module interprets and executes the syntax tree relationship obtained after parsing according to the call parameters after the execution of the execution, and outputs the executed intelligent network service. result.
  • a method for analyzing a service anomaly using the foregoing intelligent network platform including: reserving one or more script compiling nodes as a probe entry when locating a problem when editing a service; When the business is abnormal, write a script for obtaining the business operation parameters of the specified number; load the script into the running business by managing the data; when the call arrives at the script compiling node as the probe entry, execute the script to obtain The business operation parameter of the specified number.
  • the above script for obtaining the service running parameter of the specified number includes: a call matching script, configured to match a call according to the service key, the calling number or the called number; the parameter tracking script is set to record the service running parameter of the specified number To the log.
  • the script compilation technology is combined with the intelligent network platform, and the script SIB is used to replace a series of complex business logics, and a script compilation scheme suitable for the intelligent network platform is proposed, which solves the structure and service of the service.
  • the problem of poor readability reduces the complexity of the business, improves the readability of the business, and makes the architecture of the business logic more clear.
  • FIG. 1 is a schematic structural diagram of an intelligent network platform according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an intelligent network platform according to a preferred embodiment of the present invention
  • FIG. 3 is a service execution method according to an embodiment of the present invention
  • Figure 4 is a logic diagram of a service execution method according to a preferred embodiment of the present invention
  • Figure 5 is a flow chart of a service anomaly analysis method according to an embodiment of the present invention
  • Figure 6 is a service exception in a preferred embodiment of the present invention
  • FIG. 1 is a schematic structural diagram of an intelligent network platform according to an embodiment of the present invention. As shown in FIG.
  • an intelligent network platform includes: a Service Creation Environment (SCE) 12 configured to generate a script corresponding to the business logic of each intelligent network service.
  • the service processing module 14 is configured to execute the triggered intelligent network service and output the result according to the script corresponding to the service logic of the triggered intelligent network service and the call parameter of the call when the call triggers the intelligent network service.
  • SCE Service Creation Environment
  • the logic uses scripts to replace a complex industry when developing business logic
  • the logic generates the business file to load on the intelligent network platform.
  • SIB independent service function block
  • SIB independent service function block
  • the service processing module 14 may further include: a Service Logic Point (SLP) 142, configured to send the service logic of the triggered intelligent network service generated by the service generation module 12. Corresponding scripts, and export call parameters.
  • SLP Service Logic Point
  • the compiling engine syntax parsing unit 144 is configured to receive a script corresponding to the service logic of the triggered intelligent network service sent by the service logic processing unit 142, and perform syntax analysis on the script corresponding to the business logic of the triggered intelligent network service.
  • the logic processing unit 146 is configured to perform script interpretation execution on the call parameters derived by the service logic processing unit 142, and output a result of executing the triggered intelligent network service.
  • the syntax parsing execution unit 148 is configured to interpret the executed call parameters by the local logic processing unit 146, and interpret the syntax tree relationship obtained by the compiling engine syntax parsing unit 144 in the call.
  • the foregoing service processing module 14 can be considered as a script compiling system, which is connected to the service generating module 12, including but not limited to the above four units, wherein the service logic processing unit 142, and the service generating module 12 and the ⁇ The logic processing unit 146 is connected, and is responsible for distinguishing the business logic generated by the service generation module 10 into the compiling engine syntax parsing unit 144 for parsing, and controlling and managing the call at the same time.
  • the corresponding The call parameter import script logic processing unit 146 performs interpretation execution of the script.
  • the compilation engine syntax parsing unit 14 4 is responsible for converting the business logic of the service generation module 12 into the data format required for the internal operation of the business processing module 14.
  • the script logic processing unit 146 is responsible for decomposing the above call parameters and the compile engine syntax. 144 is associated, and finally outputs the execution result for the entire intelligent network service.
  • the syntax parsing execution unit 148 is connected to the logical processing unit 146 and the compiling engine syntax parsing unit 144, and is responsible for interpreting and executing the syntax tree relationship obtained by the compiling engine syntax parsing unit 144 in the current call instance.
  • the business logic processing unit 142 sends the script to the compilation engine syntax parsing unit 144 for parsing of the syntax tree. It should be noted that the syntax compilation of a script in a call is only performed once. When the script is called multiple times, it directly enters the parsing execution part without repeating the parsing.
  • the business logic processing unit 142 sends the analyzed related call parameters into the script logic processing unit 146, and the script logic processing unit 146 constructs a symbol list to save and manage it, and the syntax parsing execution will match the search from the symbol list. Get the environment variables and initial values at compile time.
  • the symbol list is constructed by using a linked list, and a hash index is used for matching lookup to improve query efficiency at execution time.
  • the compiling engine syntax parsing unit 144 may further include: a lexical analysis subunit 1442 configured to scan a script corresponding to the business logic of the triggered intelligent network service to generate a sequence of words.
  • a grammar analysis sub-unit 1444 is provided for lexical analysis of the above-described word sequence to obtain a syntax tree.
  • the node analysis sub-unit 1446 is configured to analyze the nested execution relationship of the syntax tree described above and send it to the parsing execution unit 148.
  • the lexical analysis sub-unit 1442 is responsible for scanning the source program to generate a sequence of words for syntactic analysis, and the program for performing lexical analysis is called a lexical analysis program or a scanning program; grammar analysis
  • the subunit 1444 is connected to the lexical analysis subunit 1442, and is capable of generating a lexical analysis program according to a rule specified by the user;
  • the node analysis subunit 1446 is connected to the grammar analysis subunit 1444, and is responsible for analyzing the nested execution relationship of the syntax tree and sending it to
  • the parsing execution unit 148 performs the interpretation of the script for the call as needed.
  • the compilation process is actually a process of converting from a high-level language to a pre-level language, which eventually becomes a identifiable part of the object code.
  • the runtime generates the results of the run from the initial data through the object code.
  • the task of compiling the program from the beginning of the input source to the generation of the target code is a very complicated process.
  • lexical analysis, parsing, intermediate code generation, optimization and object code generation Preferably, the lexical analysis sub-unit 1442 may be a Lex lexical analysis sub-unit, and the grammar analysis sub-unit 1446 may be a yacc grammar analysis sub-unit.
  • the compiler used is a C-like compiler based on the yacc/lex architecture.
  • the yacc/lex C compiler is implemented according to the mathematical principle of syntax analysis. Scalability and compatibility. Both are very good, and the implementation is very convenient. It is an excellent implementation method.
  • the real power of lex/yacc lies in their ability to combine with C. They are free to use external C language defined functions. In fact, since lex/yacc is only an intermediate result, they eventually have to generate C code, so there is no problem with using an external C language library.
  • the compiled engine source code is implemented by C language, has strong portability, can be compiled on various types of machines, and is well embedded in the C language development environment of the intelligent network platform.
  • the script logic processing unit 146 may further include: a pre-processing sub-unit 1462 And arranging to associate the service running state of the intelligent network call and the content in the call data area with the compiling engine syntax parsing unit 144, and providing an environment variable and an initial value of the grammar execution, where the call parameter includes: the service running Status and content in the call data area.
  • the result is returned to sub-unit 1464, which is set to output the result of executing the triggered intelligent network service.
  • the pre-processing sub-unit 1462 associates the service running status of the intelligent network call, the content in the call data area with the compiling engine, and provides the environment variables and initial values of the grammar execution, which are:
  • the processing unit 142 sends the analyzed related call parameters into the pre-processing sub-unit 1462.
  • the pre-processing sub-unit 1462 constructs a symbol list (the symbol list is constructed by using a linked list, and the hash index is used for matching search). For saving and management, the parsing execution will retrieve the compile-time environment variables and initial values from the symbol list; the result return sub-unit 1464 is responsible for outputting the final result of the triggered smart network service by the parsing execution unit 148.
  • all of the above scripts can be written in a C-like language (eg, C language, C++, etc.).
  • the intelligent network platform usually uses the C language as the main language development environment. Therefore, the present invention also preferentially selects the c-like language, which facilitates the development and integration of services.
  • C-class script compiler has been widely used in intelligent network projects. It encapsulates complex business logic in SIB development. It can insert tracking nodes arbitrarily during problem tracking to achieve targeted tracking. effect. It has a positive role in promoting the development of intelligent network platforms.
  • 3 is a flow chart of a method of performing a service according to an embodiment of the present invention. As shown in FIG.
  • the service execution method includes: Step S302: The intelligent network platform generates a script corresponding to the service logic of each intelligent network service.
  • the foregoing intelligent network platform may include: a service processing module and a service generation module, where the step S304 may further include: (1) The service processing module parses the script corresponding to the business logic of the triggered intelligent network service generated by the service generation module, and performs script interpretation and execution on the call parameters.
  • the service processing module interprets and executes the syntax tree relationship obtained after parsing in the call according to the call parameters after the execution of the interpretation, and outputs the result of executing the triggered intelligent network service.
  • FIG. 4 is a logic diagram of a method of performing a service in accordance with a preferred embodiment of the present invention.
  • the use of scripts instead of complex business logic eliminates the need to use custom SIB functional units that correspond to complex business logic.
  • the C-like script compiler (equivalent to the above business processing module) to compile, interpret, and execute the script to get the expected results.
  • the present invention also provides a service anomaly analysis method for the above intelligent network platform.
  • the service abnormality analysis method includes: Step S502: Reserve one or more script compilation nodes as probe entries when locating a problem when editing a service.
  • Step S504 When it is found that the service is abnormal, write a script for acquiring a service running parameter of the specified number.
  • Step S506 loading the script into the running service by using management data.
  • Step S508 when the call arrives at the script compiling node as the probe entry, the script is executed to obtain the service running parameter of the specified number.
  • Step S502 Reserve one or more script compilation nodes as probe entries when locating a problem when editing a service.
  • Step S504 When it is found that the service is abnormal, write a script for acquiring a service running parameter of the specified number.
  • Step S506 loading the script into the running service by using management data.
  • Step S508 when the call arrives at the script compiling node as the probe entry, the script is executed to obtain the service running parameter of the specified number.
  • the foregoing script for acquiring the service running parameter of the specified number may include: The call matching script is set to match a call based on the service key, calling number, or called number.
  • the parameter tracking script is set to record the business operation parameters of the specified number into the log.
  • the above script structure can be used to match a call, and finally the required operational parameters are logged for the business developer to analyze the business anomaly.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)

Abstract

An intelligent network platform, a method for executing services and a method for analyzing service abnormity are disclosed in the present invention. The intelligent network platform includes: a service creation module, configured to create scripts corresponding to service logics of each intelligent network service; a service processing module, configured to execute a triggered intelligent network service and output the result according to calling parameters of a call and the script corresponding to the service logic of the triggered intelligent network service, when the call triggers the intelligent network service. With the technical solution in the present invention, the complexity of services is greatly reduced, the readability of services is improved and the service logic structure is clearer.

Description

智能网平台、 业务执行方法和  Intelligent network platform, business execution method and
分析业务异常的方法 技术领域 本发明涉及通信领域, 具体而言, 涉及一种智能网平台、 业务执行方法 和分析业务异常的方法。 背景技术 在智能网架构中, 业务是由很多基本的独立功能模块 ( Service Independence Block , 简称为 SIB ) 组合而成, 其多种多样的组合能够形成 各式各样的业务功能, 因此得到了广泛的应用。 但是, 随着业务逻辑越来越 复杂,业务中的 SIB个数无尽的增长,使得业务的结构性和可读性越来越差。 而且如此庞杂的 SIB相互关联构成业务也不利于并行开发, 往往大大延长了 一个业务的开发周期。 发明内容 本发明的主要目的在于提供一种智能网平台、 业务执行方法和分析业务 异常的方法, 以解决上述问题至少之一。 才艮据本发明的一方面, 提供了一种智能网平台, 包括: 业务生成模块, 设置为生成各个智能网业务的业务逻辑所对应的脚本; 业务处理模块, 设置 为在有呼叫触发智能网业务时, 才艮据被触发的智能网业务的业务逻辑对应的 脚本和该呼叫的呼叫参数, 执行被触发的智能网业务并输出结果。 上述业务处理模块包括: 业务逻辑处理单元, 设置为发送业务生成模块 生成的被触发的智能网业务的业务逻辑所对应的脚本, 并导出呼叫参数; 编 译引擎语法解析单元, 设置为接收业务逻辑处理单元发送的被触发的智能网 业务的业务逻辑所对应的脚本, 并对被触发的智能网业务的业务逻辑所对应 的脚本进行语法分析; 脚本逻辑处理单元, 设置为对业务逻辑处理单元导出 的呼叫参数进行脚本的解释执行, 并输出执行被触发的智能网业务的结果; 语法解析执行单元, 设置为根据脚本逻辑处理单元解释执行后的呼叫参数, 将编译引擎语法解析单元获得的语法树关系在呼叫中解释执行。 上述编译引擎语法解析单元包括: 词法分析子单元, 设置为对被触发的 智能网业务的业务逻辑所对应的脚本进行扫描, 产生单词序列; 文法分析子 单元, 设置为对单词序列进行词法分析, 得到语法树; 节点分析子单元, 设 置为分析语法树的嵌套执行关系并发送到语法解析执行单元。 上述词法分析子单元为 Lex 词法分析子单元, 文法分析子单元为 yacc 文法分析子单元。 上述脚本逻辑处理单元包括: 预处理子单元, 设置为将智能网呼叫的业 务运行状态和呼叫数据区中的内容与编译 I擎语法解析单元进行关联, 提供 语法执行的环境变量和初始值, 其中, 呼叫参数包括: 业务运行状态和呼叫 数据区中的内容; 结果返回子单元, 设置为输出执行被触发的智能网业务的 结果。 上述脚本釆用类 C语言编写。 根据本发明的另一方面,提供了一种业务执行方法,应用于智能网平台, 包括: 智能网平台生成各个智能网业务的业务逻辑所对应的脚本; 当有呼叫 触发智能网业务时, 智能网平台才艮据被触发的智能网业务的业务逻辑对应的 脚本和该呼叫的呼叫参数, 执行被触发的智能网业务并输出结果。 上述智能网平台包括: 业务处理模块和业务生成模块, 则智能网平台执 行被触发的智能网业务并返回结果包括: 业务处理模块对业务生成模块生成 的被触发的智能网业务的业务逻辑所对应的脚本进行语法分析, 对呼叫参数 进行脚本的解释执行; 业务处理模块根据解释执行后的呼叫参数, 将语法分 析后获得的语法树关系在呼叫中解释执行, 输出执行被触发的智能网业务的 结果。 根据本发明的又一方面, 提供了一种使用上述智能网平台的分析业务异 常的方法, 包括: 在编辑业务时预留一个或多个作为定位问题时探针入口的 脚本编译节点; 在发现业务出现异常时, 编写用于获取指定号码的业务运行 参数的脚本; 通过管理数据将该脚本加载到运行的业务中去; 当呼叫到达作 为探针入口的脚本编译节点时,执行该脚本,获取指定号码的业务运行参数。 上述用于获取指定号码的业务运行参数的脚本包括: 呼叫匹配脚本, 设 置为根据业务键、 主叫号码或被叫号码匹配到一个呼叫; 参数跟踪脚本, 设 置为将指定号码的业务运行参数记录至日志中。 通过本发明, 将脚本编译技术与智能网平台相结合, 使用脚本 SIB来替 换一串复杂的业务逻辑, 并提出了一种适用于智能网平台的脚本编译方案, 解决了业务的结构性和可读性差的问题, 进而达到了减少业务复杂性, 提高 业务可读性, 使得业务逻辑的架构更加明晰的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据本发明实施例的智能网平台的结构示意图; 图 2是根据本发明优选实施例的智能网平台的结构示意图; 图 3是根据本发明实施例的业务执行方法的流程图; 图 4是根据本发明优选实施例的业务执行方法的逻辑示意图; 图 5是根据本发明实施例的业务异常分析方法的流程图; 图 6是 居本发明优选实施例的业务异常分析方法的逻辑示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1是根据本发明实施例的智能网平台的结构示意图。 如图 1所示, 根 据本发明实施例的智能网平台包括: 业务生成模块(Service Creation Environment, 简称 SCE ) 12 , 设置为生 成各个智能网业务的业务逻辑所对应的脚本。 业务处理模块 14 , 设置为在有呼叫触发智能网业务时, 才艮据被触发的智 能网业务的业务逻辑对应的脚本和该呼叫的呼叫参数, 执行被触发的智能网 业务并输出结果。 通过上述智能网平台, 在开发业务逻辑时使用脚本来替换一串复杂的业 务逻辑生成业务文件加载的智能网平台上。 在处理相应业务时, 釆用相应的 脚本编译装置就可以将相对独立业务功能块 (Service Independence Block, 简称 SIB ) 直接通过脚本实现并嵌入业务逻辑中, 这样的业务功能块便于更 换并能重复使用, 会大大减少业务的复杂性, 提高业务的可读性, 使得业务 逻辑的架构更加明晰。 而且 έρ本有其独特的临时变量作用域的特性, 而在以 SIB 为单元业务逻辑中这种变量作用域的实现是很困难的。 利用脚本编译功 能可以很轻松的完成原来智能业务很难实现的功能。 优选地, 如图 2所示, 业务处理模块 14可以进一步包括: 业务逻辑处理单元( Service Logic Point, 简称 SLP ) 142 , 设置为发送业 务生成模块 12 生成的被触发的智能网业务的业务逻辑所对应的脚本, 并导 出呼叫参数。 编译引擎语法解析单元 144, 设置为接收业务逻辑处理单元 142发送的 被触发的智能网业务的业务逻辑所对应的脚本, 并对被触发的智能网业务的 业务逻辑所对应的脚本进行语法分析。 έρ本逻辑处理单元 146, 设置为对业务逻辑处理单元 142导出的呼叫参 数进行脚本的解释执行, 并输出执行被触发的智能网业务的结果。 语法解析执行单元 148, 设置为 居 本逻辑处理单元 146解释执行后 的呼叫参数, 将编译引擎语法解析单元 144获得的语法树关系在呼叫中解释 执行。 上述的业务处理模块 14, 可以认为是一种脚本编译系统, 它与业务生成 模块 12相连接, 包括但不限于上述 4个单元, 其中, 业务逻辑处理单元 142 , 与业务生成模块 12和 έρ本逻辑处理单元 146连 接, 负责将业务生成模块 10 生成的业务逻辑区分出来送入编译引擎语法解 析单元 144进行语法分析, 同时对呼叫进行控制管理, 当用户呼叫需要使用 脚本编译功能时, 将对应的呼叫参数导入脚本逻辑处理单元 146进行脚本的 解释执行。 编译引擎语法解析单元 144 负责将业务生成模块 12的业务逻辑转换为 业务处理模块 14内部运行所需的数据格式。 脚本逻辑处理单元 146 负责将上述呼叫参数与编译引擎语法解斩蕈元 144关联, 并最终输出对整个智能网业务的执行结果。 语法解析执行单元 148, 与 έρ本逻辑处理单元 146和编译引擎语法解析 单元 144相连, 负责将编译引擎语法解析单元 144获得的语法树关系在本次 呼叫实例中进行解释执行。 下面结合图 2对上述优选实施例进行详细说明。 如图 2所示,当一个呼叫触发了智能网业务时,由业务逻辑处理单元 142 分析出当前需要使用的脚本及相关的呼叫参数。 业务逻辑处理单元 142将脚 本送入编译引擎语法解析单元 144中进行语法树的解析。 需要注意的是, 一 个呼叫中脚本的语法编译只进行一次, 多次调用该脚本时, 直接进入语法解 析执行部分而不必重复解析。 业务逻辑处理单元 142将分析出的相关呼叫参数送入脚本逻辑处理单元 146中, 脚本逻辑处理单元 146会构建一张符号列表对其进行保存和管理, 语法解析执行时会从符号列表中匹配查找获得编译时的环境变量和初始值。 该符号列表釆用链表的构建方式,使用 hash索引进行匹配查找以提高执行时 的查询效率。 最后, 将当前 SIB解析后的语法关系树和当前呼叫的符号列表一并被送 入语法解析执行单元 148获取预期的执行结果。 由 SIB组成的业务逻辑是可以用脚本等价替换的, 将复杂的 SIB逻辑和 脚本之间相互转换后, 经过不同的接口最终生成相同功能的可执行代码, 很 大程度地丰富了业务开发的方式。 优选地, 如图 2所示, 编译引擎语法解析单元 144可以进一步包括: 词法分析子单元 1442 ,设置为对被触发的智能网业务的业务逻辑所对应 的脚本进行扫描, 产生单词序列。 文法分析子单元 1444 , 设置为对上述单词序列进行词法分析, 得到语法 树。 节点分析子单元 1446 ,设置为分析上述语法树的嵌套执行关系并发送到 语法解析执行单元 148。 在上述编译引擎语法解析单元 144中, 词法分析子单元 1442 , 负责对源 程序进行扫描, 产生一个个单词序列, 用以语法分析, 执行词法分析的程序 称为词法分析程序或扫描程序;文法分析子单元 1444与词法分析子单元 1442 相连, 能够根据用户指定的规则, 生成一个词法分析程序; 节点分析子单元 1446与文法分析子单元 1444相连, 负责分析语法树的嵌套执行关系, 并发 送到语法解析执行单元 148以供呼叫根据需要进行脚本的解释执行。 编译过程实际上是一个由高级语言向氏级语言转化的过程, 最终变成可 识别的部目标代码。 运行时由初始数据通过目标代码生成运行结果。 编译程 序的工作即从输入源程序开始到目标代码生成为止的整个过程, 是非常复杂 的过程。 一般分为: 词法分析、 语法分析、 中间代码生成、 优化和目标代码 生成几个阶段。 优选地, 上述词法分析子单元 1442可以为 Lex词法分析子单元, 所述 文法分析子单元 1446可以为 yacc文法分析子单元。 在优选实施过程中, 使用的编译器是一种基于 yacc/lex架构的类 C语言 编译器, yacc/lex类 C语言编译器是按照语法分析的数学原理来实现的, 可 扩展性与兼容性都很好, 实现也很方便, 是一种优秀的实现方法。 lex/yacc 真正强大之处在于他们和 C语言的结合能力上。 它们可以自由的使用外部的 C语言定义好的函数。 事实上, 由于 lex/yacc只是一种中间结果, 它们最终 还是要生成 C代码的, 所以使用外部的 C语言类库是没有任何问题的。 编译 引擎源代码由 C语言实现, 可移植能力强, 能在各种类型机器上进行编译, 4艮好的嵌入了智能网平台的 C语言开发环境中。 在 Lex源程序中, 将基于正则表达式的模式说明与词法分析器要完成的 动作组织在一起, 输出是词法分析器的 C语言程序。 yacc 能识别 LALR(l) 且无歧义的文法, 它的输入是词法分析器的输出。 上述编译系统支持的文法如下: 支持的关键字: TECHNICAL FIELD The present invention relates to the field of communications, and in particular to an intelligent network platform, a service execution method, and a method for analyzing a service abnormality. BACKGROUND In an intelligent network architecture, a service is composed of a plurality of basic Service Independence Blocks (SIBs), and various combinations thereof can form various business functions, and thus are widely used. Applications. However, as business logic becomes more complex, the number of SIBs in the business grows endlessly, making the structure and readability of the business worse and worse. Moreover, such a complex SIB is related to the business and is not conducive to parallel development, which often greatly extends the development cycle of a business. SUMMARY OF THE INVENTION A primary object of the present invention is to provide an intelligent network platform, a service execution method, and a method for analyzing a service anomaly to solve at least one of the above problems. According to an aspect of the present invention, an intelligent network platform is provided, including: a service generation module, configured to generate a script corresponding to a service logic of each intelligent network service; a service processing module, configured to be in a call triggered intelligent network During the service, the triggered intelligent network service is executed according to the script corresponding to the business logic of the triggered intelligent network service and the call parameters of the call, and the result is output. The service processing module includes: a service logic processing unit, configured to send a script corresponding to the service logic of the triggered intelligent network service generated by the service generation module, and derive a call parameter; a compiler engine syntax parsing unit, configured to receive the service logic processing a script corresponding to the business logic of the triggered intelligent network service sent by the unit, and parsing a script corresponding to the business logic of the triggered intelligent network service; a script logic processing unit, configured to be exported to the business logic processing unit The call parameter performs interpretation execution of the script, and outputs a result of executing the triggered intelligent network service; the syntax parsing execution unit is configured to interpret the executed call parameter according to the script logic processing unit, and obtain a syntax tree relationship obtained by the compiler engine syntax parsing unit Interpret execution during the call. The above-mentioned compiling engine syntax parsing unit comprises: a lexical analysis subunit, configured to scan a script corresponding to the business logic of the triggered intelligent network service to generate a word sequence; the grammar analysis subunit is set to perform lexical analysis on the word sequence, Get the syntax tree; the node analysis subunit, set to analyze the nested execution relationship of the syntax tree and send it to the parsing execution unit. The above lexical analysis subunit is a Lex lexical analysis subunit, and the grammar analysis subunit is a yacc grammar analysis subunit. The script logic processing unit includes: a pre-processing sub-unit configured to associate the service running state of the intelligent network call and the content in the call data area with the compiled I engine syntax parsing unit, and provide an environment variable and an initial value of the syntax execution, wherein The call parameters include: the service running status and the content in the call data area; the result is returned to the subunit, and is set to output the result of executing the triggered intelligent network service. The above script is written in C-like language. According to another aspect of the present invention, a service execution method is provided, which is applied to an intelligent network platform, including: an intelligent network platform generates a script corresponding to a service logic of each intelligent network service; when a call triggers an intelligent network service, the smart The network platform executes the triggered intelligent network service and outputs the result according to the script corresponding to the business logic of the triggered intelligent network service and the call parameter of the call. The intelligent network platform includes: a service processing module and a service generation module, where the intelligent network platform executes the triggered intelligent network service and returns a result, where the service processing module corresponds to the service logic of the triggered intelligent network service generated by the service generation module. The script performs syntax analysis and performs script interpretation execution on the call parameters. The service processing module interprets and executes the syntax tree relationship obtained after parsing according to the call parameters after the execution of the execution, and outputs the executed intelligent network service. result. According to still another aspect of the present invention, a method for analyzing a service anomaly using the foregoing intelligent network platform is provided, including: reserving one or more script compiling nodes as a probe entry when locating a problem when editing a service; When the business is abnormal, write a script for obtaining the business operation parameters of the specified number; load the script into the running business by managing the data; when the call arrives at the script compiling node as the probe entry, execute the script to obtain The business operation parameter of the specified number. The above script for obtaining the service running parameter of the specified number includes: a call matching script, configured to match a call according to the service key, the calling number or the called number; the parameter tracking script is set to record the service running parameter of the specified number To the log. Through the invention, the script compilation technology is combined with the intelligent network platform, and the script SIB is used to replace a series of complex business logics, and a script compilation scheme suitable for the intelligent network platform is proposed, which solves the structure and service of the service. The problem of poor readability, in turn, reduces the complexity of the business, improves the readability of the business, and makes the architecture of the business logic more clear. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a schematic structural diagram of an intelligent network platform according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of an intelligent network platform according to a preferred embodiment of the present invention; FIG. 3 is a service execution method according to an embodiment of the present invention; Figure 4 is a logic diagram of a service execution method according to a preferred embodiment of the present invention; Figure 5 is a flow chart of a service anomaly analysis method according to an embodiment of the present invention; Figure 6 is a service exception in a preferred embodiment of the present invention A schematic diagram of the analysis method. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. FIG. 1 is a schematic structural diagram of an intelligent network platform according to an embodiment of the present invention. As shown in FIG. 1 , an intelligent network platform according to an embodiment of the present invention includes: a Service Creation Environment (SCE) 12 configured to generate a script corresponding to the business logic of each intelligent network service. The service processing module 14 is configured to execute the triggered intelligent network service and output the result according to the script corresponding to the service logic of the triggered intelligent network service and the call parameter of the call when the call triggers the intelligent network service. Through the above intelligent network platform, use scripts to replace a complex industry when developing business logic The logic generates the business file to load on the intelligent network platform. When processing the corresponding service, the corresponding independent service function block (SIB) can be directly implemented by script and embedded in the business logic, and the service function block can be easily replaced and reused. , will greatly reduce the complexity of the business, improve the readability of the business, and make the structure of the business logic more clear. Moreover, έρ has its unique characteristics of temporary variable scope, and the implementation of the scope of such variables in SIB as a unit business logic is very difficult. The script compilation function makes it easy to perform functions that were difficult to implement in the original smart business. Preferably, as shown in FIG. 2, the service processing module 14 may further include: a Service Logic Point (SLP) 142, configured to send the service logic of the triggered intelligent network service generated by the service generation module 12. Corresponding scripts, and export call parameters. The compiling engine syntax parsing unit 144 is configured to receive a script corresponding to the service logic of the triggered intelligent network service sent by the service logic processing unit 142, and perform syntax analysis on the script corresponding to the business logic of the triggered intelligent network service. The logic processing unit 146 is configured to perform script interpretation execution on the call parameters derived by the service logic processing unit 142, and output a result of executing the triggered intelligent network service. The syntax parsing execution unit 148 is configured to interpret the executed call parameters by the local logic processing unit 146, and interpret the syntax tree relationship obtained by the compiling engine syntax parsing unit 144 in the call. The foregoing service processing module 14 can be considered as a script compiling system, which is connected to the service generating module 12, including but not limited to the above four units, wherein the service logic processing unit 142, and the service generating module 12 and the έρ本The logic processing unit 146 is connected, and is responsible for distinguishing the business logic generated by the service generation module 10 into the compiling engine syntax parsing unit 144 for parsing, and controlling and managing the call at the same time. When the user calls the script compiling function, the corresponding The call parameter import script logic processing unit 146 performs interpretation execution of the script. The compilation engine syntax parsing unit 14 4 is responsible for converting the business logic of the service generation module 12 into the data format required for the internal operation of the business processing module 14. The script logic processing unit 146 is responsible for decomposing the above call parameters and the compile engine syntax. 144 is associated, and finally outputs the execution result for the entire intelligent network service. The syntax parsing execution unit 148 is connected to the logical processing unit 146 and the compiling engine syntax parsing unit 144, and is responsible for interpreting and executing the syntax tree relationship obtained by the compiling engine syntax parsing unit 144 in the current call instance. The above preferred embodiment will be described in detail below with reference to FIG. As shown in FIG. 2, when a call triggers an intelligent network service, the business logic processing unit 142 analyzes the script and related call parameters that are currently needed to be used. The business logic processing unit 142 sends the script to the compilation engine syntax parsing unit 144 for parsing of the syntax tree. It should be noted that the syntax compilation of a script in a call is only performed once. When the script is called multiple times, it directly enters the parsing execution part without repeating the parsing. The business logic processing unit 142 sends the analyzed related call parameters into the script logic processing unit 146, and the script logic processing unit 146 constructs a symbol list to save and manage it, and the syntax parsing execution will match the search from the symbol list. Get the environment variables and initial values at compile time. The symbol list is constructed by using a linked list, and a hash index is used for matching lookup to improve query efficiency at execution time. Finally, the current SIB parsed syntax relation tree and the symbol list of the current call are sent to the parsing execution unit 148 to obtain the expected execution result. The business logic consisting of SIBs can be replaced by script equivalents. After the complex SIB logic and scripts are converted to each other, the executable code of the same function is finally generated through different interfaces, which greatly enriches the business development. the way. Preferably, as shown in FIG. 2, the compiling engine syntax parsing unit 144 may further include: a lexical analysis subunit 1442 configured to scan a script corresponding to the business logic of the triggered intelligent network service to generate a sequence of words. A grammar analysis sub-unit 1444 is provided for lexical analysis of the above-described word sequence to obtain a syntax tree. The node analysis sub-unit 1446 is configured to analyze the nested execution relationship of the syntax tree described above and send it to the parsing execution unit 148. In the above-described compiling engine syntax parsing unit 144, the lexical analysis sub-unit 1442 is responsible for scanning the source program to generate a sequence of words for syntactic analysis, and the program for performing lexical analysis is called a lexical analysis program or a scanning program; grammar analysis The subunit 1444 is connected to the lexical analysis subunit 1442, and is capable of generating a lexical analysis program according to a rule specified by the user; the node analysis subunit 1446 is connected to the grammar analysis subunit 1444, and is responsible for analyzing the nested execution relationship of the syntax tree and sending it to The parsing execution unit 148 performs the interpretation of the script for the call as needed. The compilation process is actually a process of converting from a high-level language to a pre-level language, which eventually becomes a identifiable part of the object code. The runtime generates the results of the run from the initial data through the object code. The task of compiling the program from the beginning of the input source to the generation of the target code is a very complicated process. Generally divided into: lexical analysis, parsing, intermediate code generation, optimization and object code generation. Preferably, the lexical analysis sub-unit 1442 may be a Lex lexical analysis sub-unit, and the grammar analysis sub-unit 1446 may be a yacc grammar analysis sub-unit. In the preferred implementation process, the compiler used is a C-like compiler based on the yacc/lex architecture. The yacc/lex C compiler is implemented according to the mathematical principle of syntax analysis. Scalability and compatibility. Both are very good, and the implementation is very convenient. It is an excellent implementation method. The real power of lex/yacc lies in their ability to combine with C. They are free to use external C language defined functions. In fact, since lex/yacc is only an intermediate result, they eventually have to generate C code, so there is no problem with using an external C language library. The compiled engine source code is implemented by C language, has strong portability, can be compiled on various types of machines, and is well embedded in the C language development environment of the intelligent network platform. In the Lex source program, the regular expression-based schema description is organized with the lexical analyzer's actions to be completed, and the output is a C-language program of the lexical analyzer. Yacc recognizes LALR(l) and has an unambiguous grammar whose input is the output of the lexer. The syntax supported by the above compilation system is as follows: Supported keywords:
NULL if then else while do return switch case default break continue for exit 支持的操作符: NULL if then else while do return switch case default break continue for exit Supported operators:
&& &&
I I
& &
< > <= >= + - * / % < > <= >= + - * / %
++—!〜 优先级别从上往下依次升高。 基本语法: atoi itoanextsib strlen strcpy strcat strtok strops substr strcmp toupper tolower ltrim rtrim 脚本 sib中有把 SCE中的数据类型分成三大类: ++—! ~ The priority level increases from top to bottom. Basic syntax: atoi itoanextsib strlen strcpy strcat strtok strops substr strcmp toupper tolower ltrim rtrim script sib has three types of data types in SCE:
NUMBER TYPE,STRING TYPE, OTHER TYPE 操作数的兼容性的判断标准就是按照这三个大类来进行判断. 优选地, 如图 2所示, 脚本逻辑处理单元 146可以进一步包括: 预处理子单元 1462,设置为将智能网呼叫的业务运行状态和呼叫数据区 中的内容与编译引擎语法解析单元 144进行关联, 提供语法执行的环境变量 和初始值, 其中, 所述呼叫参数包括: 所述业务运行状态和所述呼叫数据区 中的内容。 结果返回子单元 1464, 设置为输出执行被触发的智能网业务的结果。 在上述脚本逻辑处理单元 146 中, 预处理子单元 1462将智能网呼叫相 关的业务运行状态, 呼叫数据区中的内容与编译引擎关联, 提供语法执行的 环境变量和初始值, 具体为: 业务逻辑处理单元 142将分析出的相关呼叫参 数送入预处理子单元 1462中, 预处理子单元 1462会构建一张符号列表 (该 符号列表釆用链表的构建方式, 使用 hash索引进行匹配查找)对其进行保存 和管理, 语法解析执行时会从符号列表中匹配查找获得编译时的环境变量和 初始值; 结果返回子单元 1464 负责输出语法解析执行单元 148执行被触发 的智能网业务的最后结果。 优选地, 上述的所有脚本都可以釆用类 C语言(例如, C语言, C++等) 编写。 鉴于 C语言良好的可移植性和运行效率,智能网平台通常釆用 C语言作 为主要的语言开发环境, 因此本发明也优先选择了类 c语言, 便于业务的开 发与集成。 类 C脚本编译器作为一种扩展性很好的工具已在智能网项目中得到了广 泛应用, 在 SIB开发中封装代替复杂的业务逻辑, 在问题跟踪时能任意插入 跟踪节点实现有针对性跟踪效果。对智能网平台的发展有着积极的推动作用。 图 3是根据本发明实施例的业务执行方法的流程图。 如图 3所示, 根据 本发明实施例的业务执行方法包括: 步骤 S302, 智能网平台生成各个智能网业务的业务逻辑所对应的脚本。 步骤 S304 , 当有呼叫触发智能网业务时, 智能网平台 居被触发的智能 网业务的业务逻辑对应的脚本和该呼叫的呼叫参数, 执行被触发的智能网业 务并输出结果。 通过上述方法, 在开发业务逻辑时, 使用脚本来替换一串复杂的业务逻 辑生成业务文件, 加载的智能网平台上, 大大减少了业务的复杂性, 提高了 业务的可读性, 同时使得业务逻辑的架构变得更加明晰了。 优选地, 上述智能网平台可以包括: 业务处理模块和业务生成模块, 则 上述步骤 S304可以进一步包括: ( 1 ) 业务处理模块对业务生成模块生成的上述被触发的智能网业务的 业务逻辑所对应的脚本进行语法分析, 对呼叫参数进行脚本的解释执行。 The criteria for judging the compatibility of the NUMBER TYPE, STRING TYPE, and OTHER TYPE operands are determined according to the three major classes. Preferably, as shown in FIG. 2, the script logic processing unit 146 may further include: a pre-processing sub-unit 1462 And arranging to associate the service running state of the intelligent network call and the content in the call data area with the compiling engine syntax parsing unit 144, and providing an environment variable and an initial value of the grammar execution, where the call parameter includes: the service running Status and content in the call data area. The result is returned to sub-unit 1464, which is set to output the result of executing the triggered intelligent network service. In the above-mentioned script logic processing unit 146, the pre-processing sub-unit 1462 associates the service running status of the intelligent network call, the content in the call data area with the compiling engine, and provides the environment variables and initial values of the grammar execution, which are: The processing unit 142 sends the analyzed related call parameters into the pre-processing sub-unit 1462. The pre-processing sub-unit 1462 constructs a symbol list (the symbol list is constructed by using a linked list, and the hash index is used for matching search). For saving and management, the parsing execution will retrieve the compile-time environment variables and initial values from the symbol list; the result return sub-unit 1464 is responsible for outputting the final result of the triggered smart network service by the parsing execution unit 148. Preferably, all of the above scripts can be written in a C-like language (eg, C language, C++, etc.). In view of the good portability and operational efficiency of the C language, the intelligent network platform usually uses the C language as the main language development environment. Therefore, the present invention also preferentially selects the c-like language, which facilitates the development and integration of services. As a kind of extensible tool, C-class script compiler has been widely used in intelligent network projects. It encapsulates complex business logic in SIB development. It can insert tracking nodes arbitrarily during problem tracking to achieve targeted tracking. effect. It has a positive role in promoting the development of intelligent network platforms. 3 is a flow chart of a method of performing a service according to an embodiment of the present invention. As shown in FIG. 3, the service execution method according to the embodiment of the present invention includes: Step S302: The intelligent network platform generates a script corresponding to the service logic of each intelligent network service. Step S304: When a call triggers the intelligent network service, the intelligent network platform is in the script corresponding to the service logic of the triggered intelligent network service and the call parameter of the call, and the triggered intelligent network service is executed and the result is output. Through the above method, when developing business logic, a script is used to replace a series of complex business logic to generate business files, and the loaded intelligent network platform greatly reduces the complexity of the business, improves the readability of the business, and enables the business. The logical architecture has become clearer. Preferably, the foregoing intelligent network platform may include: a service processing module and a service generation module, where the step S304 may further include: (1) The service processing module parses the script corresponding to the business logic of the triggered intelligent network service generated by the service generation module, and performs script interpretation and execution on the call parameters.
( 2 ) 业务处理模块根据解释执行后的呼叫参数, 将语法分析后获得的 语法树关系在呼叫中解释执行, 输出执行被触发的智能网业务的结果。 以下结合图 4描述上述优选实施方式。 图 4是根据本发明优选实施例的业务执行方法的逻辑示意图。 如图 4所 示, 使用脚本代替了复杂的业务逻辑, 也就不再需要使用与复杂的业务逻辑 对应的定制的 SIB功能单元了。 之后釆用类 C脚本编译器(相当于上述业务 处理模块) 对脚本进行编译、 解释、 执行后就可以获得预期的结果了。 本发明还提供了一种以用于上述智能网平台的业务异常分析方法。 图 5 是根据本发明实施例的业务异常分析方法的流程图。 如图 5所示, 根据本发 明实施例的业务异常分析方法包括: 步骤 S502,在编辑业务时预留一个或多个作为定位问题时探针入口的脚 本编译节点。 步骤 S504, 在发现所述业务出现异常时, 编写用于获取指定号码的业务 运行参数的脚本。 步骤 S506, 通过管理数据将该脚本加载到运行的所述业务中去。 步骤 S508, 当呼叫到达作为探针入口的脚本编译节点时, 执行该脚本, 获取指定号码的业务运行参数。 以往在定位业务流程问题时, 维护人员想获取业务运行时的相关信息, 需要在业务开发阶段, 对关键变量做日志跟踪, 不仅大大增加了业务开发周 期, 而且很难做到完全覆盖。 这样导致发现问题后, 重新制作有针对性的业 务版本去跟踪问题, 不可避免的会牵涉到业务的升级操作, 影响其他在线用 户呼叫。 使用上述的方法可以通过业务开发预留的探针节点, 获取该呼叫相 关的任何参数信息, 通过管理数据的加载方式可以免去业务升级的麻烦, 不 影响该业务的其他用户正常呼叫。 优选地, 上述用于获取指定号码的业务运行参数的脚本可以包括: 呼叫匹配脚本, 设置为根据业务键、 主叫号码或被叫号码匹配到一个呼 叫。 参数跟踪脚本, 设置为将指定号码的业务运行参数记录至日志中。 如图 6所示, 使用上述脚本结构即可匹配到一个呼叫, 并最后将需要的 运行参数记录入日志以供业务开发人员分析业务异常的问题。 从以上的描述中, 可以看出, 通过本发明提供的方案, 可以使智能网业 务能够通过简单的脚本编辑实现复杂的业务逻辑, 使固定的智能网业务可以 进行灵活的变化, 同时使智能网业务的开发变得更加灵活多样, 为业务人员 提供更大的可操作空间和更方便的维护性。 使用本发明的智能网平台, 使得 智能网能够更加灵活的应对外界千变万化的需求, 有着丰富的应用场景和良 好的应用前景。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 (2) The service processing module interprets and executes the syntax tree relationship obtained after parsing in the call according to the call parameters after the execution of the interpretation, and outputs the result of executing the triggered intelligent network service. The above preferred embodiment will be described below in conjunction with FIG. 4 is a logic diagram of a method of performing a service in accordance with a preferred embodiment of the present invention. As shown in Figure 4, the use of scripts instead of complex business logic eliminates the need to use custom SIB functional units that correspond to complex business logic. Then use the C-like script compiler (equivalent to the above business processing module) to compile, interpret, and execute the script to get the expected results. The present invention also provides a service anomaly analysis method for the above intelligent network platform. FIG. 5 is a flowchart of a method for analyzing an abnormality of a service according to an embodiment of the present invention. As shown in FIG. 5, the service abnormality analysis method according to the embodiment of the present invention includes: Step S502: Reserve one or more script compilation nodes as probe entries when locating a problem when editing a service. Step S504: When it is found that the service is abnormal, write a script for acquiring a service running parameter of the specified number. Step S506, loading the script into the running service by using management data. Step S508, when the call arrives at the script compiling node as the probe entry, the script is executed to obtain the service running parameter of the specified number. In the past, when locating business process problems, maintenance personnel want to obtain relevant information about the business operation. It is necessary to log the key variables during the business development stage, which not only greatly increases the business development cycle, but also makes it difficult to fully cover. This leads to the re-creation of targeted business versions to track problems after the problem is discovered. Inevitably, it involves the upgrade operation of the business and affects other online user calls. The above-mentioned method can be used to obtain any parameter information related to the call through the probe node reserved by the service development. The loading of the management data can eliminate the trouble of service upgrade and does not affect the normal call of other users of the service. Preferably, the foregoing script for acquiring the service running parameter of the specified number may include: The call matching script is set to match a call based on the service key, calling number, or called number. The parameter tracking script is set to record the business operation parameters of the specified number into the log. As shown in Figure 6, the above script structure can be used to match a call, and finally the required operational parameters are logged for the business developer to analyze the business anomaly. From the above description, it can be seen that the solution provided by the present invention can enable the intelligent network service to implement complex business logic through simple script editing, so that the fixed intelligent network service can be flexibly changed, and at the same time, the intelligent network can be made. Business development has become more flexible and diverse, providing business operators with greater operational space and easier maintenance. By using the intelligent network platform of the invention, the intelligent network can more flexibly respond to the ever-changing needs of the outside world, and has rich application scenarios and good application prospects. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种智能网平台, 包括: 1. An intelligent network platform, including:
业务生成模块, 设置为生成各个智能网业务的业务逻辑所对应的脚 本;  The service generation module is configured to generate a script corresponding to the business logic of each intelligent network service;
业务处理模块, 设置为在有呼叫触发智能网业务时, 才艮据所述被触 发的智能网业务的业务逻辑对应的脚本和所述呼叫的呼叫参数, 执行所 述被触发的智能网业务并输出结果。  The service processing module is configured to: when the call triggers the intelligent network service, execute the triggered intelligent network service according to the script corresponding to the service logic of the triggered intelligent network service and the call parameter of the call Output the result.
2. 根据权利要求 1所述的智能网平台, 其中, 所述业务处理模块包括: 业务逻辑处理单元, 设置为发送所述业务生成模块生成的所述被触 发的智能网业务的业务逻辑所对应的脚本, 并导出所述呼叫参数; 编译引擎语法解析单元, 设置为接收所述业务逻辑处理单元发送的 所述被触发的智能网业务的业务逻辑所对应的脚本, 并对所述被触发的 智能网业务的业务逻辑所对应的脚本进行语法分析;The intelligent network platform according to claim 1, wherein the service processing module comprises: a service logic processing unit, configured to send a service logic corresponding to the triggered intelligent network service generated by the service generation module a script, and exporting the call parameter; a compiling engine syntax parsing unit, configured to receive a script corresponding to the business logic of the triggered intelligent network service sent by the service logic processing unit, and to trigger the triggered The script corresponding to the business logic of the intelligent network service performs syntax analysis;
έρ本逻辑处理单元, 设置为对所述业务逻辑处理单元导出的所述呼 叫参数进行脚本的解释执行, 并输出执行所述被触发的智能网业务的结 果;  The logic processing unit is configured to perform script interpretation execution on the call parameter derived by the service logic processing unit, and output a result of executing the triggered intelligent network service;
语法解析执行单元, 设置为 艮据所述脚本逻辑处理单元解释执行后 的呼叫参数, 将所述编译引擎语法解析单元获得的语法树关系在所述呼 叫中解释执行。  The syntax parsing execution unit is configured to interpret the executed call parameters according to the script logic processing unit, and interpret the syntax tree relationship obtained by the compiling engine syntax parsing unit in the call.
3. 根据权利要求 2所述的智能网平台, 其中, 所述编译引擎语法解析单元 包括: The intelligent network platform according to claim 2, wherein the compiling engine syntax parsing unit comprises:
词法分析子单元, 设置为对所述被触发的智能网业务的业务逻辑所 对应的脚本进行扫描, 产生单词序列;  a lexical analysis subunit, configured to scan a script corresponding to the business logic of the triggered intelligent network service to generate a sequence of words;
文法分析子单元, 设置为对所述单词序列进行词法分析, 得到语法 树;  A grammar analysis subunit, configured to perform lexical analysis on the sequence of words to obtain a grammar tree;
节点分析子单元, 设置为分析所述语法树的嵌套执行关系并发送到 所述语法解析执行单元。 A node analysis subunit, configured to analyze a nested execution relationship of the syntax tree and send to the parsing execution unit.
4. 才艮据权利要求 3所述的智能网平台, 其中, 所述词法分析子单元为 Lex 词法分析子单元, 所述文法分析子单元为 yacc文法分析子单元。 4. The intelligent network platform according to claim 3, wherein the lexical analysis subunit is a Lex lexical analysis subunit, and the grammar analysis subunit is a yacc grammar analysis subunit.
5. 才艮据权利要求 2所述的智能网平台, 其中, 所述脚本逻辑处理单元包括: 预处理子单元, 设置为将智能网呼叫的业务运行状态和呼叫数据区 中的内容与所述编译引擎语法解析单元进行关联, 提供语法执行的环境 变量和初始值, 其中, 所述呼叫参数包括: 所述业务运行状态和所述呼 叫数据区中的内容; The intelligent network platform according to claim 2, wherein the script logic processing unit comprises: a pre-processing sub-unit, configured to set a service running state of the intelligent network call and content in the call data area with the The compiling engine syntax parsing unit performs association, and provides an environment variable and an initial value of the syntax execution, where the call parameter includes: the service running status and the content in the call data area;
结果返回子单元,设置为输出执行所述被触发的智能网业务的结果。  The result is returned to the subunit, which is set to output the result of executing the triggered intelligent network service.
6. 根据权利要求 1至 5中任一项所述的智能网平台, 其中, 所述脚本釆用 类 C语言编写。 The intelligent network platform according to any one of claims 1 to 5, wherein the script is written in a C-like language.
7. 一种业务执行方法, 应用于智能网平台, 所述方法包括: A service execution method, applied to an intelligent network platform, the method comprising:
所述智能网平台生成各个智能网业务的业务逻辑所对应的脚本; 当有呼叫触发智能网业务时, 所述智能网平台才艮据所述被触发的智 能网业务的业务逻辑对应的脚本和所述呼叫的呼叫参数, 执行所述被触 发的智能网业务并输出结果。  The intelligent network platform generates a script corresponding to the service logic of each intelligent network service; when a call triggers the intelligent network service, the intelligent network platform refers to the script corresponding to the service logic of the triggered intelligent network service. The call parameter of the call performs the triggered intelligent network service and outputs a result.
8. 根据权利要求 7所述的方法, 其中, 所述智能网平台包括: 业务处理模 块和业务生成模块, 则所述智能网平台执行所述被触发的智能网业务并 返回结果包括: The method of claim 7, wherein the intelligent network platform comprises: a service processing module and a service generation module, wherein the intelligent network platform executes the triggered intelligent network service and returns a result comprising:
所述业务处理模块对所述业务生成模块生成的所述被触发的智能网 业务的业务逻辑所对应的脚本进行语法分析, 对所述呼叫参数进行脚本 的解释执行;  The service processing module performs syntax analysis on a script corresponding to the service logic of the triggered intelligent network service generated by the service generation module, and performs script interpretation on the call parameter;
所述业务处理模块根据解释执行后的所述呼叫参数, 将所述语法分 析后获得的语法树关系在所述呼叫中解释执行, 输出执行所述被触发的 智能网业务的结果。  And the service processing module interprets and executes the syntax tree relationship obtained by the grammar analysis in the call according to the call parameter after the execution of the interpretation, and outputs a result of executing the triggered intelligent network service.
9. 一种使用权利要求 1至 5中任一项所述的智能网平台分析业务异常的方 法, 包括: 9. A method of analyzing a service anomaly using the intelligent network platform of any one of claims 1 to 5, comprising:
在编辑业务时预留一个或多个作为定位问题时探针入口的脚本编译 节点; 在发现所述业务出现异常时, 编写用于获取指定号码的业务运行参 数的脚本; Reserve one or more script compilation nodes as probe entry points when locating the problem when editing the business; When the service is found to be abnormal, a script for obtaining a service running parameter of the specified number is written;
通过管理数据将所述脚本加载到运行的所述业务中去; 当呼叫到达所述脚本编译节点时, 执行所述脚本, 获取所述指定号 码的业务运行参数。  The script is loaded into the running service by management data; when the call arrives at the script compiling node, the script is executed to obtain the service running parameter of the specified number.
10. 根据权利要求 9所述的方法, 其中, 所述用于获取指定号码的业务运行 参数的脚本包括: 10. The method according to claim 9, wherein the script for acquiring a service running parameter of a specified number comprises:
呼叫匹配脚本, 设置为根据业务键、 主叫号码或被叫号码匹配到一 个呼叫 . 参数跟踪脚本, 设置为将所述指定号码的业务运行参数记录至日志 中。  The call matching script is set to match to a call according to the service key, the calling number or the called number. The parameter tracking script is set to record the service running parameters of the specified number into the log.
PCT/CN2011/073321 2010-10-21 2011-04-26 Intelligent network platform, method for executing services and method for analyzing service abnormity WO2012051844A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010515498.7 2010-10-21
CN201010515498.7A CN101980546B (en) 2010-10-21 2010-10-21 Intelligent network platform, service execution method and method for analyzing service abnormality

Publications (1)

Publication Number Publication Date
WO2012051844A1 true WO2012051844A1 (en) 2012-04-26

Family

ID=43601024

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073321 WO2012051844A1 (en) 2010-10-21 2011-04-26 Intelligent network platform, method for executing services and method for analyzing service abnormity

Country Status (2)

Country Link
CN (1) CN101980546B (en)
WO (1) WO2012051844A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740836A (en) * 2018-11-16 2019-05-10 国网山东省电力公司 A kind of retrospective line loss of whole-network anomaly and Equilibrium Analysis Method and device
CN112800741A (en) * 2021-01-29 2021-05-14 远光软件股份有限公司 Task execution method, electronic device and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980546B (en) * 2010-10-21 2014-03-19 中兴通讯股份有限公司 Intelligent network platform, service execution method and method for analyzing service abnormality
CN102214100A (en) * 2011-06-24 2011-10-12 南京中兴新软件有限责任公司 Method and device for performing service
CN102999370A (en) * 2011-09-16 2013-03-27 腾讯科技(深圳)有限公司 Method and system for executing script
CN103067191B (en) * 2011-10-18 2018-08-21 南京中兴新软件有限责任公司 A kind of online tracking system of intelligent network business and method
CN106971250A (en) * 2016-01-13 2017-07-21 阿里巴巴集团控股有限公司 A kind of data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700781A (en) * 2005-06-30 2005-11-23 西安大唐电信有限公司 Method for controlling multiple call sections service of intelligent network
CN101547263A (en) * 2009-05-13 2009-09-30 烽火通信科技股份有限公司 Telecom value-added service server based on XML script and realizing method thereof
CN101621773A (en) * 2008-07-02 2010-01-06 中兴通讯股份有限公司 Networking system realizing intensified IP service and method therefore
CN101631262A (en) * 2009-08-25 2010-01-20 中兴通讯股份有限公司 VoiceXML business integrated development system and realizing method thereof
CN101980546A (en) * 2010-10-21 2011-02-23 中兴通讯股份有限公司 Intelligent network platform, service execution method and method for analyzing service abnormality

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7215755B2 (en) * 2003-06-30 2007-05-08 At&T Knowledge Ventures, L.P. Integrated disparate intelligent peripherals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700781A (en) * 2005-06-30 2005-11-23 西安大唐电信有限公司 Method for controlling multiple call sections service of intelligent network
CN101621773A (en) * 2008-07-02 2010-01-06 中兴通讯股份有限公司 Networking system realizing intensified IP service and method therefore
CN101547263A (en) * 2009-05-13 2009-09-30 烽火通信科技股份有限公司 Telecom value-added service server based on XML script and realizing method thereof
CN101631262A (en) * 2009-08-25 2010-01-20 中兴通讯股份有限公司 VoiceXML business integrated development system and realizing method thereof
CN101980546A (en) * 2010-10-21 2011-02-23 中兴通讯股份有限公司 Intelligent network platform, service execution method and method for analyzing service abnormality

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740836A (en) * 2018-11-16 2019-05-10 国网山东省电力公司 A kind of retrospective line loss of whole-network anomaly and Equilibrium Analysis Method and device
CN109740836B (en) * 2018-11-16 2023-04-07 国网山东省电力公司 Line loss and balance analysis method and device capable of tracing all-network abnormity
CN112800741A (en) * 2021-01-29 2021-05-14 远光软件股份有限公司 Task execution method, electronic device and storage medium

Also Published As

Publication number Publication date
CN101980546A (en) 2011-02-23
CN101980546B (en) 2014-03-19

Similar Documents

Publication Publication Date Title
CN108885632B (en) Efficient state machine for real-time data stream programming
WO2012051844A1 (en) Intelligent network platform, method for executing services and method for analyzing service abnormity
EP1178404B1 (en) Method and system for compiling multiple languages
CN110704063B (en) Method and device for compiling and executing intelligent contract
CN110704064B (en) Method and device for compiling and executing intelligent contract
CN111736954B (en) Multi-intelligent contract virtual machine implementation method, multi-intelligent contract virtual machine and system
US20090328016A1 (en) Generalized expression trees
US8495593B2 (en) Method and system for state machine translation
CN103116513B (en) A kind of heterogeneous multi-nucleus processor compiler
CN110149800A (en) It is a kind of for handling the device of abstract syntax tree associated with the source code of source program
CN101408849A (en) Method and system for compiling and executing TTCN-3 language
CN110688122A (en) Method and device for compiling and executing intelligent contract
CN115639980A (en) Draggable front-end logic arrangement method and device for low-code platform
CN114217941A (en) Tensorflow framework core calculation acceleration engine for domestic heterogeneous many-core processor
Kolovos et al. The epsilon pattern language
US20220172044A1 (en) Method, electronic device, and computer program product for deploying machine learning model
de Carvalho Junior et al. Contextual abstraction in a type system for component-based high performance computing platforms
CN113434147A (en) ProtoBuf protocol-based message analysis method and device
Mateescu et al. Translating Pi-calculus into LOTOS NT
US20070300212A1 (en) Modifying a File Written in a Formal Language
WO2011160359A1 (en) Method and device of script-driven software construction
CN115174711A (en) Data processing method, device and medium based on full-stack programmable network
US20210389935A1 (en) Compiler-operation in a computing system and method thereof
US11429358B2 (en) Representing asynchronous state machine in intermediate code
CN112445607B (en) Method and device for executing method function by application program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11833750

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11833750

Country of ref document: EP

Kind code of ref document: A1