CN101437086B - System and method for implementing voice test - Google Patents

System and method for implementing voice test Download PDF

Info

Publication number
CN101437086B
CN101437086B CN2008102398516A CN200810239851A CN101437086B CN 101437086 B CN101437086 B CN 101437086B CN 2008102398516 A CN2008102398516 A CN 2008102398516A CN 200810239851 A CN200810239851 A CN 200810239851A CN 101437086 B CN101437086 B CN 101437086B
Authority
CN
China
Prior art keywords
cpe
digits
sound card
timer
tone testing
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
CN2008102398516A
Other languages
Chinese (zh)
Other versions
CN101437086A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008102398516A priority Critical patent/CN101437086B/en
Publication of CN101437086A publication Critical patent/CN101437086A/en
Application granted granted Critical
Publication of CN101437086B publication Critical patent/CN101437086B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a system for realizing a voice test, which comprises customer premise equipment (CPE), a voice test control unit and a voice card, wherein the voice test control unit is positioned inside the CPE and used for controlling interaction between the CPE and the voice card on the basis of detection of dual-tone multifrequency (DTMF) numbers, so as to realize the voice test. The invention also discloses a method for realizing the voice test. The method comprises: triggering the CPE to call the voice test control unit; and controlling the interaction between the CPE and the voice card by the voice test control unit on the basis of detection of the DTMF numbers so as to realize the voice test. By adoption of the system and the method, the voice test can be realized, the test procedure is normative, and the automation and the efficiency are high.

Description

