Intelligent operation and maintenance method and device for program-controlled switch and storage medium

By combining a large language model and the MCP toolset, PBX operation and maintenance tasks are processed automatically, solving the problem of low efficiency in traditional PBX operation and maintenance, and achieving efficient and reliable intelligent operation and maintenance.

CN123074902APending Publication Date: 2026-11-10SHENZHEN DINSTAR TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611586537.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-14
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

Traditional PBX operations and maintenance rely on professional technicians, which has a high learning cost, large interface differences, low operation and maintenance efficiency, and lacks cross-module linkage and automatic verification mechanisms, resulting in low operation and maintenance efficiency and easy errors.

Method used

The system identifies parameters of operation and maintenance requests using a large language model, generates structured tasks, maps and orchestrates tools based on the MCP toolset, enables the automatic execution of MCP call sequences, and generates result reports.

Benefits of technology

It improves the efficiency of PBX operation and maintenance, reduces labor costs and operation and maintenance threshold, supports multi-terminal access, realizes automated operation and maintenance and result verification, and enhances the reliability and flexibility of operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123074902A_ABST
    Figure CN123074902A_ABST
Patent Text Reader

Abstract

The application discloses a kind of program-controlled switch intelligent operation and maintenance method, device and storage medium, it is related to program-controlled switch technical field, including: when receiving operation and maintenance request, the operation and maintenance parameter corresponding to the operation and maintenance request is obtained based on large language model, and the structured task corresponding to the operation and maintenance parameter is generated;Based on structured task, tool mapping is carried out in preset MCP tool set, target MCP tool is obtained, and target MCP tool is arranged, and MCP call sequence is obtained;MCP call sequence is executed to obtain execution result;Result report is generated based on execution result, and result report is sent to the user terminal corresponding to operation and maintenance request.The application improves the operation and maintenance efficiency of PBX, reduces the labor cost and operation and maintenance threshold in operation and maintenance process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of program-controlled switch technology, and in particular to a method, device and storage medium for intelligent operation and maintenance of program-controlled switches. Background Technology

[0002] PBX (Private Branch Exchange) is a core component of enterprise communication infrastructure. PBX carries critical services such as extension registration and management, internal and external call routing, conference bridging, call queuing, and call recording.

[0003] Currently, traditional PBX operations and maintenance rely on specialized technical personnel to perform operations through management consoles or command-line interfaces. These personnel must be familiar with the interface operation logic and parameter definitions of specific PBX vendors, resulting in high learning costs. Significant differences exist between different vendors' interfaces, making it difficult to quickly replicate operational capabilities after personnel turnover. Complex operational tasks such as batch modification of extension transfer rules and cross-queue statistical analysis require multiple manual steps, each relying on manual judgment, which is time-consuming, error-prone, and leads to low PBX operational efficiency.

[0004] Therefore, improving the operational efficiency of PBX is an urgent problem that needs to be solved.

[0005] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0006] The main purpose of this application is to provide a method, device and storage medium for intelligent operation and maintenance of PBX, which aims to solve the technical problem of how to improve the operation and maintenance efficiency of PBX.

[0007] To achieve the above objectives, this application proposes an intelligent operation and maintenance method for a program-controlled exchange, the method comprising: When an operation and maintenance request is received, the operation and maintenance parameters corresponding to the operation and maintenance request are obtained based on the large language model, and a structured task corresponding to the operation and maintenance parameters is generated. The operation and maintenance parameters include task type, target object and operation parameters. Based on structured tasks, tool mapping is performed in a pre-defined MCP toolset to obtain target MCP tools, and the target MCP tools are orchestrated to obtain an MCP call sequence; Execute the MCP call sequence to obtain the execution result; A result report is generated based on the execution results, and the result report is sent to the user terminal corresponding to the operation and maintenance request.

[0008] In one embodiment, the step of mapping tools in a preset MCP toolset based on structured tasks to obtain target MCP tools, and orchestrating the target MCP tools to obtain an MCP call sequence includes: Determine if a conditional expression exists for the structured task; If a structured task has a conditional expression, then a tool query is performed in the preset MCP toolset based on the structured task to obtain the query results; Determine whether the query result satisfies the judgment condition of the conditional expression; If the query result satisfies the judgment condition of the conditional expression, then the MCP call sequence is obtained based on the target MCP tool in the query result.

