CN100464538C - Method and apparatus for automatic testing media gateway - Google Patents

Method and apparatus for automatic testing media gateway Download PDF

Info

Publication number
CN100464538C
CN100464538C CNB031366236A CN03136623A CN100464538C CN 100464538 C CN100464538 C CN 100464538C CN B031366236 A CNB031366236 A CN B031366236A CN 03136623 A CN03136623 A CN 03136623A CN 100464538 C CN100464538 C CN 100464538C
Authority
CN
China
Prior art keywords
ttcn
analog telephone
hook
analog
control module
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB031366236A
Other languages
Chinese (zh)
Other versions
CN1549541A (en
Inventor
宋永刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031366236A priority Critical patent/CN100464538C/en
Publication of CN1549541A publication Critical patent/CN1549541A/en
Application granted granted Critical
Publication of CN100464538C publication Critical patent/CN100464538C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The method includes the following steps: the first analog calling is started up for the first analog device (AD) via the first gateway to be tested, information of called the second AD is confirmed if it is started, the second analog telephone is received via the second gateway to be tested as per information of the second analog telephone, information is sent to the first and the second AD separately to inform information of the other side, connection state of the two is revised to be state of media flow communication, whether communication between the two is normal or not is testified, the said gateway is normal if it is normal or otherwise to report abnormal items.

Description

Media gateway is carried out automatic test method and device
Technical field
The present invention relates to network technology, particularly next generation network technology is specifically related to a kind of media gateway be carried out automatic test method and device.
Background technology
Describing of book for the purpose of simplifying the description at first, provides abbreviation and the Key Term definition used in the specification:
NGN next generation network (Next Generation Network)
MG media gateway (Media Gateway)
The labeling method (Tree and Tabular Combined Notation) of TTCN tree table combination
AMG access media gateway (Access Media Gateway)
IAD integrated access equipment (Integrated Access Device)
TMG Trunk Media Gateway (Trunk Media Gateway)
SoftSwitch Softswitch (NGN server control appliance)
MGCP MGCP (Media Gateway Control Protocol)
H.248 MGCP (function and MGCP are basic identical, are also referred to as the Megaco agreement)
IP Internet Protocol (Internet Protocol)
ATM asynchronous transfer mode (Asynchronous Transfer Mode)
The IP-based voice of VoIP (Voice over IP)
(the International Telecommunication of ITU-T ITU Telecommunication Standardization Sector
Union-Telecommunication?Standardization?Sector)
IETF internet engineering task group (Internet engineering task force)
Full-fledged along with next generation network (NGN) technology, MG (media gateway) has obtained using widely as the critical component among the NGN.Fig. 1 has described a kind of simple networking diagram of NGN.Wherein, the major function of MG exactly by MGCP (as H.248, MGCP etc.) under the control of Softswitch (SoftSwitch), finish terminal use's the access and the conversion of Media Stream, realize VoIP, fax and other related service.
At present, the test that gateway product is carried out mainly is a manual test, and under the situation in Fig. 1, each link of test environment all adopts the real network equipment, with order line or webmaster equipment is configured, and finishes test by manual calling.The tester tests by actual calling, and need manually go off-hook, dialing, need go to listen dialing tone, ring-back tone etc. with ear, needs after the conversation to talk to carry out the confirmation of Media Stream.These operations all need manual intervention, and automaticity is very low, and testing efficiency is very low.In addition, owing to test on the SoftSwitch of reality, flexibility is relatively poor, can not test fully protocol conformance.Owing on real SoftSwitch, test, can't control the message between MG and the SoftSwitch, so just can not carry out the test of protocol conformance targetedly.Realize for some abnormality tests are difficult.
Fig. 2 be in the prior art by protocol tester to MG testing principle figure.Comparison diagram 1 and Fig. 2, as can be seen, the basic principle of this scheme is exactly to replace real SoftSwitch with protocol tester, by tester structure control protocol message (as H.248), MG is controlled.
Got well corresponding message flow in the protocol tester according to the requirement definition of test, when needing in the test process terminal phone operated, tester can point out and wait for that the tester removes to operate phone, and this moment, the tester just did operations such as off-hook, dialing, on-hook.
Adopt protocol tester that the major defect that MG tests is had:
1) can not realize automatic test completely.Test process needs manual intervention, and testing efficiency is lower.
2) manual operation limits if having time.If people's slow motion is not finished correct operation in official hour, then can cause the failure of testing.
3) having relatively high expectations to the tester.The tester needs the prior flow process of understanding each test assignment fully aware ofly, otherwise, be easy to cause test crash because of misoperation.
Summary of the invention
The invention provides and a kind of media gateway is carried out automatic test method and device, to solve prior art because of not testing the low problem of testing efficiency that causes automatically.
For addressing the above problem, the invention provides following technical scheme:
A kind of media gateway is carried out automatic test method, described method comprises step:
The automatic test module tool starts first analog call of first analogue means through first gateway to be measured;
Described automatic test module tool judges whether described first analog call starts; If do not start, continue described setting up procedure; If start, the information that reports according to first gateway to be measured is determined the information of the second called analogue means;
According to the information of described second analogue means, be connected to described second analogue means by second gateway to be measured;
Described automatic test module tool sends information to described first and second analogue means respectively, notifies the other side's media information, and the connection status of revising described first and second analogue means is to the state of realizing Media Stream communication;
Verify whether the communication between described first and second analogue means is normal,,, report abnormal project if undesired if show that normally described gateway is normal.
Described first and second analogue means comprise first and second analog telephones, and first and second gateways to be measured are access media gateway or Trunk Media Gateway.
Described automatic test module tool comprises TTCN; Described media gateway comprises access media gateway and Trunk Media Gateway, comprises access media gateway AMG, integrated access equipment IAD and Trunk Media Gateway TMG.
Described method can be used for comprising agreement H.248 or MGCP agreement or any other gateway control protocol; Described automatic test module tool is controlled described first and second analogue means by the control module that is provided with the analog voice call handling process.
Described method also comprises step:
Having finished the communication verified between described first and second analogue means whether normally after the operation, finish described first analog call and wait for next analog call.
Described automatic test module tool starts first analogue means and comprises through the step of first analog call of first gateway to be measured:
Described TTCN sends the off-hook order to the described first gateway MG1 to be measured;
Described MG1 carries out the off-hook operation according to described off-hook order;
Described MG1 reports the incident of described off-hook operation to TTCN;
Described TTCN order MG1 creates associated domain;
After the dialing tone signal occurring, described TTCN starts dial-up operation to described MG1.
The step that described TTCN sends the off-hook order comprises: the control module of described TTCN in the actual telephone device of simulation sends the off-hook order;
Described step of carrying out the off-hook operation comprises: described control module is carried out the off-hook operation to the pairing port of first analog telephone;
Describedly report that to TTCN the step of the incident of described off-hook operation comprises: described MG1 reports to TTCN by report message after receiving the off hook signal of described first analog telephone;
The step of described establishment associated domain comprises: after described TTCN received offhook message from MG1, sending to MG1 increased order and creates associated domain, is used to represent the correlation of a plurality of terminal rooms, comprises that the topological relation of terminal room and medium mix and exchange parameter; In the Add order, have the dialing tone signal simultaneously, be used for requirement MG1 and put dialing tone for first analog telephone; Respond described Add order, MG1 reports to TTCN to the media information of distributing to first analog telephone, and with in follow-up message, TTCN is the called side of these information notifications;
Described startup dial-up operation step comprises: described TTCN sends the snoop command of the sound of the port of monitoring first analog telephone to control module; After control module detects the dialing tone signal, notice TTCN; TTCN continues to require control module to carry out dial-up operation, in dialing order with on the number that will dial.
Described media information comprises: IP address, receiving port number, medium type, media coding mode.
The described information that reports according to first gateway to be measured determines that the step of the information of the second called analogue means comprises: MG1 reports the information in TTCN first analog call, and TTCN checks whether the information of being received is correct.
The step of the information in the described TTCN of reporting first analog call comprises: MG1 reports TTCN to the number in the described information of receiving by notification message.
Comprise that also step: TTCN monitors the incident of the first analog telephone described incident of newspaper of existing side by side by revising order request MG1.
Described information according to described second analogue means, the step that is connected to described second analogue means by second gateway to be measured comprises:
Described TTCN analyzes the information of receiving that comprises number, sends order to the second gateway MG2 at the second called analog telephone place, and MG2 responds the order of described transmission, and the second analog telephone media information of distributing to is reported to TTCN;
Described MG2 requires the described second analog telephone off-hook, and off-hook information is sent TTCN.
Described order is for increasing order.
The described step of the described second analog telephone off-hook that requires comprises:
After the success of Add command execution, TTCN wants MG2 to put ring back tone for second analog telephone by revising message again; Want MG1 to put ring-back tone for caller first analog telephone;
TTCN sends the snoop command of the sound of monitoring the first and second analog telephone ports to control module;
Control module reports to TTCN to ring back tone of hearing at the second analog telephone port and the ring-back tone of hearing at the first analog telephone port;
After first and second analog telephones had been heard ring-back tone and ring back tone by control module respectively, TTCN sent the off-hook order to control module, requires the called second analog telephone off-hook;
MG2 reports TTCN by report message after receiving the off hook signal of second analog telephone.
The state of described realization Media Stream communication is: reiving/transmitting state, so that first and second analog telephones directly do not carry out the Media Stream communication by TTCN.
Whether normal communication between described first and second analogue means of described checking step comprise: the described control module of the control of TTCN triggers the dialing of first and second analog telephones respectively, judges respectively whether the number that second and first analog telephone receives is correct.
The step of described first analog call of described end and next analog call of wait comprises:
TTCN sends the on-hook order that requires the first analog telephone on-hook to control module;
MG1 receives behind the on-hook signal of first analog telephone to TTCN report onhook event
It is the context that the conversation of first analog telephone is set up that TTCN requires the MG1 deletion;
TTCN requires the second analog telephone port on-hook;
After MG2 receives the on-hook signal of second analog telephone, report TTCN.
Described MG1 receives that the step to TTCN report onhook event comprises behind the on-hook signal of first analog telephone: MG1 reports onhook event by notification message to TTCN after receiving the on-hook signal of first analog telephone;
It is that the contextual step that the conversation of first analog telephone is set up comprises that described TTCN requires the MG1 deletion: TTCN sends delete command;
Described TTCN requires the step of the second analog telephone port on-hook to comprise: TTCN sends the Modify order request to MG2 and puts busy tone to second analog telephone; TTCN sends the snoop command of the sound of monitoring the second analog telephone port to control module; Control module will report to TTCN at the busy tone of the second analog telephone port; TTCN sends the on-hook order to control module, requires the second analog telephone port on-hook; MG2 reports to TTCN by notification message after receiving the on-hook signal of second analog telephone; TTCN sends delete command, and requiring the MG2 deletion is the context that the conversation of second analog telephone is set up; TTCN sends any incident that order request MG2 monitors second analog telephone of revising.
A kind of device that media gateway is tested automatically comprises:
At least one pseudo-terminal device is used in the actual terminal of test simulation;
Control module is coupled to described pseudo-terminal device, is used for controlling described pseudo-terminal device by the analog voice call handling process that is provided with;
The media gateway device of testing is coupled to described pseudo-terminal device, is used for connecting described pseudo-terminal device by connecting network;
Testing apparatus, be coupled to described control module, be used for by to carry out the control information of voice communication mutual with described control module and the media gateway device that will test, it is mutual to carry out analog voice between the control pseudo-terminal device, thereby tests the described media gateway device that will test;
Wherein, whether described control module control pseudo-terminal device produces all items that will test, and detect correct by the project of the described media gateway device that will test by the pseudo-terminal device.
Described pseudo-terminal device analog telephone sets; Described control module is the module that comprises the sound card control program; The described media gateway device that will test comprises access media gateway and Trunk Media Gateway; Described testing apparatus comprises the TTCN module.
Described control module comprises the RealPhone module; Described pseudo-terminal device comprises sound card.
The described media gateway device that will test and described testing apparatus communicate by comprising IP network or ATM net Packet Based Network, and the gateway control protocol that comprises agreement H.248 and/or MGCP is adopted in described communication.
Utilize the present invention, can carry out sufficient testing protocol consistency.Can realize the full automation of operational trials, improve testing efficiency, save human cost.Can carry out the Products Compatibility test.Such as the compatibility test of docking, can realize automatic test by the structure of script and flow process, and needn't build complicated test environment with the equipment of reality with the SoftSwitch of different manufacturers.
Description of drawings
Fig. 1 has described a kind of simple networking diagram of NGN;
Fig. 2 illustrates in the prior art by protocol tester MG testing principle figure;
Fig. 3 (a) is the actual networking diagram of NGN;
Fig. 3 (b) is the networking diagram that carries out automatic test of the present invention;
The flow chart of the basic voip call that Fig. 4 is undertaken by agreement H.248 for embodiments of the invention;
Embodiment
In an embodiment of the present invention, MGCP uses H.248 agreement.H.248 agreement is the international standard protocol of media gateway controlling, by ITU-T and common exploitation of IETF and approval, delivers with the RFC3105 file, and wherein H.248 ITU-T is called, and IETF is called Megaco.
In an embodiment, automated test tool adopts TTCN.TTCN is international protocol test standard (standard No. for X.292), mainly finishes the functions such as structure, transmission, reception and coupling of message.In the reality, also can adopt other automated test tool, as long as can finish structure, transmission, reception and the matching feature of message.
The upper strata control program of sound card adopts RealPhone.RealPhone is a Huawei Tech Co., Ltd based on the graphical interface program on the Windows operating system of operating in of Dialogic analog voice card exploitation.RealPhone provides simple command interface, and as server, receives the order from a plurality of clients, and sound card is operated and controlled, and realizes the emulation of phone.In the reality, other control program also can adopt, as long as all functions of energy emulation phone.
The basic format of the order that RealPhone provides is: BxCx Command[Parameters].Wherein BxCx is a port-mark, and the digital x of B back represents sound card sequence number (can insert the polylith sound card on the PC), and C back numeral x represents the port sequence number on this sound card, and Command is a character string command, and Parameters is an optional parameters.For example: " B1C1 Offhook " order is to want the B1C1 port to carry out the off-hook operation, and " B1C2 Dial 87654321 " wants the B1C2 port to dial the number 87654321.
Fig. 3 (a) is the actual networking diagram of NGN; Fig. 3 (b) is the networking diagram that carries out automatic test of the present invention.Can more easily understand the basic principle of this test model by contrast.
At first with reference to Fig. 3 (a), the actual networking of NGN has four layers from top to bottom, and its action and function simply is described below:
Network control layer: SoftSwitch is responsible for control and management to equipment such as gateways as net control device, finishes work such as continuing of service call.
Core exchange layer: i.e. packet-based core networks can be IP network, ATM net or other Packet Based Network, and what adopt in the native system scheme is IP network, and its major function is the control messages (H.248) between voice-bearer Media Stream and MG and the SoftSwitch.
Edge access layer: the pairing tested object gateway of the present invention program MG is in edge access layer.MG is responsible for terminal use's access, and the up Ethernet interface (FE) that provides carries out communication by H.248 agreement and the SoftSwitch that is carried on the IP network, descendingly directly links to each other with the terminal telephone set by analog line.MG finishes terminal use's access and Media Stream is changed between Packet Based Network and PSTN net.
User terminal: here user terminal is ordinary telephone set.
Corresponding to the networking of reality,, just should simulate the ancillary equipment of MG and control with automation tools in order to realize full automation test to MG:
Replace actual SoftSwitch with TTCN.Can construct message packet according to the demand of test by TTCN, and send to MG, also receive message packet simultaneously, and mate with expected result from MG.Can control MG by the method.
Replace telephone set with sound card.Sound card provides the plain old telephone mouth, can be installed on the PCI slot of PC, by operating in the control of the control program RealPhone on the PC, can finish elemental motions such as off-hook, on-hook, dialing, hooking, can carry out detection and Identification to various signal tones such as dialing tone, ring-back tone, ring back tone, busy tones, in addition, can also carry out the confirmation of Media Stream, whether can two-way call with checking.
TTCN also is connected as setting up TCP between a client and the RealPhone except simulation SoftSwitch, according to the flow process of test, sends to RealPhone in needs and orders the corresponding operating of finishing telephone set.Such as, in needs B1C1 off-hook, TTCN can send out one " B1C1Offhook " order and give RealPhone, and RealPhone receives orders the back just to the operation of B1C1 port execution off-hook.
According to as above scheme, TTCN both can finish abundant testing protocol consistency as core control part, can combine with sound card again, realized the full automation of professional test.
The flow chart of the basic voip call that Fig. 4 is undertaken by agreement H.248 for embodiments of the invention.In this embodiment, by the basic voip call that agreement is H.248 carried out, in test process, Tel1 is as caller, and Tel2 is as called.
Among the figure, TTCN is the core of whole calling control, and MG1 and MG2 are equipment under tests, Tel1 and Tel2 be respectively with MG1 and sound card that MG2 links to each other on two ports, RealPhone operates and controls Tel1 and Tel2 by the order from TTCN.Need to prove that in addition every message all comprises order and corresponding response simultaneously among the figure, clear for flow process just, the message of the response of not drawing.Calling procedure is described in detail as follows:
In step 1, at first TTCN sends the Offhook order to RealPhone, after RealPhone receives this order, the pairing port of Tel1 is carried out the off-hook operation.
Receive the off hook signal of Tel1 at step 2, MG1 after, report off-hook event to TTCN (SoftSwitch) by Notify message.
After step 3, TTCN receive offhook message from MG1, (context is Context to send Add order establishment context to MG1, it is the notion in H.248, translations associated domain again, the correlation of representing a plurality of terminal rooms comprises that the topological relation of terminal room and medium mix and exchange parameter etc., and detailed content please refer to RFC3015), having " dt " signal simultaneously in the Add order, is that requirement MG1 is put dialing tone to Tel1.In addition, in the response to the Add order, MG1 can report to TTCN to the media information of distributing to Tel1 (as IP address, receiving port number, voice coding modes etc.), and in follow-up message, TTCN can be the called side of these information notifications.
Send the Listen order at step 4, TTCN to RealPhone, monitor the sound of Tel1 port.
Monitor the sound of Tel1 port in step 5, RealPhone, when detect be the dialing tone signal after, this result (Dial tone) is notified to TTCN.
In step 6, because Tel1 has correctly heard dialing tone, so TTCN continues to require RealPhone that Tel1 is carried out dial-up operation, and in Dial order with on the number that will dial.
After step 7, dialing were finished, MG1 can give TTCN the number of receiving by the Notify information reporting, and TTCN can check whether the number of being received is correct.
Continue to monitor that by Modify order request MG1 any incident of Tel1 is existed side by side promptly reports (" * " represents any incident) in step 8, TTCN.
At step 9, TTCN the number of receiving is analyzed, find called after, send the Add order to the gateway MG2 at called Tel2 place.The same with step 3, MG2 can also report to TTCN to the media information of distributing to Tel2 in the response message to the Add order.
After step 10, the success of Add command execution, TTCN wants MG2 to put ring back tone (ri) to Tel2 by Modify message again.
In step 11, again in called bell signal, TTCN also wants MG1 to put ring-back tone (rt) for caller Tel1 by Modify message
Send the Listen order at step 12, TTCN to RealPhone, monitor the sound of Tel2 port.
At step 13, RealPhone the ring back tone of hearing at the Tel2 port (Ring tone) is reported to TTCN.
Send the Listen order at step 14, TTCN to RealPhone, monitor the sound of Tel1 port.
At step 15, RealPhone the ring-back tone of hearing at the Tel1 port (Ringback tone) is reported to TTCN.
Step 16, caller and called heard ring-back tone and ring back tone respectively after, TTCN sends the Offhook order to RealPhone, requires called Tel2 off-hook.
Receive the off hook signal of Tel2 at step 17, MG2 after, give TTCN by the Notify information reporting.
At step 18 and 19, TTCN respectively to caller and called transmission Modify message, and the media information of informing the other side respectively is (in step 3 and step 9, the gateway of calling and called has reported to TTCN to the media information of oneself in the response message to the Add order), simultaneously connection is revised as SR (transmitting-receiving) state.Like this, just can directly not carry out the Media Stream communication by TTCN between Tel1 and the Tel2, so far, conversation has been set up.
Work in step 20, this step is to carry out medium to confirm whether the conversation between checking Tel1 and the Tel2 is normal.Verification method is: Tel2 dials a string number, can correctly hear the number of being dialled at Tel1, and Tel1 dials a string number more conversely, also can correctly hear the number of being dialled at Tel2.The work that these medium confirm all is to be finished by RealPhone under the control of TTCN.
After step 21, medium confirmed to finish, TTCN sent the Onhook order to RealPhone, requires the Tel1 on-hook.
Receive the on-hook signal of Tel1 at step 22, MG1 after, report onhook event (on) to TTCN by Notify message.
Send the Subtract order at step 23, TTCN, the context that requires the MG1 deletion to be set up for the Tel1 conversation.
Send any incident (this step mainly is to prepare for call out next time) that Modify order request MG1 monitors Tel1 at step 24, TTCN.
Send the Modify order request at step 25, TTCN to MG2 and put busy tone (bt) to Tel2.
Send the Listen order at step 26, TTCN to RealPhone, monitor the sound of Tel2 port.
At step 27, RealPhone the busy tone of hearing at the Tel2 port (Busy tone) is reported to TTCN.
Send the Onhook order at step 28, TTCN to RealPhone, require the on-hook of Tel2 port.
Give TTCN by the Notify message report receive the on-hook signal of Tel2 at step 29, MG2 after.
Send the Subtract order at step 30, TTCN, the context that requires the MG2 deletion to be set up for the Tel2 conversation.
In step 31, the same with the 24th step, TTCN sends any incident that Modify order request MG2 monitors Tel2, prepares for call out next time.
So far, a complete calling procedure just is through with.Whole process is without any need for manual intervention, and full automation is realized.TTCN can carry out a plurality of test cases automatically continuously, after we have write a large amount of automatic test cases, just can allow these use-cases carry out continuously, and this moment, the tester just can do other thing, had improved testing efficiency so greatly.Because automatic test script can be reused, can be used for the MG product of different size in addition, avoid a large amount of repeated labors of tester, save human cost.
Though in an embodiment, be that example describes with H.248 agreement, TTCN and RealPhone respectively, of the present invention being not limited thereto:
Wherein, one skilled in the art will appreciate that, can also use MGCP or any other gateway control protocol except the agreement H.248.
In addition, except TTCN, can also use any other automated test tool.
And, can also use any other sound card control program for RealPhone.
In addition, sound card can be analog voice card or any other Related product of Dialogic.
In addition, can carry out communication by IP network or ATM net or any other Packet Based Network between MG and the SoftSwitch.
Also have, tested object MG can be access media gateway and Trunk Media Gateway (comprising AMG, IAD, TMG etc.)
The invention provides a kind of device that media gateway is tested automatically, this device comprises:
At least one pseudo-terminal device is used for the terminal in test simulation reality;
Control module is coupled to described pseudo-terminal device, is used for controlling described pseudo-terminal device by the analog voice call handling process that is provided with;
The media gateway device of testing is coupled to described pseudo-terminal device, is used for connecting described pseudo-terminal device by connecting network;
Testing apparatus, be coupled to described control module, be used for by to carry out the control information of voice communication mutual with described control module and the media gateway device that will test, it is mutual to carry out analog voice between the control pseudo-terminal device, thereby tests the described media gateway device that will test;
Described pseudo-terminal device analog telephone sets; Described control module is the module that comprises the sound card control program; The described media gateway device that will test comprises access media gateway and Trunk Media Gateway; Described testing apparatus comprises the TTCN module.
Described control module comprises the RealPhone module; Described pseudo-terminal device comprises sound card.
The described media gateway device that will test and described testing apparatus be by by comprising that IP network or ATM net Packet Based Network communicate, and the gateway control protocol that comprises agreement H.248 and/or MGCP is adopted in described communication.
The solution of the present invention is used in the test of the gateway device of Huawei Tech Co., Ltd, in the raising of comprehensive, the testing efficiency of test with save the check that practice has all been passed through in aspect such as human cost.
Utilize the present invention, can carry out sufficient testing protocol consistency.Can realize the full automation of operational trials, improve testing efficiency, save human cost.Can carry out the Products Compatibility test.Such as the compatibility test of docking, can realize automatic test by the structure of script and flow process, and needn't build complicated test environment with the equipment of reality with the SoftSwitch of different manufacturers.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (22)