A kind of tone testing realizes system and method
Technical field
The present invention relates to the tone testing technology, relate in particular in a kind of gateway access device and call out the tone testing realization system and method that control technology realizes tone testing by speech business.
Background technology
At present, based on the IP network evolution of Circuit-switched communication network forward based on packet switching, traditional communication network and data communication are progressively merged and have been become inexorable trend.Softswitch technology can be flexibly and is realized the intercommunication of existing PSTN net and Packet Switch Data Network effectively, with PSTN progressively to IP network evolution.Integrated Access Device or home gateway customer headend equipments (CPE) such as (HGW) is based on the user side access device under the network architecture of Softswitch technology.CPE still is the general name of gateway access device, and the user is linked in the Packet Switch Data Network by CPE, enjoys IP-based voice transfer (VoIP, VoiceOver IP) business.
When the gateway access device is CPE, adopt prior art, realize that in CPE the tone testing implementation method of tone testing comprises following several.First kind, beat function mutually by the interior lines that the voice platform instrument possesses, use artificial interior lines to beat function mutually to CPE and realize tone testing.Second kind, Devices to test is that CPE is registered in the soft switch, and CPE is directly carried out artificial tone testing.The not only lack of standardization but also not automation of the test process of these two kinds of methods.The third, the tone testing device by the outside carries out tone testing to CPE.Such as, be that the Chinese patent application of CN200510089861 is by being connected on the emulation telephone set referring to publication number, the manual calling test that CPE is carried out.The shortcoming of the third scheme is: the software of emulation telephone set is realized comparatively complicated, and increased the build process of test environment, can not be simply and flexibly to the FXS (FXS of CPE, Foreign Exchange Station) port and FXO (FXO, ForeignExchange Office) port carries out tone testing, is difficult to realize the automation of tone testing.Here, the FXS port is a downlink port, and the machine of generally answering the call, fxo port are uplink ports, generally connects the PSTN switch.In a word, adopt prior art all to need to get involved a large amount of manual interventions and could realize tone testing, prior art is the manual testing, causes that test process is lack of standardization, not automation and efficient is low.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of tone testing to realize system and method, can realize tone testing, and test process standard, automation and efficient height.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of tone testing realizes system, and this system comprises customer headend equipment CPE, tone testing control unit and sound card; Wherein,
CPE is used to call described tone testing control unit, notifies described sound card test beginning; Described CPE and sound card are mutual under the control of tone testing control unit, finish tone testing;
The tone testing control unit is positioned at described CPE inside, is used for realizing tone testing based on the detection of dual tone multi-frequency dtmf number being controlled mutual between described CPE and the described sound card; Control mutual between described CPE and the described sound card, realize that tone testing is specially: control described sound card and send the DTMF number to described CPE; CPE receives described DTMF number and returns described sound card and detect, and whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success; Otherwise, detect the tone testing failure;
Sound card, mutual with CPE under the control of described tone testing control unit after being used for testing beginning, finish tone testing.
Wherein, described CPE is a caller equipment, described tone testing control unit be used for the control operation that the FXS FXS port of CPE is carried out further be:
Described CPE sends ring from the described FXS port of trend, and described sound card detects ring stream and automatic off-hook; CPE detects the off hook signal of sound card and starts and collects the digits, and sound card sends the DTMF number to CPE; CPE receives described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure; CPE detects the sound card on-hook, finishes tone testing.
Wherein, described CPE is called equipment, described tone testing control unit be used for the control operation that the FXO fxo port of CPE is carried out further be:
Described CPE waits for the call request of described fxo port, and CPE detects ring stream and simulation off-hook; The CPE startup collects the digits, and described sound card detects the simulation off hook signal of CPE and sends the DTMF number to CPE; CPE receives described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects, and CPE simulates on-hook; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure, the end tone testing.
A kind of tone testing implementation method, this method comprises:
CPE calls the tone testing control unit, notifies sound card test beginning; Sound card sends the DTMF number to described CPE; CPE receives described DTMF number and returns described sound card and detect, and whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success; Otherwise, detect the tone testing failure.
Wherein, when described CPE was caller equipment, the tone testing operation that the FXS port of CPE is carried out specifically comprised:
A1, described CPE send ring from the described FXS port of trend, and described sound card detects ring stream and automatic off-hook;
A2, CPE detect the off hook signal of sound card and start and collect the digits, and sound card sends the DTMF number to CPE;
A3, CPE receive described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits;
When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure; CPE detects the sound card on-hook, finishes tone testing.
Wherein, among the described A2, further when collecting the digits, described startup starts the timer that collects the digits that is provided with, the time value of the described timer that collects the digits adopts default value, the time value of the perhaps described timer that collects the digits is provided with according to DTMF number duration, and the time value of the described timer that collects the digits is greater than the number of described DTMF number duration * all DTMF numbers;
Among the described A3, further according to the time value of the described timer that collects the digits, whether judging collects the digits finishes, and when surpassing the time value of the described timer that collects the digits, stops to receive the DTMF number.
Wherein, among the described A3, further in the described end that collects the digits, start number timer of sending out that is provided with, the time value of described number timer adopts default value, the time value of perhaps described number timer is provided with according to DTMF number duration, and the time value of described number timer is greater than described DTMF number duration;
Among the described A3, further according to the time value of described number timer, CPE returns the DTMF number that receives sound card one by one and detects, and when reaching the time value of described number timer, sends a DTMF number.
Wherein, when described CPE was called equipment, the tone testing operation that the fxo port of CPE is carried out specifically comprised:
B1, described CPE wait for the call request of described fxo port, and CPE detects ring stream and simulation off-hook;
B2, CPE startup collects the digits, and described sound card detects the simulation off hook signal of CPE and sends the DTMF number to CPE;
B3, CPE receive described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits;
When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects, and CPE simulates on-hook; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure, the end tone testing.
Wherein, among the described B1,, when the time value of the simulation off-hook timer that reaches setting, trigger the operation of described simulation off-hook further according to simulation off-hook timer simulation off-hook; Among the described B3,, when the time value of the simulation on-hook timer that reaches setting, trigger the operation of described simulation on-hook further according to simulation on-hook timer simulation on-hook.
Wherein, among the described B2, further when collecting the digits, described startup starts the timer that collects the digits that is provided with, the time value of the described timer that collects the digits adopts default value, the time value of the perhaps described timer that collects the digits is provided with according to DTMF number duration, and the time value of the described timer that collects the digits is greater than the number of described DTMF number duration * all DTMF numbers;
Among the described B3, further according to the time value of the described timer that collects the digits, whether judging collects the digits finishes, and when surpassing the time value of the described timer that collects the digits, stops to receive the DTMF number.
Wherein, among the described B3, further in the described end that collects the digits, start number timer of sending out that is provided with, the time value of described number timer adopts default value, the time value of perhaps described number timer is provided with according to DTMF number duration, and the time value of described number timer is greater than described DTMF number duration;
Among the described B3, further according to the time value of described number timer, CPE returns the DTMF number that receives sound card one by one and detects, and when reaching the time value of described number timer, sends a DTMF number.
Wherein, described tone testing further comprises: at least one road FXS port and at least one road fxo port are tested simultaneously, realized tone testing.
The present invention is integrated in the tone testing implementation procedure tone testing control unit of CPE inside; By order line input test command triggers CPE, CPE calls the tone testing control unit, thereby start to reach and finish the tone testing implementation procedure automatically, and based on to dual-tone multifrequency (DTMF, Dual Tone Multi-Frequency) detection of number, mutual between tone testing control unit control CPE and the sound card realized tone testing.
Adopt the present invention, control technology is called out in the speech business that has made full use of CPE, the tone testing implementation procedure is integrated in the tone testing control unit of CPE inside.The present invention only gets involved manual intervention when triggering CPE, promptly by order line input test order, under the control of tone testing control unit, automatically carry out the tone testing implementation procedure of standard afterwards, realized automatic tone testing to CPE, thereby, adopt test process standard of the present invention, automation and efficient height.Simultaneously, do not get involved outside tone testing device and finish tone testing to CPE owing to do not exist, need not additionally to build test environment, the present invention has just simplified test environment with respect to prior art.
And then, adopt the present invention not change the existing voice calling procedure, only the tone testing implementation procedure is integrated in the tone testing control unit of CPE inside, work as CPE so and call the tone testing implementation procedure that the tone testing control unit is promptly opened CPE inside, finishing the tone testing process, and just carry out the existing voice calling procedure during tone testing implementation procedure of closing CPE inside.Also can be understood as under the prerequisite of not destroying the existing voice platform, reached the effect that tone testing and normal voice are called out and deposited, not only realized multichannel FXS port and multichannel fxo port are carried out tone testing simultaneously, and do not influence the function that other port normal voice is called out, saved cost of investment.
Description of drawings
Fig. 1 is the composition structural representation of system of the present invention;
Fig. 2 is the realization flow schematic diagram of the inventive method;
Fig. 3 is a professional state of a control schematic diagram of the present invention;
Fig. 4 is the networking schematic diagram of test environment of the present invention.
Embodiment
Basic thought of the present invention is: the tone testing control unit that the tone testing implementation procedure is integrated in CPE inside; Trigger CPE, CPE calls the tone testing control unit, thereby starts and finish the tone testing implementation procedure automatically, and based on the detection to the DTMF number, and mutual between tone testing control unit control CPE and the sound card realized tone testing.
Be described in further detail below in conjunction with the enforcement of accompanying drawing technical scheme.
As shown in Figure 1, a kind of tone testing realizes system, and this system comprises CPE1, tone testing control unit 11 and sound card 2.Wherein, CPE1 calls tone testing control unit 11 after being used for triggering, and notifies sound card 2 test beginnings, and CPE1 and sound card 2 are mutual under the control of tone testing control unit 11, finish tone testing.Tone testing control unit 11 is positioned at CPE1 inside, be used for based on between the detection of DTMF number control CPE1 and the sound card 2 alternately, realize tone testing.After sound card 2 is used for the test beginning, mutual with CPE1 under the control of tone testing control unit 11, finish tone testing.
Here, tone testing control unit 11 is further used for controlling sound card 2 and sends the DTMF number to CPE1; CPE1 receives the DTMF number and returns sound card 2 and detect, and whether sound card 2 judgements are consistent with the DTMF number of sound card 2 transmissions from the DTMF number that CPE1 receives, if consistent, then detect the tone testing success; Otherwise, detect the tone testing failure.
Wherein, be under the caller equipment situation at CPE1, tone testing control unit 11 be used for the control operation that the FXS port of CPE1 is carried out further be: CPE1 sends ring from trend FXS port, and sound card 2 detects ring stream and automatic off-hook; CPE1 detects the off hook signal of sound card 2 and starts and collects the digits, and sound card 2 sends the DTMF number to CPE1; CPE1 receives the DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE1 returns the DTMF number that receives sound card 2 one by one and detects; Whether sound card 2 judgements are consistent with the DTMF number of sound card 2 transmissions from the DTMF number that CPE1 receives, if consistent, then detect the tone testing success, otherwise, detect the tone testing failure; CPE1 detects the sound card on-hook, finishes tone testing.
Wherein, be under the called equipment situation at CPE1, tone testing control unit 11 be used for the control operation that the fxo port of CPE1 is carried out further be: CPE1 waits for the call request of fxo port, and CPE1 detects ring stream and simulation off-hook; The CPE1 startup collects the digits, and sound card 2 detects the simulation off hook signal of CPE1 and sends the DTMF number to CPE1; CPE1 receives the DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE1 returns the DTMF number that receives sound card 2 one by one and detects, and CPE1 simulates on-hook; Whether sound card 2 judgements are consistent with the DTMF number of sound card 2 transmissions from the DTMF number that CPE1 receives, if consistent, then detect the tone testing success, otherwise, detect the tone testing failure, the end tone testing.
As shown in Figure 2, a kind of tone testing implementation method, this method comprises:
Step 101, by order line input test command triggers CPE, CPE calls the tone testing control unit, notifies sound card test beginning.
Here, the tone testing implementation procedure is integrated in the tone testing control unit of CPE inside.Owing to do not change the existing voice calling procedure, only the tone testing implementation procedure is integrated in the tone testing control unit of CPE inside, the speech business that has made full use of CPE is called out control technology and has been realized controlled function to the tone testing process.Be: directly utilize the CPE existing resources, by the tone testing control unit that increases at CPE existing voice call control layer, and the tone testing implementation procedure is integrated in the tone testing control unit, carry out the tone testing of FXS port and fxo port by this tone testing control unit control CPE existing resource management level.Call the tone testing implementation procedure that the tone testing control unit is promptly opened CPE inside as CPE so, finishing the tone testing process, and just carry out the existing voice calling procedure during tone testing implementation procedure of closing CPE inside.Also can be understood as under the prerequisite of not destroying the existing voice platform, reached the effect that tone testing and normal voice are called out and deposited.
Here, at test command, in order to realize the needs of automatic test, need issue test command to CPE at first, follow-up control is finished automatically by CPE and sound card.Below provided the form that triggers the test command of tone testing implementation procedure.
The form of test command is: [vt] [test mode] [begin port] [end port].Comprise vt, test mode, begin port and four parameters of end port in the form of this test command, wherein, vt represents tone testing; Test mode represents the test of fxo port or FXS port; Begin port is the beginning port of fxo port or FXS port test; End port is the end port of fxo port or FXS port test.Table 1 is for triggering the test command of tone testing implementation procedure, and is as shown in table 1, listed four parameters that relate in the test command form from top to bottom successively.
Figure GSB00000507657900081
Table 1
Step 102, based on detection to the DTMF number, mutual between tone testing control unit control CPE and the sound card realized tone testing.
Here, realize that based on the detection to the DTMF number processing procedure of tone testing is specially: sound card sends the DTMF number to CPE; CPE receives the DTMF number and returns sound card and detect, and whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success; Otherwise, detect the tone testing failure.
Wherein, the DTMF number that sound card sends to CPE should be consistent with the DTMF number that CPE receives from sound card, but, because the number of losing phenomenon might appear in CPE when receiving or send the DTMF number, that is to say that the DTMF number that DTMF number that the subsequent voice card receives from CPE and sound card send to CPE at first might be inconsistent, therefore, need to introduce test point and detect, so that detect the tone testing success or not.Here, detect the DTMF number that receives from CPE and whether be a test point with the DTMF number consistent location that sound card sends.
When CPE is caller equipment or called equipment, realize that the processing procedure of tone testing also comprises: multichannel FXS port and multichannel fxo port are tested simultaneously, realized tone testing.Below the test of one road FXS port and one road fxo port is set forth respectively.
First kind of situation, when CPE is caller equipment, the processing procedure of the realization tone testing that the FXS port of CPE is carried out specifically comprises:
Step 201, CPE send ring from trend FXS port, and sound card detects ring stream and automatic off-hook.
Step 202, CPE detect the off hook signal of sound card and start and collect the digits, and sound card sends the DTMF number to CPE.
Step 203, CPE receive the DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure; CPE detects the sound card on-hook, finishes tone testing.
Here, for the needs of automatic test, need to be provided with collect the digits a timer and a number timer.So at the timer that collects the digits, in the step 202, further when collecting the digits, startup starts the timer that collects the digits that is provided with, the time value of timer of collecting the digits adopts default value, the time value of timer of perhaps collecting the digits is provided with according to DTMF number duration, and the time value of the timer that collects the digits is greater than the number of DTMF number duration * all DTMF numbers.Then in the step 203, further according to the time value of the timer that collects the digits, whether judging collects the digits finishes, and when surpassing the time value of the timer that collects the digits, stops to receive the DTMF number.
At sending out number timer, in the step 203, further in the end that collects the digits, start number timer of sending out that is provided with, the time value of sending out number timer adopts default value, perhaps the time value of the number of sending out timer is provided with according to DTMF number duration, and the time value of a number timer is greater than DTMF number duration.Then in the step 203, further according to the time value of sending out number timer, CPE returns the DTMF number that receives sound card one by one and detects, and when reaching the time value of sending out number timer, sends a DTMF number.Specifically, when reaching the time value of sending out number timer, send first DTMF number, close a number timer after distributing a DTMF number at every turn, again create again and send out number timer, when reaching the time value of sending out number timer, give repeatedly one by one, all send up to the DTMF number and finish.
Here it is pointed out that the DTMF number has length, if send continuously, receiver side can not parse each DTMF number.A DTMF number duration of standard is 400ms normally, and its value depends on the needs of different testing standards, and here, the length of DTMF number own is 100ms, and the gap length between the DTMF number is 300ms.Because sending out number is that the DTMF number sends one by one, so, the time value of sending out number timer is set is greater than DTMF number duration, such as greater than 400ms.Default value can adopt 1s.The timer that collects the digits prevents to collect the digits overtime, if the DTMF number does not receive for a long time, receiver side thinks that the DTMF number loses, and does not just continue to wait for not received.The collect the digits time value of timer of setting is bigger than the number of DTMF number duration * all DTMF numbers.If it is 1s that the time value of a number timer is got default value, 20 DTMF numbers are arranged, it is 20s that the time value of the timer that then collects the digits is got default value.The tester can be by order line to sending out number timer and the timer setting that collects the digits.CPE provides such order that is provided with, and is not provided with and just gets default value.
Second kind of situation, when CPE is called equipment, the processing procedure of the realization tone testing that the fxo port of CPE is carried out specifically comprises:
Step 301, CPE wait for the call request of fxo port, and CPE detects ring stream and simulation off-hook.
Step 302, CPE startup collect the digits, and sound card detects the simulation off hook signal of CPE and sends the DTMF number to CPE.
Step 303, CPE receive the DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects, and CPE simulates on-hook; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure, the end tone testing.
Here, when CPE does called the setting, to simulate off-hook and simulation on-hook certainly, but not think to simulate at once off-hook and simulation on-hook, therefore,, simulation off-hook timer need be set trigger with simulation on-hook timer for the needs of automatic test.Simulation off-hook timer and simulation on-hook timer are a kind of friendly end modes that CPE finishes test, so just do not need the tester manually to finish test, have finished the automation of test.Two timers pass through that CPE provides order setting is set, default value can all be 5s.So, in the step 301,, when the time value of the simulation off-hook timer that reaches setting, trigger the operation of simulation off-hook further according to simulation off-hook timer simulation off-hook; In the step 301,, when the time value of the simulation on-hook timer that reaches setting, trigger the operation of simulation on-hook further according to simulation on-hook timer simulation on-hook.
Here, for the needs of automatic test, need to be provided with collect the digits a timer and a number timer.So at the timer that collects the digits, in the step 302, further when collecting the digits, startup starts the timer that collects the digits that is provided with, the time value of timer of collecting the digits adopts default value, the time value of timer of perhaps collecting the digits is provided with according to DTMF number duration, and the time value of the timer that collects the digits is greater than the number of DTMF number duration * all DTMF numbers.Then in the step 303, further according to the time value of the timer that collects the digits, whether judging collects the digits finishes, and when surpassing the time value of the timer that collects the digits, stops to receive the DTMF number.
At sending out number timer, in the step 303, further in the end that collects the digits, start number timer of sending out that is provided with, the time value of sending out number timer adopts default value, perhaps the time value of the number of sending out timer is provided with according to DTMF number duration, and the time value of a number timer is greater than DTMF number duration.Then in the step 303, further according to the time value of sending out number timer, CPE returns the DTMF number that receives sound card one by one and detects, and when reaching the time value of sending out number timer, sends a DTMF number.Specifically, when reaching the time value of sending out number timer, send first DTMF number, close a number timer after distributing a DTMF number at every turn, again create again and send out number timer, when reaching the time value of sending out number timer, give repeatedly one by one, all send up to the DTMF number and finish.
Here it is pointed out that the DTMF number has length, if send continuously, receiver side can not parse each DTMF number.A DTMF number duration of standard is 400ms normally, and its value depends on the needs of different testing standards, and here, the length of DTMF number own is 100ms, and the gap length between the DTMF number is 300ms.Because sending out number is that the DTMF number sends one by one, so, the time value of sending out number timer is set is greater than DTMF number duration, such as greater than 400ms.Default value can adopt 1s.The timer that collects the digits prevents to collect the digits overtime, if the DTMF number does not receive for a long time, receiver side thinks that the DTMF number loses, and does not just continue to wait for not received.The collect the digits time value of timer of setting is bigger than the number of DTMF number duration * all DTMF numbers.If it is 1s that the time value of a number timer is got default value, 20 DTMF numbers are arranged, it is 20s that the time value of the timer that then collects the digits is got default value.The tester can be by order line to sending out number timer and the timer setting that collects the digits.CPE provides such order that is provided with, and is not provided with and just gets default value.
Embodiment one: when CPE was caller equipment, the processing procedure of the realization tone testing that the FXS port is carried out may further comprise the steps:
Step 401, CPE send ring from trend FXS port, and send the caller identification number to the sound card that is connected on the FXS port.
Whether step 402, the sound card that is connected on the FXS port detect ring stream and automatic off-hook, detect the caller identification number and mate, and CPE detects the off hook signal of sound card and starts and collects the digits, and starts the timer that collects the digits that is provided with simultaneously.
Here, at detecting the caller identification number, sound card can detect and the display of calling number.So need be when test be opened, the tester respectively configures same caller identification number on CPE and sound card, after sound card detects ring stream and automatic off-hook, detect on the sound card the caller identification number whether with consistent the getting final product of caller identification number that receives from CPE.The caller identification number also can Use Defaults, and can certainly not detect the caller identification number, and here, the position whether detection caller identification number mates is an optional test point.In addition, the caller identification number can dispose by order line, so that test different caller identification numbers and tester's real needs.
Step 403, sound card send the DTMF number to CPE.
Here, the DTMF number that is used to detect can be 123456789*0#, and wherein # is an end mark.The DTMF number sends with dtmf signal.
Step 404, CPE receive the DTMF number, and whether the CPE judgement collects the digits finishes, and does not finish if collect the digits, and then continue to collect the digits, if collect the digits end, then start a number timer that is provided with, execution in step 405.
Here, when CPE receives # number in the DTMF number, determine the end that collects the digits.
Step 405, CPE return the DTMF number that receives sound card one by one and detect; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, execution in step 406; Otherwise, detect the tone testing failure, execution in step 406.
Here, CPE returns the DTMF number to the sound card detection with dtmf signal.
Step 406, CPE detect the sound card on-hook, finish tone testing.
Embodiment two: when CPE was called equipment, the processing procedure of the realization tone testing that fxo port is carried out may further comprise the steps:
Step 501, CPE wait for the call request of fxo port, detect ring stream.
Step 502, CPE detect ring stream, according to simulation off-hook timer simulation off-hook, and start the timer that collects the digits that collects the digits and be provided with.
Step 503, sound card detect the simulation off hook signal of CPE, send dtmf signal to CPE.
Here, the DTMF number that is used to detect can be 123456789*0#, and wherein # is an end mark.The DTMF number sends with dtmf signal.
Step 504, CPE receive the DTMF number, and whether the CPE judgement collects the digits finishes, and does not finish if collect the digits, and then continue to collect the digits, if collect the digits end, then start a number timer that is provided with, execution in step 505.
Step 505, CPE return the DTMF number that receives sound card one by one and detect, and CPE is according to simulation on-hook timer simulation on-hook.
Step 506, sound card judge that the DTMF number that receives from CPE is whether consistent with the DTMF number that sound card sends, if consistent, then detect the tone testing success, finish tone testing; Otherwise, detect the tone testing failure, finish tone testing.
Here, CPE returns the DTMF number to the sound card detection with dtmf signal.
As shown in Figure 3, Fig. 3 is a professional state of a control schematic diagram of the present invention, comprises four kinds of states among Fig. 3, and wherein, idle condition is an initial condition, and this fashion does not trigger the tone testing process, the current ordinary call state of a control that is in; The call through state is that the tone testing process triggers, and enters the tone testing process; The conversation Number Receiving Status is the process that CPE receives the DTMF number of sound card transmission; It is the process that CPE returns to the DTMF number that receives sound card that number state is sent out in conversation.
As shown in Figure 4, Fig. 4 comprises among Fig. 4: a plurality of test computers, a sound card, a plurality of Devices to tests, a switch for the networking schematic diagram of test environment of the present invention; Multichannel FXS port and multichannel fxo port.Wherein, Devices to test is CPE.
Specifically, as shown in Figure 4, when multichannel FXS port and multichannel fxo port are tested simultaneously, each test computer links to each other with serial ports with each Devices to test, each test computer can open and cut out test by serial port command, and can some parameter values in the test be configured, such as the time value of each timer and caller identification number etc.Each test computer and sound card are interconnected by switch, and like this, each test computer just can receive the test result of sound card, and sound card has been configured.The FXS port that sound card can connect and the road number of fxo port are by the performance decision of sound card, and CPE supports multichannel FXS port and fxo port are tested simultaneously.
Tone testing process so is: a, each test computer notice sound card setup test; B, computer input test order, making each Devices to test is that CPE opens test, and the test of notice sound card is opened; During c, test are carried out; D, sound card send to each test computer to test result, if all FXS ports and fxo port are all tested success, CPE finishes test automatically, enters the normal call pattern; If some FXS port of e and fxo port test crash, whether the tester can test testing unsuccessful FXS port and fxo port again according to the test result decision, or input test the finish command finishes the current speech test.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (12)