[0009] In one embodiment, after the step of determining whether a conditional expression exists for a structured task, the intelligent operation and maintenance method for a program-controlled exchange further includes: If the structured task does not have a conditional expression, then the target MCP tool is obtained by mapping the tool based on the structured task in the preset MCP toolset. The target MCP tool is orchestrated to obtain the MCP call sequence.

[0010] In one embodiment, the step of generating a result report based on the execution result includes: Determine whether the task type in the operation and maintenance parameters is a configuration type, and determine whether there is a linkage operation between the MCP tools of the target MCP tool; If the task type is non-configuration type and there is no linkage operation between the target MCP tools, a result report will be generated based on the execution result.

[0011] In one embodiment, after determining whether the task type in the operation and maintenance parameters is a configuration type, and determining whether there is a linkage operation between the MCP tools of the target MCP tool, the intelligent operation and maintenance method for the PBX further includes: If the task type is a configuration type, or if the target MCP tool has a linkage operation between MCP tools, then the execution result is verified to obtain the verification result; If the verification result is successful, a result report is generated based on the execution result; If the verification operation fails, an alarm notification will be sent.

[0012] In one embodiment, the step of performing a verification operation on the execution result to obtain a verification result includes: Compare the latest status of the target object with the expected results, officially apply the configuration changes that are about to take effect, and check for any error codes or abnormal information returned by the PBX. If the latest status of the target object matches the expected result, the configuration item to be changed is successful, and there are no error codes or exception information returned by PBX, then the verification result is determined to be successful. If the latest status of the target object does not match the expected result, the configuration item change to be implemented fails, or there is an error code or exception information returned by the PBX, then the verification result is determined to be verification failure.

[0013] In one embodiment, the step of obtaining the operation and maintenance parameters corresponding to the operation and maintenance request based on a large language model and generating a structured task corresponding to the operation and maintenance parameters when receiving an operation and maintenance request includes: When an operation and maintenance request is received, the natural language data corresponding to the operation and maintenance request is input into the large language model for prediction to obtain the operation and maintenance parameters corresponding to the operation and maintenance request. If there are conditional expressions and dependencies corresponding to the operation and maintenance request, the structured task is generated based on the task type, target object, operation parameters, conditional expressions, and dependencies. If no conditional expression or dependency exists for the maintenance request, the structured task is generated based on the task type, target object, and operation parameters.

[0014] In one embodiment, the call sequence of the MCP call sequence includes single-step call, multi-step serial call, multi-step parallel call, branch call with conditional judgment, closed-loop call with query before execution, and three-stage call with query, execution and verification. The operation and maintenance parameters include task type, target object, and operation parameters. The task types include query type, configuration type, control type, and analysis type. The target objects include extension number, queue number, conference number, call UUID, and contact identifier.

[0015] In addition, to achieve the above objectives, this application also proposes an intelligent operation and maintenance device for a program-controlled exchange, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the intelligent operation and maintenance method for a program-controlled exchange as described above.

[0016] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the intelligent operation and maintenance method for a program-controlled exchange as described above.

[0017] One or more technical solutions proposed in this application have at least the following technical effects: Upon receiving an operation and maintenance (O&M) request, the system retrieves the corresponding O&M parameters based on a large language model and generates a structured task corresponding to these parameters. The O&M parameters include task type, target object, and operation parameters. Then, based on the structured task, tool mapping is performed in a pre-defined MCP toolset to obtain the target MCP tool. This target MCP tool is then orchestrated to obtain an MCP call sequence. The MCP call sequence is then executed to obtain the execution result. Finally, a result report is generated based on the execution result and sent to the user terminal corresponding to the O&M request. By identifying the O&M parameters of the O&M request through a large language model, querying the corresponding target MCP tool in the pre-defined MCP toolset based on these parameters, and orchestrating the MCP call sequence, the system achieves automated O&M of the PBX, improving PBX O&M efficiency and reducing the manual costs and barriers to O&M. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating an embodiment of the intelligent operation and maintenance method for a program-controlled exchange provided in this application. Figure 2 This is a schematic diagram of the hardware operating environment involved in the intelligent operation and maintenance method of the program-controlled switch in this application embodiment.

[0021] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0022] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0023] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0024] The main solution of this application embodiment is as follows: When an operation and maintenance request is received, the operation and maintenance parameters corresponding to the operation and maintenance request are obtained based on a large language model, and a structured task corresponding to the operation and maintenance parameters is generated. The operation and maintenance parameters include task type, target object, and operation parameters. Based on the structured task, tool mapping is performed in a preset MCP toolset to obtain a target MCP tool, and the target MCP tool is orchestrated to obtain an MCP call sequence. The MCP call sequence is executed to obtain the execution result. A result report is generated based on the execution result and sent to the user terminal corresponding to the operation and maintenance request.