1. one kind is carried out automatic test method to media gateway, it is characterized in that described method comprises step:
The automatic test module tool starts first analog call of first analogue means through first gateway to be measured;
Described automatic test module tool judges whether described first analog call starts; If do not start, continue described setting up procedure; If start, the information that reports according to first gateway to be measured is determined the information of the second called analogue means;
According to the information of described second analogue means, be connected to described second analogue means by second gateway to be measured;
Described automatic test module tool sends information to described first and second analogue means respectively, notifies the other side's media information, and the connection status of revising described first and second analogue means is to the state of realizing Media Stream communication;
Verify whether the communication between described first and second analogue means is normal,,, report abnormal project if undesired if show that normally described gateway is normal.
2. the method for claim 1 is characterized in that, described first and second analogue means comprise first and second analog telephones, and first and second gateways to be measured are access media gateway or Trunk Media Gateway.
3. method as claimed in claim 2 is characterized in that, described automatic test module tool comprises TTCN; Described media gateway comprises access media gateway and Trunk Media Gateway, comprises access media gateway AMG, integrated access equipment IAD and Trunk Media Gateway TMG.
4. method as claimed in claim 3 is characterized in that, described method can be used for comprising agreement H.248 or MGCP agreement or any other gateway control protocol; Described automatic test module tool is controlled described first and second analogue means by the control module that is provided with the analog voice call handling process.
5. method as claimed in claim 4 is characterized in that, described method also comprises step:
Having finished the communication verified between described first and second analogue means whether normally after the operation, finish described first analog call and wait for next analog call.
6. method as claimed in claim 4 is characterized in that, described automatic test module tool starts first analogue means and comprises through the step of first analog call of first gateway to be measured:
Described TTCN sends the off-hook order to the described first gateway MG1 to be measured;
Described MG1 carries out the off-hook operation according to described off-hook order;
Described MG1 reports the incident of described off-hook operation to TTCN;
Described TTCN order MG1 creates associated domain;
After the dialing tone signal occurring, described TTCN starts dial-up operation to described MG1.
7. method as claimed in claim 6 is characterized in that,
The step that described TTCN sends the off-hook order comprises: the control module of described TTCN in the actual telephone device of simulation sends the off-hook order;
Described step of carrying out the off-hook operation comprises: described control module is carried out the off-hook operation to the pairing port of first analog telephone;
Describedly report that to TTCN the step of the incident of described off-hook operation comprises: described MG1 reports to TTCN by report message after receiving the off hook signal of described first analog telephone;
The step of described establishment associated domain comprises: after described TTCN received offhook message from MG1, sending to MG1 increased order and creates associated domain, is used to represent the correlation of a plurality of terminal rooms, comprises that the topological relation of terminal room and medium mix and exchange parameter; In the Add order, have the dialing tone signal simultaneously, be used for requirement MG1 and put dialing tone for first analog telephone; Respond described Add order, MG1 reports to TTCN to the media information of distributing to first analog telephone, and with in follow-up message, TTCN is the called side of these information notifications;
Described startup dial-up operation step comprises: described TTCN sends the snoop command of the sound of the port of monitoring first analog telephone to control module; After control module detects the dialing tone signal, notice TTCN; TTCN continues to require control module to carry out dial-up operation, in dialing order with on the number that will dial.
8. method as claimed in claim 7 is characterized in that, described media information comprises: IP address, receiving port number, medium type, media coding mode.
9. method as claimed in claim 4, it is characterized in that, the described information that reports according to first gateway to be measured determines that the step of the information of the second called analogue means comprises: MG1 reports the information in TTCN first analog call, and TTCN checks whether the information of being received is correct.
10. method as claimed in claim 9 is characterized in that, the step of the information in the described TTCN of reporting first analog call comprises: MG1 reports TTCN to the number in the described information of receiving by notification message.
11. method as claimed in claim 9 is characterized in that, comprises that also step: TTCN monitors the incident of the first analog telephone described incident of newspaper of existing side by side by revising order request MG1.
12. method as claimed in claim 4 is characterized in that, described information according to described second analogue means, and the step that is connected to described second analogue means by second gateway to be measured comprises:
Described TTCN analyzes the information of receiving that comprises number, sends order to the second gateway MG2 at the second called analog telephone place, and MG2 responds the order of described transmission, and the second analog telephone media information of distributing to is reported to TTCN;
Described MG2 requires the described second analog telephone off-hook, and off-hook information is sent TTCN.
13. method as claimed in claim 12 is characterized in that, described order is for increasing order.
14. method as claimed in claim 13 is characterized in that, the described step of the described second analog telephone off-hook that requires comprises:
After the success of Add command execution, TTCN wants MG2 to put ring back tone for second analog telephone by revising message again; Want MG1 to put ring-back tone for caller first analog telephone;
TTCN sends the snoop command of the sound of monitoring the first and second analog telephone ports to control module;
Control module reports to TTCN to ring back tone of hearing at the second analog telephone port and the ring-back tone of hearing at the first analog telephone port;
After first and second analog telephones had been heard ring-back tone and ring back tone by control module respectively, TTCN sent the off-hook order to control module, requires the called second analog telephone off-hook;
MG2 reports TTCN by report message after receiving the off hook signal of second analog telephone.
15. method as claimed in claim 4 is characterized in that, the state of described realization Media Stream communication is: reiving/transmitting state, so that first and second analog telephones directly do not carry out the Media Stream communication by TTCN.
16. method as claimed in claim 4, it is characterized in that, whether normal communication between described first and second analogue means of described checking step comprise: the described control module of the control of TTCN triggers the dialing of first and second analog telephones respectively, judges respectively whether the number that second and first analog telephone receives is correct.
17. method as claimed in claim 5 is characterized in that, the step of described first analog call of described end and next analog call of wait comprises:
TTCN sends the on-hook order that requires the first analog telephone on-hook to control module;
MG1 receives behind the on-hook signal of first analog telephone to TTCN report onhook event
It is the context that the conversation of first analog telephone is set up that TTCN requires the MG1 deletion;
TTCN requires the second analog telephone port on-hook;
After MG2 receives the on-hook signal of second analog telephone, report TTCN.
18. method as claimed in claim 17 is characterized in that,
Described MG1 receives that the step to TTCN report onhook event comprises behind the on-hook signal of first analog telephone: MG1 reports onhook event by notification message to TTCN after receiving the on-hook signal of first analog telephone;
It is that the contextual step that the conversation of first analog telephone is set up comprises that described TTCN requires the MG1 deletion: TTCN sends delete command;
Described TTCN requires the step of the second analog telephone port on-hook to comprise: TTCN sends the Modify order request to MG2 and puts busy tone to second analog telephone; TTCN sends the snoop command of the sound of monitoring the second analog telephone port to control module; Control module will report to TTCN at the busy tone of the second analog telephone port; TTCN sends the on-hook order to control module, requires the second analog telephone port on-hook; MG2 reports to TTCN by notification message after receiving the on-hook signal of second analog telephone; TTCN sends delete command, and requiring the MG2 deletion is the context that the conversation of second analog telephone is set up; TTCN sends any incident that order request MG2 monitors second analog telephone of revising.
19. the device that media gateway is tested automatically is characterized in that, comprising:
At least one pseudo-terminal device is used in the actual terminal of test simulation;
Control module is coupled to described pseudo-terminal device, is used for controlling described pseudo-terminal device by the analog voice call handling process that is provided with;
The media gateway device of testing is coupled to described pseudo-terminal device, is used for connecting described pseudo-terminal device by connecting network;
Testing apparatus, be coupled to described control module, be used for by to carry out the control information of voice communication mutual with described control module and the media gateway device that will test, it is mutual to carry out analog voice between the control pseudo-terminal device, thereby tests the described media gateway device that will test;
Wherein, whether described control module control pseudo-terminal device produces all items that will test, and detect correct by the project of the described media gateway device that will test by the pseudo-terminal device.
20. device as claimed in claim 19 is characterized in that: described pseudo-terminal device analog telephone sets; Described control module is the module that comprises the sound card control program; The described media gateway device that will test comprises access media gateway and Trunk Media Gateway; Described testing apparatus comprises the TTCN module.
21. device as claimed in claim 20 is characterized in that: described control module comprises the RealPhone module; Described pseudo-terminal device comprises sound card.
22. as the described device of one of claim 19-21, it is characterized in that: the described media gateway device that will test and described testing apparatus communicate by comprising IP network or ATM net Packet Based Network, and the gateway control protocol that comprises agreement H.248 and/or MGCP is adopted in described communication.
CNB031366236A 2003-05-21 2003-05-21 Method and apparatus for automatic testing media gateway Expired - Fee Related CN100464538C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031366236A CN100464538C (en) 2003-05-21 2003-05-21 Method and apparatus for automatic testing media gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031366236A CN100464538C (en) 2003-05-21 2003-05-21 Method and apparatus for automatic testing media gateway