1. a tone testing realizes system, it is characterized in that this system comprises customer headend equipment CPE, tone testing control unit and sound card; Wherein,
CPE is used to call described tone testing control unit, notifies described sound card test beginning; Described CPE and sound card are mutual under the control of tone testing control unit, finish tone testing;
The tone testing control unit is positioned at described CPE inside, is used for realizing tone testing based on the detection of dual tone multi-frequency dtmf number being controlled mutual between described CPE and the described sound card; Control mutual between described CPE and the described sound card, realize that tone testing is specially: control described sound card and send the DTMF number to described CPE; CPE receives described DTMF number and returns described sound card and detect, and whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success; Otherwise, detect the tone testing failure;
Sound card, mutual with CPE under the control of described tone testing control unit after being used for testing beginning, finish tone testing.
2. system according to claim 1 is characterized in that, described CPE is a caller equipment, described tone testing control unit be used for the control operation that the FXS FXS port of CPE is carried out further be:
Described CPE sends ring from the described FXS port of trend, and described sound card detects ring stream and automatic off-hook; CPE detects the off hook signal of sound card and starts and collects the digits, and sound card sends the DTMF number to CPE; CPE receives described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure; CPE detects the sound card on-hook, finishes tone testing.
3. system according to claim 1 is characterized in that, described CPE is called equipment, described tone testing control unit be used for the control operation that the FXO fxo port of CPE is carried out further be:
Described CPE waits for the call request of described fxo port, and CPE detects ring stream and simulation off-hook; The CPE startup collects the digits, and described sound card detects the simulation off hook signal of CPE and sends the DTMF number to CPE; CPE receives described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits; When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects, and CPE simulates on-hook; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure, the end tone testing.
4. a tone testing implementation method is characterized in that, this method comprises:
CPE calls the tone testing control unit, notifies sound card test beginning; Sound card sends the DTMF number to described CPE; CPE receives described DTMF number and returns described sound card and detect, and whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success; Otherwise, detect the tone testing failure.
5. method according to claim 4 is characterized in that, when described CPE was caller equipment, the tone testing operation that the FXS port of CPE is carried out specifically comprised:
A1, described CPE send ring from the described FXS port of trend, and described sound card detects ring stream and automatic off-hook;
A2, CPE detect the off hook signal of sound card and start and collect the digits, and sound card sends the DTMF number to CPE;
A3, CPE receive described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits;
When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure; CPE detects the sound card on-hook, finishes tone testing.
6. method according to claim 5, it is characterized in that, among the described A2, further when collecting the digits, described startup starts the timer that collects the digits that is provided with, the time value of the described timer that collects the digits adopts default value, the time value of the perhaps described timer that collects the digits is provided with according to DTMF number duration, and the time value of the described timer that collects the digits is greater than the number of described DTMF number duration * all DTMF numbers;
Among the described A3, further according to the time value of the described timer that collects the digits, whether judging collects the digits finishes, and when surpassing the time value of the described timer that collects the digits, stops to receive the DTMF number.
7. method according to claim 5, it is characterized in that, among the described A3, further in the described end that collects the digits, start number timer of sending out that is provided with, the time value of described number timer adopts default value, the time value of perhaps described number timer is provided with according to DTMF number duration, and the time value of described number timer is greater than described DTMF number duration;
Among the described A3, further according to the time value of described number timer, CPE returns the DTMF number that receives sound card one by one and detects, and when reaching the time value of described number timer, sends a DTMF number.
8. method according to claim 4 is characterized in that, when described CPE was called equipment, the tone testing operation that the fxo port of CPE is carried out specifically comprised:
B1, described CPE wait for the call request of described fxo port, and CPE detects ring stream and simulation off-hook;
B2, CPE startup collects the digits, and described sound card detects the simulation off hook signal of CPE and sends the DTMF number to CPE;
B3, CPE receive described DTMF number, and whether judging collects the digits finishes, and when not finishing when collecting the digits, continues to collect the digits;
When finishing when collecting the digits, CPE returns the DTMF number that receives sound card one by one and detects, and CPE simulates on-hook; Whether the sound card judgement is consistent with the DTMF number of sound card transmission from the DTMF number that CPE receives, if consistent, then detects the tone testing success, otherwise, detect the tone testing failure, the end tone testing.
9. method according to claim 8 is characterized in that, among the described B1, further according to simulation off-hook timer simulation off-hook, triggers the operation of described simulation off-hook when the time value of the simulation off-hook timer that reaches setting; Among the described B3,, when the time value of the simulation on-hook timer that reaches setting, trigger the operation of described simulation on-hook further according to simulation on-hook timer simulation on-hook.
10. method according to claim 9, it is characterized in that, among the described B2, further when collecting the digits, described startup starts the timer that collects the digits that is provided with, the time value of the described timer that collects the digits adopts default value, the time value of the perhaps described timer that collects the digits is provided with according to DTMF number duration, and the time value of the described timer that collects the digits is greater than the number of described DTMF number duration * all DTMF numbers;
Among the described B3, further according to the time value of the described timer that collects the digits, whether judging collects the digits finishes, and when surpassing the time value of the described timer that collects the digits, stops to receive the DTMF number.
11. method according to claim 9, it is characterized in that, among the described B3, further in the described end that collects the digits, start number timer of sending out that is provided with, the time value of described number timer adopts default value, the time value of perhaps described number timer is provided with according to DTMF number duration, and the time value of described number timer is greater than described DTMF number duration;
Among the described B3, further according to the time value of described number timer, CPE returns the DTMF number that receives sound card one by one and detects, and when reaching the time value of described number timer, sends a DTMF number.
12., it is characterized in that described tone testing further comprises: at least one road FXS port and at least one road fxo port are tested simultaneously, realized tone testing according to each described method in the claim 4 to 11.
CN2008102398516A 2008-12-19 2008-12-19 System and method for implementing voice test Expired - Fee Related CN101437086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102398516A CN101437086B (en) 2008-12-19 2008-12-19 System and method for implementing voice test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102398516A CN101437086B (en) 2008-12-19 2008-12-19 System and method for implementing voice test