[0025] In this embodiment, for ease of description, the following description uses the intelligent operation and maintenance device of the program-controlled exchange as the execution subject.

[0026] PBX (Private Branch Exchange) is a core component of enterprise communication infrastructure. PBX carries critical services such as extension registration and management, internal and external call routing, conference bridging, call queuing, and call recording.

[0027] Currently, traditional PBX operations and maintenance rely on specialized technical personnel to perform operations through management consoles or command-line interfaces. These personnel must be familiar with the interface operation logic and parameter definitions of specific PBX vendors, resulting in high learning costs. Significant differences exist between different vendors' interfaces, making it difficult to quickly replicate operational capabilities after personnel turnover. Complex operational tasks such as batch modification of extension transfer rules and cross-queue statistical analysis require multiple manual steps, each relying on manual judgment, which is time-consuming, error-prone, and leads to low PBX operational efficiency.

[0028] Meanwhile, the interface lacks cross-module linkage and automatic verification mechanisms. After configuration changes are completed, manual login to the interface is required to verify whether the changes have taken effect, making it impossible to achieve closed-loop management of "configuration-verification-rollback". Operation and maintenance operations are usually limited to the desktop web management interface and cannot be flexibly used in mobile devices, enterprise instant messaging tools, or voice input scenarios.

[0029] Therefore, improving the operational efficiency of PBX is an urgent problem that needs to be solved.

[0030] This application provides a solution that identifies the operation and maintenance parameters of the operation and maintenance request through a large language model, queries the corresponding target MCP tool in the preset MCP toolset based on the operation and maintenance parameters, and arranges them to obtain the MCP call sequence. By executing the MCP call sequence, the automatic operation and maintenance of the PBX is realized, which improves the operation and maintenance efficiency of the PBX, reduces the labor cost of the operation and maintenance process, and lowers the operation and maintenance threshold.

[0031] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device capable of performing the above functions, such as a program-controlled exchange intelligent operation and maintenance device. The following description uses a program-controlled exchange intelligent operation and maintenance device as an example to illustrate this embodiment and the subsequent embodiments.

[0032] Based on this, the embodiments of this application provide an intelligent operation and maintenance method for a program-controlled exchange, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the intelligent operation and maintenance method for program-controlled switches in this application.

[0033] In this embodiment, the intelligent operation and maintenance method for the program-controlled exchange includes steps S110~S140: Step S110: When an operation and maintenance request is received, the operation and maintenance parameters corresponding to the operation and maintenance request are obtained based on the large language model, and a structured task corresponding to the operation and maintenance parameters is generated. The operation and maintenance parameters include task type, target object and operation parameters. Step S120: Based on the structured task, perform tool mapping in the preset MCP toolset to obtain the target MCP tool, and arrange the target MCP tool to obtain the MCP call sequence; Step S130: Execute the MCP call sequence to obtain the execution result; Step S140: Generate a result report based on the execution result and send the result report to the user terminal corresponding to the operation and maintenance request.

[0034] In this embodiment, users can input maintenance requests using various access methods such as mobile phones, tablets, personal computers, enterprise instant messaging terminals, web chat portals, and voice-to-text input portals, i.e., inputting natural language maintenance requests.

[0035] It should be noted that all the pre-built PBX's operational capabilities are encapsulated into standardized tools conforming to the MCP (Model Context Protocol) specification, namely MCP tools. For example, MCP tools may include extension management tools, call control tools, conference management tools, call queue management tools, ringing group management tools, SIP (Session Initiation Protocol) profile query tools, address book management tools (public / private / external), blacklist management tools, number rule management tools, call detail record query tools, voicemail management tools, alarm clock management tools, and configuration change detection / application / rollback tools.

[0036] In this embodiment, when an operation and maintenance request is received, the operation and maintenance parameters corresponding to the operation and maintenance request are obtained based on the large language model, and a structured task corresponding to the operation and maintenance parameters is generated. That is, the operation and maintenance request is semantically understood through LLM (Large Language Model) or rule engine to obtain the operation and maintenance parameters of the operation and maintenance request. The operation and maintenance parameters include at least task type, target object and operation parameters, etc., and a structured task representation containing operation and maintenance intent, target object identifier, operation parameters and execution conditions is generated based on the operation and maintenance parameters.