Publications (2)

Publication Number Publication Date
CN1549541A CN1549541A (en) 2004-11-24
CN100464538C true CN100464538C (en) 2009-02-25

Family

ID=34323396

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031366236A Expired - Fee Related CN100464538C (en) 2003-05-21 2003-05-21 Method and apparatus for automatic testing media gateway

Country Status (1)

Country Link
CN (1) CN100464538C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108770011A (en) * 2018-05-07 2018-11-06 数据通信科学技术研究所 Gateway automatization test system and method based on specialized media gateway control protocol

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407839C (en) * 2004-12-17 2008-07-30 中兴通讯股份有限公司 Mobile phone communication automatic testing method and mobile phone automatic calling unit
CN100394732C (en) * 2005-10-14 2008-06-11 中国移动通信集团公司 WAP gateway performance test method
CN1984171B (en) * 2006-04-06 2011-04-13 华为技术有限公司 System and method for realizing speech apparatus function test
CN1996938A (en) * 2006-06-23 2007-07-11 华为技术有限公司 A method for monitoring the network service quality of the soft switch load
CN101247617B (en) * 2008-01-16 2011-05-11 中兴通讯股份有限公司 Apparatus and method for automatic detection of mobile communication service fault
CN101662543B (en) * 2008-08-29 2012-07-18 中兴通讯股份有限公司 Method and system for evaluating availability of voice service
CN101895642B (en) * 2010-06-30 2015-07-22 中兴通讯股份有限公司 Method and device for detecting telephone channel faults
CN101977273B (en) * 2010-10-21 2013-10-09 深圳市共进电子股份有限公司 Method for testing conducting anti-interference performance of network voice communication equipment
CN102739875B (en) * 2011-04-07 2015-01-07 英华达(上海)科技有限公司 Detection method for voice gateway device
CN102857645A (en) * 2011-06-27 2013-01-02 中兴通讯股份有限公司 Method and apparatus for testing voice media gateway
CN102624585B (en) * 2012-03-14 2014-09-24 上海大亚科技有限公司 Analog conversation method based on gateway terminal equipment and voice device detection device
CN102664764B (en) * 2012-04-01 2014-09-17 Ut斯达康通讯有限公司 Call control flow testing tool based on media gateway control protocol and method thereof
CN106331384A (en) * 2015-06-19 2017-01-11 中兴通讯股份有限公司 Media channel test method and device
CN109831353B (en) * 2019-01-22 2020-09-15 成都飞鱼星科技股份有限公司 Automatic testing device for multiple network services
CN113810245A (en) * 2021-09-01 2021-12-17 四川天邑康和通信股份有限公司 Multi-voice-port parallel automatic testing method for government-enterprise gateway

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1305287A (en) * 1999-11-30 2001-07-25 Lg电子株式会社 Method of detecting trunk calling connection in user part of comprehensive business digital network
JP2002261931A (en) * 2001-03-05 2002-09-13 Nippon Telegr & Teleph Corp <Ntt> Method for testing line and device therefor and its program and recording medium
WO2003013064A1 (en) * 2001-07-24 2003-02-13 Siemens Aktiengesellschaft Method for examining a user channel connection in a telecommunication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1305287A (en) * 1999-11-30 2001-07-25 Lg电子株式会社 Method of detecting trunk calling connection in user part of comprehensive business digital network
JP2002261931A (en) * 2001-03-05 2002-09-13 Nippon Telegr & Teleph Corp <Ntt> Method for testing line and device therefor and its program and recording medium
WO2003013064A1 (en) * 2001-07-24 2003-02-13 Siemens Aktiengesellschaft Method for examining a user channel connection in a telecommunication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108770011A (en) * 2018-05-07 2018-11-06 数据通信科学技术研究所 Gateway automatization test system and method based on specialized media gateway control protocol
CN108770011B (en) * 2018-05-07 2021-07-02 数据通信科学技术研究所 Gateway automatic test system and method based on special media gateway control protocol