Publications (2)

Publication Number Publication Date
CN101437086A CN101437086A (en) 2009-05-20
CN101437086B true CN101437086B (en) 2011-11-30

Family

ID=40711296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102398516A Expired - Fee Related CN101437086B (en) 2008-12-19 2008-12-19 System and method for implementing voice test

Country Status (1)

Country Link
CN (1) CN101437086B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610428B (en) * 2009-07-13 2012-01-04 厦门敏讯信息技术股份有限公司 Digital exchange test system, digital exchange and computer
CN104168183B (en) * 2014-08-12 2017-04-12 烽火通信科技股份有限公司 Home gateway and method and device capable of achieving flexible ringing with caller identifications
CN105471680A (en) * 2015-12-09 2016-04-06 上海斐讯数据通信技术有限公司 Network voice communication testing system and method
CN108540674B (en) * 2018-03-22 2020-12-29 平安科技(深圳)有限公司 Automatic testing method and device, computer equipment and storage medium
CN110401577B (en) * 2019-04-18 2021-04-20 广州市高科通信技术股份有限公司 Automatic testing method of voice switch, electronic equipment, storage medium and system
CN110300211B (en) * 2019-05-17 2021-10-12 合肥移瑞通信技术有限公司 Test method and system for automatically detecting uplink and downlink voice
CN111182163B (en) * 2019-11-25 2022-02-18 深圳震有科技股份有限公司 Automatic call test method and device, computer equipment and medium
CN113810245A (en) * 2021-09-01 2021-12-17 四川天邑康和通信股份有限公司 Multi-voice-port parallel automatic testing method for government-enterprise gateway

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1408156A (en) * 1999-10-05 2003-04-02 汤姆森许可公司 Components for providing voice and/or data service
CN1613235A (en) * 2002-01-11 2005-05-04 汤姆森许可公司 Method and system for voice traffic concentration in an ATM/DSL head-end network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1408156A (en) * 1999-10-05 2003-04-02 汤姆森许可公司 Components for providing voice and/or data service
CN1613235A (en) * 2002-01-11 2005-05-04 汤姆森许可公司 Method and system for voice traffic concentration in an ATM/DSL head-end network