[0037] In one feasible implementation, step S110 may include steps S111 to S113: Step S111: When an operation and maintenance request is received, the natural language data corresponding to the operation and maintenance request is input into the large language model for prediction to obtain the operation and maintenance parameters corresponding to the operation and maintenance request. Step S112: If there is a conditional expression and dependency relationship corresponding to the operation and maintenance request, then the structured task is generated based on the task type, target object, operation parameters, conditional expression and dependency relationship. Step S113: If there is no conditional expression or dependency relationship corresponding to the operation and maintenance request, then the structured task is generated based on the task type, target object and operation parameters.

[0038] In one feasible implementation, the operation and maintenance parameters include task type, target object, and operation parameters. The task type includes query type, configuration type, control type, and analysis type. The target objects include extension number, queue number, conference number, call UUID, and contact identifier.

[0039] In this embodiment, upon receiving an operation and maintenance request, the natural language data corresponding to the request is input into a large language model for prediction to obtain the operation and maintenance parameters corresponding to the request. These parameters include task type, target object, and operation parameters. Task types include query, configuration, control, and analysis types, etc.; target objects include extension numbers, queue numbers, meeting numbers, call UUIDs, and contact identifiers, etc. Operation parameters include required parameters, optional parameters, and default values.

[0040] Upon obtaining the operation and maintenance parameters, it is determined whether the operation and maintenance request has conditional judgments and dependencies. Dependencies can be sequential dependencies or constraint relationships. If conditional expressions and dependencies exist for the operation and maintenance request, the structured task is generated based on the task type, target object, operation parameters, conditional expressions, and dependencies. If no conditional expressions and dependencies exist for the operation and maintenance request, the structured task is generated based on the task type, target object, and operation parameters.

[0041] It should be noted that the fields of a structured task may include: task_type (task type), target (target object), params (parameter list of operation parameters), conditions (execution conditions), order (serial / parallel flag), etc., and the structured task can be generated according to a preset format.

[0042] In this embodiment, after obtaining the structured task, tool mapping is performed on the structured task in a preset MCP tool set to obtain the target MCP tool. Specifically, the structured task can be matched with each MCP tool in the preset MCP tool set to obtain the target MCP tool that matches the structured task. The target MCP tool may include one or more MCP tools. Then, the target MCP tool is arranged to obtain the MCP call sequence.

[0043] In one feasible implementation, the MCP call sequence can take the form of single-step call, multi-step serial call, multi-step parallel call, branch call with conditional judgment, closed-loop call with query before execution, and three-stage call with query, execution and verification.

[0044] It should be noted that single-step invocation refers to one MCP tool invocation corresponding to one natural language request; multi-step serial invocation refers to multiple tool invocations executed sequentially, with each subsequent step depending on the output of the previous step; multi-step parallel invocation refers to multiple independent tool invocations initiated simultaneously, with all results aggregated and returned uniformly; branch invocation with conditional judgment refers to determining the subsequent invocation path based on intermediate query results; closed-loop invocation with query before execution refers to querying the current status before executing configuration or control operations, and executing only after the conditions are met; and three-stage invocation of query, execution, and verification refers to querying or verifying again after the operation is executed to confirm that the operation has taken effect.

[0045] In one feasible implementation, step S120 may include steps S121 to S124: Step S121: Determine whether a conditional expression exists for the structured task; Step S122: If the structured task has a conditional expression, then perform a tool query in the preset MCP toolset based on the structured task to obtain the query result; Step S123: Determine whether the query result satisfies the judgment condition of the conditional expression; Step S124: If the query result satisfies the judgment condition of the conditional expression, then based on the target MCP tool in the query result, obtain the MCP call sequence.

[0046] In one feasible implementation, after step S121, the intelligent operation and maintenance method for the program-controlled exchange may include steps S125-S126: Step S125: If the structured task does not have a conditional expression, then perform tool mapping based on the structured task in the preset MCP toolset to obtain the target MCP tool. Step S126: Arrange the target MCP tool to obtain the MCP call sequence.

[0047] In this embodiment, when acquiring the target MCP tool, it is determined whether the structured task contains a conditional expression, that is, whether the structured task includes conditional judgment. If the structured task contains a conditional expression, a tool query is performed based on the structured task in the preset MCP tool set to obtain the query result. When conditional judgment is included, a first query step is generated as the first step to call and execute the query tool to obtain the query result.