Also Published As

Publication number Publication date
CN1549541A (en) 2004-11-24

Similar Documents

Publication Publication Date Title
CN100464538C (en) Method and apparatus for automatic testing media gateway
US7016475B2 (en) Extendable call agents simulator
US7027398B2 (en) Method and apparatus for monitoring voice conversations from customer premises equipment
US6700955B1 (en) System and method for remote management of a DSL device
US5966427A (en) Apparatus and method for troubleshooting internet protocol telephony networks
US7170987B2 (en) Customer premises equipment that can support multiple call control languages or multiple call agents
CN100559802C (en) Be used between IP and analog telephone, realizing the method and apparatus of parallel work-flow
EP1589739B1 (en) IP telephone system, IP telephone apparatus and calling method
US7616740B2 (en) Method, system, and computer-readable medium for simulating a converged network with a single media gateway and media gateway controller
CN101485172B (en) Method and communication terminal for provision of VOIP
CN100521631C (en) System and method for generating ringbace tone
US9172601B2 (en) Communications links
US7420928B2 (en) Testing of transmission quality in packet-based networks
US7545798B2 (en) Communication system for controlling a call portion
CN102801875A (en) Large traffic test module, system and method
US6891827B2 (en) Network-based telephony gateway and network-based telephony method
KR100679806B1 (en) IP voice service system for voice over IP and method thereof
CN105721727A (en) Call forwarding method and apparatus
CN101917523B (en) Method and device for tracing voice signaling
US7227933B1 (en) System and method for remote management of a DSL device
CN101166111B (en) A service protection method for access gateway
Cisco VoIP Commands
US6621814B1 (en) Method and apparatus for transmitting voice data in data packets with additional supplementary services
JP4836221B2 (en) PSTN terminal accommodating device
KR101002678B1 (en) VoIP Gateway and Voice Call Line Testing Method therof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090225

CF01 Termination of patent right due to non-payment of annual fee