Summary of the invention
In view of this, technical problem to be solved by this invention is to provide a kind of method and system of testing playing quality of audio-frequency resource, in the network system that control and carrying are separated, a plurality of audio resources in the media resource plate are carried out on-line testing separately targetedly, determine in-problem audio resource quickly and accurately.
According to an aspect of the present invention, provide a kind of method of testing playing quality of audio-frequency resource, having comprised:
Media gateway receives the call number from the test subscriber, will comprise that the call notification message of described call number sends to Media Gateway Controller;
Described Media Gateway Controller receives and according to described call notification message, determines that described call number is an audio resource test access code, and send modification message to media gateway;
Described media gateway receives and according to described modification message, obtain and described audio resource test access code corresponding audio resource, and adopt described audio resource to play test tone to described test subscriber, make described test subscriber obtain the test result of described audio resource playing quality.
According to a feature of the present invention,
Described media gateway is the described audio resource setting described audio resource test access code corresponding with described audio resource;
Described Media Gateway Controller disposes described audio resource test access code.
According to another feature of the present invention, described audio resource is corresponding one by one with described audio resource test access code, for same audio resource, identical with the described audio resource test access code that disposes at described Media Gateway Controller at the described audio resource test access code of described media gateway configuration.
According to another feature of the present invention, described modification message comprises first descriptor and second descriptor;
Add first parameter in first bag of first descriptor, the playback this time of described first parametric representation is an audio plays resource testing sound;
In second bag of second descriptor second parameter is set, described second parameter is carried audio resource test access code.
According to another feature of the present invention,
Described call notification message comprises described audio resource test access code and test subscriber's sign;
Described Media Gateway Controller identifies according to described test subscriber, determines that described test subscriber has the service authority of testing playing quality of audio-frequency resource.
According to another feature of the present invention, described Media Gateway Controller is defined as ordinary call with described calling after determining that described call number is not audio resource test access code.
According to another feature of the present invention, described Media Gateway Controller determines that described call number is an audio resource test access code, and after definite test subscriber do not have the service authority of playing quality of testing audio resource, the test subscriber is urged extension, finish described calling.
According to another feature of the present invention, when described audio resource was in busy condition, described media gateway was returned the playback failed message to described Media Gateway Controller, and described Media Gateway Controller is notified described test subscriber's on-hook by described media gateway.
According to a further aspect in the invention, provide a kind of system of testing playing quality of audio-frequency resource, described system comprises:
Media gateway and Media Gateway Controller, wherein,
Described media gateway is used to receive the call number from the test subscriber, will comprise that the call notification message of call number sends to described Media Gateway Controller;
Described Media Gateway Controller is used for receiving and according to described call notification message, determines that described call number is an audio resource test access code, to shown in media gateway send and revise message;
Described media gateway, be used for receiving and according to described modification message, obtain and described audio resource test access code corresponding audio resource, and adopt described audio resource to play test tone, make described test subscriber obtain the test result of described audio resource playing quality to the test subscriber.
According to a feature of the present invention,
Described media gateway is used to the described audio resource configuration described audio resource test access code corresponding with described audio resource;
Described Media Gateway Controller is used to dispose described audio resource test access code.
According to another feature of the present invention,
Described call notification message comprises described audio resource test access code and test subscriber's sign;
Described Media Gateway Controller is used for identifying definite described test subscriber according to described test subscriber and has the service authority of testing playing quality of audio-frequency resource.
According to another feature of the present invention,
Described Media Gateway Controller is used for determining that described call number is an audio resource test access code, and after definite test subscriber do not have the service authority of playing quality of testing audio resource, the test subscriber is urged extension, finishes described calling.
The method and system of testing playing quality of audio-frequency resource of the present invention, interpolation by cg (the Call Progress Tones Generator) bag in the symbol of the signal description in agreement H.248/MEGACO represents that this playback is the new argument tonetest of audio plays resource testing sound, calltrace bag in flow descriptors is provided for carrying the imsi parameter of audio resource test access code, determine the corresponding audio resource according to audio resource test access code, realization is to the on-line testing of audio resource playing quality, thereby under the situation of not influence system operation, realize the specific aim of audio resource playing quality is tested separately, not only improve the audio resource accuracy of test, and promoted the availability of network service system, measurability and maintainability.
Embodiment
Describe specific embodiments of the invention in detail below in conjunction with accompanying drawing.
The method and system of a kind of testing playing quality of audio-frequency resource in the embodiment of the invention are a kind of method and system of utilizing agreement H.248/MEGACO to realize the audio resource playing quality of online test media resource board in control and the network that is separated of carrying.
The method flow diagram of Fig. 1 in the embodiment of the invention playing quality of the single audio resource in the media resource plate being tested.Referring to shown in Figure 1, comprise test subscriber 1, media gateway 2 and Media Gateway Controller 3 among Fig. 1, wherein,
The test subscriber 1, has the service authority of on-line testing audio resource playing quality and activated on-line testing audio resource playing quality business at Media Gateway Controller 3;
Media gateway 2 is each the audio resource configuration audio resource test access code in the media resource plate, wherein, and the corresponding audio resource test of each audio resource access code;
Media Gateway Controller 3, configuration audio resource test access code, wherein, this audio resource test access code is identical with the audio resource test access code of media gateway 2 configurations;
Fig. 2 tests the mapping table of access code for the audio resource that disposes in the embodiment of the invention and audio resource in media gateway.Referring to shown in Figure 2, first audio resource test access code 211 is corresponding with first audio resource 221, second audio resource test access code 212 is corresponding with second audio resource 222, and by that analogy, n audio resource test access code 213 is corresponding with n audio resource 223.For the same audio resource in the same media resource plate, consistent with audio resource test access code in the configuration of media gateway side at the audio resource test access code of Media Gateway Controller side configuration.
Describe in the embodiment of the invention process below in detail, may further comprise the steps about the playing quality of testing audio resource:
Step 101, test subscriber's off-hook is prepared to make a call.
Step 102, medium gateway monitoring is found test subscriber's off-hook, sends off-hook notification (Notify) message to Media Gateway Controller.
After step 103, Media Gateway Controller are received the off-hook notification message of media gateway transmission, send interpolation (ADD) message to media gateway, indicating media gateway is set up and test subscriber's corresponding resource T, and sets up the context at media resource T place.
Step 104, media gateway is set up and test subscriber's corresponding resource T according to adding message, and sets up the context at media resource T place.
Fig. 3 sets up the contextual schematic diagram at media resource T and media resource T place for media gateway in the embodiment of the invention.Referring to shown in Figure 3, among Fig. 3, media resource T 301 is and test subscriber's corresponding resource T that context 302 is the context at this media resource T place.
Step 105, test subscriber's incoming call number is called out.
Step 106 after the call number of media gateway reception from the test subscriber, sends call notification (Notify) message to Media Gateway Controller, and call notification message comprises call number and test subscriber's sign.
In step 106, the test subscriber identifies the sign of the test terminal of using in the ordinary representation test subscriber test process.
Step 107, Media Gateway Controller receives and analyzes call notification message, determine that call number in the call notification message is an audio resource test access code, and identify according to the test subscriber in the call notification message and to determine that the test subscriber has the service authority of the playing quality of testing audio resource.
In step 107,
If it is not audio resource test access code that the call number in the call notification message is determined in the Media Gateway Controller analysis, determine that then this time of test subscriber called out to ordinary call, withdraw from this testing process, and carry out ordinary call and handle;
If it is audio resource test access code that the call number in the call notification message is determined in the Media Gateway Controller analysis, but identify definite test subscriber according to the test subscriber in the call notification message and do not have the service authority of the playing quality of testing audio resource, then the test subscriber is urged extension, finish this time to call out;
If it is audio resource test access code that the call number in the call notification message is determined in the Media Gateway Controller analysis, and identify definite test subscriber according to the test subscriber in the call notification message and have the service authority of the playing quality of testing audio resource, then enter step 108.
Step 108, Media Gateway Controller will comprise that modification (Modify) message of flow descriptors and signal description symbol sends to media gateway.
In step 108,
Media Gateway Controller carries audio resource test access code by the parameter (imsi) that call follow (calltrace) bag is set in the flow descriptors in revising message, sends to media gateway thereby audio resource is tested access code;
Media Gateway Controller is by the new parameter (tonetest) of adding in cg (the Call ProgressTones Generator) bag in the symbol of the signal description in revising message, this parameter is used for expression to playing test tone with test subscriber's corresponding resource T, and show simultaneously this playback be designated tone frequently resource play test tone.
Step 109, media gateway receives and analysis modify message, determine that according to new parameter (tonetest) of adding in the cg bag in the signal description symbol of revising in the message this playback is an audio plays resource testing sound, and the audio resource that carries according to the parameter (imsi) of the call follow bag in flow descriptors test access code obtains from the audio resource mapping table and audio resource test access code corresponding audio resource, adopts this audio resource to playing test tone with test subscriber's corresponding resource T.
In step 109, if be in busy condition with audio resource test access code corresponding audio resource, as to other user's playbacks, then media gateway is returned the playback failed message to Media Gateway Controller, Media Gateway Controller sends to media gateway and plays busy tone message, media gateway receives plays busy tone message, to playing " busy tone " to urge test subscriber's on-hook with test subscriber's corresponding resource T, after test subscriber's uppick " busy tone ", finish the test of this audio resource playing quality, audio resource of record test this time still is test mode not.The test subscriber continues to test next audio resource, the current not audio resource of test is put into test queue, as tail of the queue or other position of test queue.
Step 110, the test subscriber is according to the playback effect of the test tone of playing, and acquisition and record and audio resource are tested the test result of access code corresponding audio resource.
In step 110,, then write down the matter measured audio resource of this audio resource for having tested if playing quality is good; If the playing quality existing problems then write down the quality in-problem audio resource of this audio resource for having tested.
Step 111, media gateway finish the back in playback and send the playback end notification message to Media Gateway Controller.
After step 112, Media Gateway Controller were received the playback end notification message, Media Gateway Controller sent broadcast busy tone message to media gateway the test subscriber is urged extension.
Step 113, media gateway is according to playing busy tone message, to playing " busy tone " with test subscriber's corresponding resource T, to urge test subscriber's on-hook.
Step 114, test subscriber's uppick " busy tone " back on-hook.
Step 115, medium gateway monitoring is found test subscriber's on-hook, sends hang-off notification message to Media Gateway Controller.
Step 116, Media Gateway Controller send release message to media gateway after receiving the hang-off notification message that media gateway sends, indicating media gateway discharge audio resource and with test subscriber's corresponding resource T.
Step 117, media gateway receive release message, discharge audio resource and with test subscriber's corresponding resource T, thereby finish the complete test process of this single audio resource.
When needs are tested a plurality of audio resource in a plurality of media resource plates, can carry out as the described testing process of top Fig. 1 each audio resource.Can only be for the effective call that comprises audio resource test access code that the test subscriber initiates at testing with this audio resource test access code corresponding audio resource.
Fig. 4 is for carrying out the work schematic diagram of single audio resource playing quality test in the embodiment of the invention.Referring to shown in Figure 4:
The test subscriber imports second audio resource test access code and calls out;
Media gateway will comprise that the call notification message of second audio resource test access code and test subscriber's sign sends to Media Gateway Controller;
Media Gateway Controller is analyzed call notification message, identify according to the test subscriber, determine that the test subscriber has the service authority of the playing quality of testing audio resource, and after determining to be audio resource test access code, will comprise that the modification message of flow descriptors and signal description symbol sends to media gateway;
Media gateway determines that according to the parameter (tonetest) of the new interpolation in the cg bag in the signal description symbol this playback is an audio plays resource testing sound, and determine second audio resource test access code according to the parameter (imsi) in the call follow (calltrace) of the flow descriptors bag, from the audio resource mapping table of setting, obtain then and the second corresponding audio resource of second audio resource test access code, adopt second audio resource to playing test tone, realize test second audio resource with test subscriber's corresponding resource T.
Fig. 5 is for carrying out the work schematic diagram of a plurality of audio resource playing quality tests in the embodiment of the invention.Referring to shown in Figure 5.First audio resource 221 is tested respectively to n audio resource 223, thereby determined in-problem audio resource in n the tested audio resource.
The above only is preferred embodiment of the present invention; not in order to restriction the present invention; within the spirit and principles in the present invention all, any modification, the change that the embodiment of the invention is done, make up, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.