[0048] After obtaining the query results, it is determined whether the query results meet the judgment conditions of the conditional expression to evaluate whether the query results satisfy the conditions. If the query results meet the judgment conditions of the conditional expression, the MCP call sequence is obtained based on the target MCP tool in the query results.

[0049] It should be noted that the current state of the target object can be obtained first by querying an MCP tool, and then the current state can be judged based on the query results to determine whether the execution conditions are met. Subsequent configuration or control operations will only be executed if the conditions are met.

[0050] It should be noted that if the query result does not meet the judgment condition of the conditional expression, the process will stop and the user will be notified, for example, by sending a notification message to the user terminal corresponding to the operation and maintenance request.

[0051] It should be noted that if the structured task does not have a conditional expression, the tool mapping is directly performed on the structured task in the preset MCP toolset to obtain the target MCP tool, and the target MCP tool is arranged to obtain the MCP call sequence.

[0052] In this embodiment, after obtaining the MCP call sequence, the MCP call sequence is executed to obtain the execution result. The execution result includes fields such as object_type, object_id, key_attrs, op_status, fail_reason, risk_hint, next_suggestion, and require_confirm, so as to facilitate downstream automatic processing and manual review.

[0053] In this embodiment, when the execution result is obtained, a result report is generated based on the execution result, and the result report is sent to the user terminal corresponding to the operation and maintenance request.

[0054] In one feasible implementation, step S140 may include steps A110~A120: Step A110: Determine whether the task type in the operation and maintenance parameters is a configuration type, and determine whether there is a linkage operation between the MCP tools of the target MCP tool; Step A120: If the task type is non-configuration type and there is no linkage operation between the MCP tools of the target MCP tool, then generate a result report based on the execution result.

[0055] In one feasible implementation, after step A110, the intelligent operation and maintenance method for the PBX may include steps A130 to A150: Step A130: If the task type is a configuration type, or if the target MCP tool has a linkage operation between MCP tools, then the execution result is verified to obtain the verification result. Step A140: If the verification result is successful, a result report is generated based on the execution result; In step A150, if the verification operation fails, an alarm notification is sent.

[0056] In this embodiment, when obtaining the execution result, it is determined whether the task type in the operation and maintenance parameters is a configuration type, and whether there is a linkage operation between the MCP tools of the target MCP tool. When the target MCP tool includes multiple MCP tools, it is determined whether there is a linkage operation between each MCP tool.

[0057] If the task type is non-configuration type and there is no linkage operation between the target MCP tools, a result report will be generated based on the execution result.

[0058] If the task type is a configuration type, or if the target MCP tool has inter-MCP tool linkage operations, then the execution result is verified to obtain the verification result.

[0059] In one feasible implementation, step A130 may include steps A131 to A133: Step A131: Compare the latest status of the target object with the expected result, officially apply the configuration changes to be effective, and check whether there are any error codes or abnormal information returned by PBX. Step A132: If the latest status of the target object matches the expected result, the configuration item to be changed is successful, and there are no error codes or exception information returned by PBX, then the verification result is determined to be successful. Step A133: If the latest status of the target object does not match the expected result, the configuration item change to be effective fails, or there is an error code or exception information returned by the PBX, then the verification result is determined to be verification failure.

[0060] In this embodiment, the latest status of the target object is compared with the expected result, the configuration item changes to be effective are officially implemented, and any error codes or abnormal information returned by the PBX are detected. Specifically, the query tool is called again to obtain the latest status of the target object and compare it with the expected result; the configuration change detection tool is called to determine whether there are any configuration items to be effective; the configuration application operation is triggered to make the configuration changes officially effective (such as calling pbx_apply_changes); and the error codes or abnormal information returned by the PBX are detected.

[0061] If the latest status of the target object matches the expected result, the configuration item to be changed is successful, and there are no error codes or exception information returned by PBX, then the verification result is determined to be successful; if the verification result is successful, then a result report is generated based on the execution result.

[0062] If the latest status of the target object does not match the expected result, the configuration item change to be effective fails, or there is an error code or exception information returned by the PBX, the verification result is determined to be a verification failure. If the verification operation fails, an alarm notification is sent.

[0063] Typical scenarios in this embodiment include: querying the registration status of the target extension; if it is offline, automatically configuring unconditional call forwarding target; if it is online, skipping the forwarding configuration and notifying the user; querying the target call activity status; if the call exists, automatically performing at least one of the following operations: hold, transfer, listen, park, or hang up; querying the agent sign-in status in the call queue; if the target agent has not signed in, automatically triggering the sign-in operation.