Also Published As

Publication number Publication date
CN101437086A (en) 2009-05-20

Similar Documents

Publication Publication Date Title
CN101437086B (en) System and method for implementing voice test
CN1855960B (en) Automatic testing tool and method for MGCP mass traffic analog calling
CN102333163B (en) External auxiliary testing apparatus, and testing system thereof and method thereof
US8510416B2 (en) Communication links
CN103200469B (en) PON system access terminal realizes the method for ip voice service call emulation
CN101990040A (en) System and method for testing voice over internet protocol (VOIP) device
JP2004364301A5 (en)
CN100393086C (en) Digital SPC exchange built-in analog subscriber call testing system and method
CN101651753B (en) Calling control device and method for supporting circuit domain telephone and voice over IP
CN101222538B (en) Large scale call testing device and method
CN105721727A (en) Call forwarding method and apparatus
CN102984145A (en) Method for communicating with communication terminal with plurality of extension sets and communication device
CN105959453A (en) Multi-channel synchronous test VOIP test system and test method thereof
CN101834954A (en) Line detection apparatus and method for fixed phone
CN201893842U (en) Test system for detecting voice over internet phone (VOIP) device
WO2016202144A1 (en) Media channel testing method and device
Cisco Configuring the 8-Port FXS RJ21 Module
Cisco Configuring Trunk Connections and Conditioning Features
KR100443005B1 (en) Apparatus and method for multiple automatic test of internet gateway system
CN101969516A (en) Communication apparatus and control method thereof
JP2007027953A (en) Method for testing connection of ip telephone
CN100474869C (en) Transmission channel detecting method and calling control system
US6304655B1 (en) Signal capture for telecommunications switch
WO2006099251A9 (en) Method and system for generating a generic test plan for network based telephony systems
CN104202489A (en) Method for testing phone devices

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111130

Termination date: 20171219