Detect the test macro and the method for testing of VOIP equipment
Technical field
The present invention relates to a kind of to network voice communication (voice over internet protocol, abbreviation VOIP) detection of terminal equipment, relate in particular to a kind of detection VOIP FXS (Foreign Exchange Station, test macro FXS) and method of testing.
Background technology
Along with popularizing and development of broadband services, the network bandwidth no longer has been the limitation of the technology of voice-over-net communication, and VOIP speech business expense is also comparatively cheap, so the telecom operation commercial city trying hard to recommend the VOIP speech business, and market increases sharply to the demand of VOIP equipment.Yet the detection for VOIP equipment in industrial production has but run into bottleneck.Traditional testing scheme is the use of simulation VOIP equipment, by setting up the mode of registrar, dial mutually by two FXS interfaces, and (DualTone Multi Frequency, DTMF) method of signal is tested to transmit dual-tone multifrequency mutually.Because this testing scheme need set up the server of supporting various VOIP agreements, need two VOIP equipment of control, make the testing time long, test loaded down with trivial detailsly, and the situation of timing error appears easily, the low and instability extremely of testing efficiency.
Summary of the invention
At the problems referred to above, the invention provides a kind of testing efficiency height, the test macro and the method for testing of the detection VOIP equipment of the simple and stable testing of test mode.
For achieving the above object, the test macro of detection VOIP equipment of the present invention comprises:
Testing apparatus links to each other with VOIP equipment to be measured through netting twine, sends test instruction to VOIP equipment to be measured, and the test result that receives the passback of sound card server;
The sound card server, link to each other with VOIP equipment to be measured through telephone wire, monitor the ring of the FXS mouth transmission of VOIP equipment to be measured, and send dtmf signal, dtmf signal to VOIP equipment passback to be measured is compared, the test result after described testing apparatus output comparison; And
Switch links to each other with the sound card server with described testing apparatus through netting twine respectively, and the network communication environment of test macro is provided.
Especially, described testing apparatus is a computer; Described sound card server is the computer that sound card is housed.
Further, described dtmf signal wavelength is 100ms, and the time interval between described dtmf signal is 200~300ms.
The present invention detects the method for testing of VOIP equipment, may further comprise the steps:
(1) testing apparatus sends test instruction and gives VOIP equipment to be measured;
(2) VOIP equipment to be measured promptly externally sends ring after receiving test instruction;
(3) the sound card server is simulated off-hook after monitoring the ring that VOIP equipment to be measured sends, and VOIP monitoring of equipment to be measured is set up line with the sound card server behind sound card server off-hook;
(4) behind the line, the sound card server sends dtmf signal to VOIP equipment to be measured;
(5) VOIP equipment to be measured is preserved the dtmf signal that receives, and after the sound card server sent end signal, VOIP equipment to be measured stopped to preserve, and the dtmf signal that will preserve is transmitted to the sound card server;
(6) the sound card server is compared the dtmf signal that the dtmf signal that receives and step 4 send, and outputs test result, and test result is transferred to testing apparatus through switch;
(7) after testing apparatus receives test result, logging test results, and send and stop test instruction and give VOIP equipment to be measured, EOT.
Wherein, described testing apparatus is a computer, and described sound card server is the computer that sound card is housed; Described dtmf signal wavelength is 100ms, and the time interval between described dtmf signal is 200~300ms.
Further, the sound card server is compared the dtmf signal that receives with the dtmf signal of step 4 transmission in the step (6); If identical, output is tested successfully, if different, the output test crash.
The present invention can be good at detecting the function of the FXS mouth of VOIP equipment, and the VOIP equipment of a plurality of FXS mouths is particularly arranged.The present invention is not owing to need to set up SIP (Session Initiation Protocol, session initiation protocol) server, and do not need the manual off-hook dialing of manpower yet, all finish automatically by test macro, and then can greatly improve testing efficiency, be applicable to the test of large-scale production.
In addition, the present invention is by being provided with the sound card server, carry out the test of dislodging machine with VOIP equipment to be measured, and transmit dtmf signal mutually with VOIP equipment to be measured and test, the situation of timing error easily takes place when having avoided using two VOIP testing equipments in the traditional test scheme, has guaranteed the stability of test.
Description of drawings
Fig. 1 detects an example structure schematic diagram of the test macro of VOIP equipment for the present invention;
Fig. 2 detects another example structure schematic diagram of the test macro of VOIP equipment for the present invention;
Fig. 3 detects the flow chart of the method for testing of VOIP equipment for the present invention.
Embodiment
Below in conjunction with Figure of description the specific embodiment of the present invention is done detailed description.
Fig. 1 detects an example structure schematic diagram of the test macro of VOIP equipment for the present invention.Present embodiment is for testing the test macro of a plurality of VOIP equipment simultaneously, and its concrete structure is:
N testing apparatus links to each other with n VOIP equipment to be measured through netting twine respectively, sends test instruction to VOIP equipment to be measured, and the test result that receives the passback of sound card server;
The sound card server, link to each other with n VOIP equipment to be measured through telephone wire, monitor the ring of the FXS mouth transmission of VOIP equipment to be measured, and send dtmf signal, dtmf signal to VOIP equipment passback to be measured is compared, the test result after described testing apparatus output comparison; And
Switch links to each other with sound card server and n testing apparatus through netting twine respectively, and the network environment of test macro is provided.
Wherein, described voice server can be a computer that sound card is housed, but analog telephone dialing, off-hook, on-hook, the operation sequence of ring etc. and comparison program are housed in it.Testing apparatus is a computer, and when testing apparatus sent test instruction, VOIP device start test pattern to be measured externally sent ring, sound card startup of server test mode, and promptly whether real-time listening VOIP equipment to be measured sends ring.The FXO mouth of sound card links to each other through telephone wire with the FXS mouth of VOIP equipment to be measured.Solid line represents that netting twine connects among the figure, and dotted line represents that telephone wire connects.
Fig. 2 detects another example structure schematic diagram of the test macro of VOIP equipment for the present invention.Present embodiment is for testing the test macro of a plurality of FXS mouths of VOIP equipment simultaneously, and its concrete structure is:
Testing apparatus links to each other with VOIP equipment to be measured through netting twine, sends test instruction to VOIP equipment to be measured, and the test result that receives the passback of sound card server;
The sound card server, link to each other with n FXS mouth of VOIP equipment to be measured through telephone wire, monitor the ring of each FXS mouth transmission of VOIP equipment to be measured, and send dtmf signal, dtmf signal to VOIP equipment passback to be measured is compared, the test result after described testing apparatus output comparison; And
Switch links to each other with testing apparatus with the sound card server through netting twine respectively, and the network environment of test macro is provided.
Wherein, described sound card server and described testing apparatus are the same; A plurality of FXO mouths of sound card link to each other through telephone wire with a plurality of FXS mouths of VOIP equipment to be measured respectively; Solid line represents that netting twine connects among the figure, and dotted line represents that telephone wire connects.
Fig. 3 detects the flow chart of the method for testing of VOIP equipment for the present invention.Its detailed step is described below:
(1) testing apparatus sends test instruction and gives VOIP equipment to be measured;
(2) VOIP equipment to be measured promptly externally sends ring after receiving test instruction;
(3) after the sound card server monitors the ring that VOIP equipment to be measured sends, start simulation off-hook program and finish the off-hook action, after VOIP monitoring of equipment to be measured had been finished off-hook to the sound card server, VOIP equipment to be measured also carried out off-hook, set up line with the sound card server; This step mainly is to detect the ringer function and the dislodging machine function of VOIP equipment;
(4) behind the line, the sound card server sends a string dtmf signal to VOIP equipment to be measured;
(5) VOIP equipment to be measured is preserved the dtmf signal that receives, after the sound card server sends end signal, VOIP equipment to be measured stops to preserve, and the dtmf signal that will preserve is according to original length of its received signal, and order and mode are transmitted to the sound card server;
(6) the sound card server is compared the dtmf signal that the dtmf signal that receives and step 4 send; If identical, output is tested successfully, if different, the output test crash; And the contrastive test result is transferred to testing apparatus through switch;
(7) after testing apparatus receives test result, logging test results, and send the instruction that stops to test and give VOIP equipment to be measured, EOT.
Wherein, the wavelength optimum of dtmf signal is 100ms in the step (4), and the time interval optimum between dtmf signal is 200~300ms; End signal in the step (5) can be the terminating symbol that VOIP equipment to be measured and sound card server preset.
The test macro and the method for testing of detection VOIP equipment of the present invention need not artificial off-hook dialing, and the overall process of detection is finished automatically by test macro entirely, improved the efficient of test, and test macro is stable, is difficult for makeing mistakes, and is suitable for the test in the large-scale production process.
More than; only be preferred embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range that claim was defined.