[0064] The above embodiments will be described below using several typical scenarios of this application as examples.

[0065] Example 1: A typical scenario for conditional extension call forwarding configuration, where the user inputs an operation and maintenance request such as "Forward incoming calls to 8002 when 8001 is not available".

[0066] The operation and maintenance request is processed based on the large language model. The identified task type is configuration type, the condition expression is extension 8001 is offline, the target object is extension 8001, the operation is to enable unconditional call forwarding, and the parameter is target extension 8002. The target MCP tool generates an MCP call sequence, which includes: querying 8001 registration status → conditional judgment: whether online → configuring call forwarding → detecting changes to be effective → applying configuration → querying and confirming again. The MCP call sequence is executed as follows: pbx_extension_status(["8001"]) is called to get the registration status → it is determined that the registration is not completed (offline) → pbx_extension_edit(extension="8001", forward_always_status="on", forward_always_dst="8002") is called → pbx_get_changes() is called to check for changes to be implemented → pbx_apply_changes() is called to apply the configuration. To verify the execution result, call pbx_extension_list(extension="8001") again to confirm that forward_always_dst="8002" has been written. A result report is generated based on the execution results. The result report may include information such as "Unconditional call forwarding has been enabled for extension 8001, with the target being 8002, and the configuration has taken effect."

[0067] Example 2: A typical scenario for initiating an instant multi-party conference. The maintenance request entered by the user can be "Help me create an instant conference that includes 8001, 8002, and 8003".

[0068] The operation and maintenance request is processed based on a large language model. The identified task type is control type, the target object is instant meeting, and the member list is 8001, 8002, and 8003. Generate an MCP call sequence based on the target MCP tool. The MCP call sequence includes: initiating an instant conference (single-step call); and executing the MCP call sequence, calling pbx_conference_instant(members=["8001","8002","8003"], caller="8001"); The execution result is verified by calling pbx_conference_status() to confirm that the meeting has been established and all members have received invitations. A results report is generated based on the execution results. The results report may include information such as: the instant meeting has been initiated, invitations have been received by 8001, 8002, and 8003, and X members are currently online in the meeting.

[0069] Example 3: A typical scenario for call detail record (CDR) statistics and analysis. The maintenance request entered by the user can be "Please check today's outbound call detail records and count the number of outbound calls for each extension".

[0070] The operation and maintenance requests are processed based on a large language model. The identified task type is analysis type, the target object is today's call detail records, and the filtering condition is direction: outbound call. The target MCP tool generates an MCP call sequence, which includes: paginated call detail record (serial call, page-by-page summary). Execute the MCP call sequence, calling pbx_cdr_query(direction="outbound", start_epoch_time=0:00 today's timestamp, end_epoch_time=current timestamp); Group the outbound call count by the caller field and identify the extensions with the most and fewest outbound calls; A results report is generated based on the execution results. The results report outputs the ranking of outbound call counts for each extension in tabular form, along with maintenance suggestions (such as alerts for extensions with abnormal outbound call volume).

[0071] Example 4: A typical scenario for batch extension status query and statistics. The operation and maintenance request entered by the user can be "Statistics on the online status of all extensions, tell me which extensions are offline".

[0072] The operation and maintenance requests are processed based on a large language model. The identified task type is analysis, the target object is all partitions, and the operation parameters are status query + classification statistics. The target MCP tool generates an MCP call sequence, which includes: obtaining the extension list → parallel query of all extension statuses → statistical analysis (multi-step serial + internal parallel). Execute the MCP call sequence, call pbx_extension_list() to get all extension numbers → call pbx_extension_status([ext1, ext2, ..., extN]) in parallel; Statistics show that extensions are categorized into three states: online, offline, and in a call, with output lists and quantities for each category. The system generates a results report based on the execution results. For example, it outputs a statistical table (X online extensions, Y offline extensions, Z extensions in call) and a detailed list of offline extensions, and suggests that maintenance personnel pay attention to extensions that have been offline for a long time.

[0073] This embodiment provides an intelligent operation and maintenance method for PBXs. Upon receiving an operation and maintenance request, the method obtains the corresponding operation and maintenance parameters based on a large language model and generates a structured task corresponding to the operation and maintenance parameters. The operation and maintenance parameters include task type, target object, and operation parameters. Then, based on the structured task, tool mapping is performed in a preset MCP toolset to obtain the target MCP tool. The target MCP tool is then orchestrated to obtain an MCP call sequence. The MCP call sequence is then executed to obtain the execution result. Finally, a result report is generated based on the execution result and sent to the user terminal corresponding to the operation and maintenance request. By identifying the operation and maintenance parameters of the operation and maintenance request through a large language model, querying the corresponding target MCP tool in the preset MCP toolset based on the operation and maintenance parameters, and orchestrating the MCP call sequence, the method achieves automatic operation and maintenance of the PBX, improving the operation and maintenance efficiency of the PBX and reducing the manual cost and threshold of the operation and maintenance process.

