[0021] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0022] figure 1 Shows a flowchart of a method for detecting a voice relay path in an embodiment of the present invention, including:
[0023] Step S101: Perform a call test to the designated relay device through the TCTDI instruction;
[0024] Specifically, the call test is performed by regularly sending a dial test command to the relay device. The dial test command includes the information of the relay device designated by the dial test, the dial test time, the dial test number, and so on.
[0025] Step S102: Obtain relay data on the relay device according to the call test;
[0026] The relay data includes voice information, circuit DIP information, SNT information, and so on.
[0027] Step S103: Analyze the voice quality on the relay device according to the relay data.
[0028] corresponding, figure 2 Shows a schematic structural diagram of detecting a voice relay path in an embodiment of the present invention, including:
[0029] The test unit 201 is configured to perform a call test to a designated relay device through a TCTDI instruction; the test unit 201 performs a call test by periodically sending a dial test command to the relay device. The dial test command includes the specified relay device information, dial test time, dial test number and so on.
[0030] The obtaining unit 202 is configured to obtain relay data on the relay device according to the call test in the testing unit 201; the relay data includes voice information, circuit DIP information, and SNT information.
[0031] The quality analysis unit 203 is configured to analyze the voice quality on the relay device according to the relay data obtained by the obtaining unit 202.
[0032] image 3 Shows an application scenario pattern diagram in the embodiment of the present invention, which includes 5 modules such as task customization management, active dial test, quality evaluation, relay data collection, and switch connection, among which:
[0033] The task customization management module is mainly responsible for the development and management of dialing tasks, including the formulation of the office direction of the dialing task, the dialing time, the allocation of dialing numbers, and the modification and deletion of the dialing task, etc., customizing the dialing task or modifying the dialing test After the task, the corresponding data will be added or modified in the database.
[0034] The relay data collection module is mainly responsible for collecting and updating relay data between offices, such as circuit DIP (DigitalPath, digital circuit) number, SNT (Switch Network Termital, switching network terminal) and other information, and save it in the database. The relay collection module is connected to the active dial test module through the database: all the equipment of the corresponding office direction in the dial test task is provided to the active dial test module. The relay collection module is connected with the switch connection module: the relay collection module realizes the connection with the switch by calling the switch connection module, and sends instructions and returns results.
[0035] The active dial test module uses TCTDI (Test Call via Test Device, Initiate, test call via test equipment to test the call, initiate) to the designated interoffice relay device to simulate call test, the calling mobile phone and called mobile phone automatically play the pre-made Audio files, at the same time through MONTI (Monitoring, Initiate, monitoring, initiation) way to enable the third mobile phone to monitor and record the device, and save the recording file. The active dial test module is connected to the task customization management module and the relay data collection module through the database: scan the dial test tasks in the database through the timer, and when it is found that there is a dial test task to be executed, it is extracted according to the office direction attribute in the dial test task Corresponding relay data. The active dial test module is connected with the switch connection module: the connection with the switch is realized by calling the switch connection module, and the command is sent and the result is returned.
[0036] The quality analysis module compares the recording file with the sample file through the PESQ algorithm and scores it. When the score reaches a predetermined standard, the circuit is normal. If the evaluated score reaches a certain deviation from the normal value, the circuit is considered to have hidden quality problems. Save the evaluation results to the database. The quality evaluation module is connected with the active dial test module: when the active dial test module has dialed and recorded a circuit, it will start the quality evaluation module to evaluate the recording file.
[0037] The switch connection module sends the instructions sent by the active dial test module and the relay acquisition module to the switch for execution, and after simple processing of the results returned by the switch, the results are returned to the active dial test module and the relay acquisition module.
[0038] It should be noted that for the local interoffice circuit, the TCTDI command cannot be directly used for forced occupation, and the active dial test of TCTDI can be realized by adding the prefix dial test. For example, the prefix planning of the various bureaus in Zhongshan is as follows:
[0039]
[0040] The specific implementation process can be as follows:
[0041] Step 1: Collect relay device data and save the data to the database (this step is only done after the adjustment of the inter-office relay circuit or periodically);
[0042] Step 2: Develop a dial test task and save it to the database;
[0043] Step 3: Turn on the timer to scan the dial test task. When a task that has expired and is not completed is found, turn off the timer and extract the corresponding task;
[0044] Step 4: Extract the relay data from the database according to the office direction attribute of the dial test task;
[0045] Step 5: Establish a call and record automatically;
[0046] Step 6: If the recording is successful, save the recording file;
[0047] Step 7: If the recording is unsuccessful (the reason may be the failure of the command operation, the problem of the mobile phone, etc.), the timer is increased by 1;
[0048] Step 8: If the counter is greater than 5, that is, if the same circuit is actively dialed and tested for more than 5 times without success, save the failed record to the database;
[0049] Step 9: If the counter is less than 5, the counter is incremented by 1, and the circuit is dialed again;
[0050] Step 10: Evaluate the quality of the recording files and save the scores to the database;
[0051] Step 11: If the dial test task is not completed, continue to dial test the next circuit;
[0052] The twelfth step: the dialing test task is completed, the dialing test result is displayed and the timer is restarted to scan; at this point, the process of the channel active dialing test system ends.
[0053] In summary, the embodiment of the present invention uses the PESQ algorithm to evaluate end-to-end voice quality, and through clever cooperation with the terminal, plus a unique office data setting and synchronization scheme, various types of channels of all product lines can be quickly and actively detected. The invention independently has an active test design scheme, and the relay quality evaluation speed can reach 30 seconds per line, which can greatly improve work efficiency and shorten the fault location time. The invention includes a pure core network version and an end-to-end version. Among them, the pure core network version can detect the availability of any type of channel between any mobile service switching center (MSC or MGW) through a directly connected terminal; the end-to-end version can perform voice evaluation on a call through a mobile terminal and simulate user perception.
[0054] What is disclosed above is only a preferred embodiment of the present invention, which of course cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
[0055] Through the description of the above implementation manners, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary hardware platform, and of course, it can also be implemented entirely by hardware. Based on this understanding, all or part of the contribution of the technical solution of the present invention to the background technology can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc. , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment or some parts of the embodiment of the present invention.