[0074] In this embodiment, non-technical personnel can complete complex PBX operation and maintenance tasks through natural language, without needing to remember the operation interface or parameter definitions, thus lowering the operation and maintenance threshold. The parallel invocation and automatic orchestration mechanism significantly shortens the execution time of multi-step operation and maintenance operations, reduces manual intervention, and improves response efficiency. The three-stage process of query-execution-verification and the configuration rollback mechanism ensure that each operation is verifiable and recoverable, enhancing reliability. It supports access from multiple terminals such as mobile phones, tablets, enterprise IM, web chat, and voice-to-text, without being limited by desktop management interfaces. It can be designed based on the MCP standard interface, can be adapted to different manufacturers' PBXs at low cost, and has good portability, scalability, and standardized extensibility.

[0075] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the intelligent operation and maintenance method of the program-controlled switch in this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0076] This application provides an intelligent operation and maintenance device for a program-controlled exchange. The intelligent operation and maintenance device for a program-controlled exchange includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the intelligent operation and maintenance method for a program-controlled exchange in the above embodiment 1.

[0077] The following is for reference. Figure 2This document illustrates a structural schematic diagram of a program-controlled exchange intelligent operation and maintenance device suitable for implementing embodiments of this application. The program-controlled exchange intelligent operation and maintenance device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), vehicle terminals (e.g., vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 2 The intelligent operation and maintenance device for the program-controlled switch shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0078] like Figure 2 As shown, the intelligent operation and maintenance device for a program-controlled exchange may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the intelligent operation and maintenance device for the program-controlled exchange. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the intelligent operation and maintenance device of the PBX to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows intelligent operation and maintenance devices of PBXs with various systems, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0079] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0080] The intelligent operation and maintenance device for PBXs provided in this application, employing the intelligent operation and maintenance method for PBXs described in the above embodiments, can solve the technical problem of how to improve the operation and maintenance efficiency of PBXs. Compared with the prior art, the beneficial effects of the intelligent operation and maintenance device for PBXs provided in this application are the same as those of the intelligent operation and maintenance method for PBXs provided in the above embodiments, and other technical features in this intelligent operation and maintenance device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0081] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0082] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0083] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the intelligent operation and maintenance method for a program-controlled exchange in the above embodiments.

[0084] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0085] The aforementioned computer-readable storage medium may be included in the intelligent operation and maintenance device of the program-controlled exchange; or it may exist independently and not be assembled into the intelligent operation and maintenance device of the program-controlled exchange.

[0086] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the intelligent operation and maintenance device of the program-controlled exchange, the intelligent operation and maintenance device of the program-controlled exchange: upon receiving an operation and maintenance request, obtains the operation and maintenance parameters corresponding to the operation and maintenance request based on a large language model, and generates a structured task corresponding to the operation and maintenance parameters, wherein the operation and maintenance parameters include task type, target object, and operation parameters; performs tool mapping in a preset MCP toolset based on the structured task to obtain a target MCP tool, and orchestrates the target MCP tool to obtain an MCP call sequence; executes the MCP call sequence to obtain an execution result; generates a result report based on the execution result, and sends the result report to the user terminal corresponding to the operation and maintenance request.

[0087] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0088] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0089] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0090] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., computer programs) for executing the above-described intelligent operation and maintenance method for PBXs, thereby solving the technical problem of how to improve the operation and maintenance efficiency of PBXs. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the intelligent operation and maintenance method for PBXs provided in the above embodiments, and will not be repeated here.

[0091] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described intelligent operation and maintenance method for a program-controlled exchange.

[0092] The computer program product provided in this application can solve the technical problem of how to improve the operation and maintenance efficiency of PBX. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the intelligent operation and maintenance method for PBX provided in the above embodiments, and will not be repeated here.

[0093] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A method for intelligent operation and maintenance of a program-controlled exchange, characterized in that, The intelligent operation and maintenance method for the program-controlled exchange includes: When an operation and maintenance request is received, the operation and maintenance parameters corresponding to the operation and maintenance request are obtained based on the large language model, and a structured task corresponding to the operation and maintenance parameters is generated. The operation and maintenance parameters include task type, target object and operation parameters. Based on structured tasks, tool mapping is performed in a pre-defined MCP toolset to obtain target MCP tools, and the target MCP tools are orchestrated to obtain an MCP call sequence; Execute the MCP call sequence to obtain the execution result; A result report is generated based on the execution results, and the result report is sent to the user terminal corresponding to the operation and maintenance request. The steps of mapping tools in a preset MCP toolset based on structured tasks to obtain target MCP tools, and orchestrating the target MCP tools to obtain an MCP call sequence include: Determine if a conditional expression exists for the structured task; If a structured task has a conditional expression, then a tool query is performed in the preset MCP toolset based on the structured task to obtain the query results; Determine whether the query result satisfies the judgment condition of the conditional expression; If the query result satisfies the judgment condition of the conditional expression, then the MCP call sequence is obtained based on the target MCP tool in the query result.

2. The intelligent operation and maintenance method for a program-controlled exchange as described in claim 1, characterized in that, After the step of determining whether a conditional expression exists for a structured task, the intelligent operation and maintenance method for a program-controlled exchange further includes: If the structured task does not have a conditional expression, then the target MCP tool is obtained by mapping the tool based on the structured task in the preset MCP toolset. The target MCP tool is orchestrated to obtain the MCP call sequence.

3. The intelligent operation and maintenance method for a program-controlled exchange as described in claim 1, characterized in that, The step of generating a result report based on the execution result includes: Determine whether the task type in the operation and maintenance parameters is a configuration type, and determine whether there is a linkage operation between the MCP tools of the target MCP tool; If the task type is non-configuration type and there is no linkage operation between the target MCP tools, a result report will be generated based on the execution result.

4. The intelligent operation and maintenance method for a program-controlled exchange as described in claim 3, characterized in that, After determining whether the task type in the operation and maintenance parameters is a configuration type, and determining whether there is a linkage operation between the MCP tools of the target MCP tool, the intelligent operation and maintenance method for the PBX further includes: If the task type is a configuration type, or if the target MCP tool has a linkage operation between MCP tools, then the execution result is verified to obtain the verification result; If the verification result is successful, a result report is generated based on the execution result; If the verification operation fails, an alarm notification will be sent.

5. The intelligent operation and maintenance method for a program-controlled exchange as described in claim 4, characterized in that, The step of verifying the execution result to obtain the verification result includes: Compare the latest status of the target object with the expected result, officially apply the configuration changes that are about to take effect, and check whether there are any error codes or abnormal information returned by PBX. If the latest status of the target object matches the expected result, the configuration item to be changed is successful, and there are no error codes or exception information returned by PBX, then the verification result is determined to be successful. If the latest status of the target object does not match the expected result, the configuration item change to be implemented fails, or there is an error code or exception information returned by the PBX, then the verification result is determined to be verification failure.

6. The intelligent operation and maintenance method for a program-controlled exchange as described in claim 1, characterized in that, The steps of obtaining the operation and maintenance parameters corresponding to the operation and maintenance request based on the large language model and generating the structured task corresponding to the operation and maintenance parameters when receiving an operation and maintenance request include: When an operation and maintenance request is received, the natural language data corresponding to the operation and maintenance request is input into the large language model for prediction to obtain the operation and maintenance parameters corresponding to the operation and maintenance request. If there are conditional expressions and dependencies corresponding to the operation and maintenance request, the structured task is generated based on the task type, target object, operation parameters, conditional expressions, and dependencies. If no conditional expression or dependency exists for the maintenance request, the structured task is generated based on the task type, target object, and operation parameters.

7. The intelligent operation and maintenance method for a program-controlled exchange as described in any one of claims 1 to 6, characterized in that, The MCP call sequence can take the form of single-step call, multi-step serial call, multi-step parallel call, branch call with conditional judgment, closed-loop call with query before execution, and three-stage call with query, execution and verification. The operation and maintenance parameters include task type, target object, and operation parameters. The task types include query type, configuration type, control type, and analysis type. The target objects include extension number, queue number, conference number, call UUID, and contact identifier.

8. An intelligent operation and maintenance device for a program-controlled exchange, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the intelligent operation and maintenance method for a program-controlled exchange as described in any one of claims 1 to 7.

9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the intelligent operation and maintenance method for a program-controlled exchange as described in any one of claims 1 to 7.