Background technology
Along with the development of communication system, existing at present many communication technologys are used to provide session services, and these session services comprise plain old telephone service and internet voice protocol service.Plain old telephone service has been general to be used for call routine communication partially, and telephone set is connected to Public Switched Telephone Network (PSTN, PublicSwitched Telephone Network), and the user can enjoy plain old telephone service.A kind of agreement of utilizing open network (Network) transmission audio and video of internet voice protocol, the voice signal that utilizes package (Packet) to change provides session services, just as using network transmission information.Voice real-time Transmission on the network can utilize traditional phone line to be connected to internet (Internet), no matter get to any one corner in the world, therefore the person can save many telephone chargess as long as burden expenses of surfing Internet and local telephone take.
But the communication quality of internet voice protocol phone is also stable not as the plain old telephone service phone, and in the device that session services is provided on the market, can't be with the incoming call of same telephone set processing from Public Switched Telephone Network and internet voice protocol telephone network, therefore can't provide the user to answer Public Switched Telephone Network phone and internet voice protocol phone respectively with same telephone set, and must use two different telephone sets to realize, this will cause user's inconvenience.
In view of this, main purpose of the present invention is to propose a kind of method of digital subscriber line modem processes incoming call, and the method that this processings is sent a telegram here makes the digital subscriber line modulator-demodulator can handle incoming call from Public Switched Telephone Network and internet voice protocol telephone network respectively.
Another object of the present invention is to propose a kind of digital subscriber line modulator-demodulator, it uses the method for above-mentioned processing incoming call, this digital subscriber line modulator-demodulator can allow the user utilize same telephone set to answer internet voice protocol phone and internet voice protocol phone, to increase the convenience that uses.
Summary of the invention
For achieving the above object, the invention provides the method for a kind of digital subscriber line modem processes incoming call, be used for a digital subscriber line modulator-demodulator that is connected to a Public Switched Telephone Network and an internet voice protocol telephone network.At first, utilize the digital subscriber line modulator-demodulator to receive Public Switched Telephone Network incoming call or internet voice protocol incoming call.When the incoming call that receives is the Public Switched Telephone Network incoming call, control a switching device shifter so that a telephone set that is connected in the digital subscriber line modulator-demodulator is connected to Public Switched Telephone Network.When the incoming call that receives is the internet voice protocol incoming call, control switch device is to be connected to telephone set the internet voice protocol telephone network, wherein this telephone set is connected to the step of Public Switched Telephone Network, comprises following substep: whether detect this telephone set in an idle condition; Non-for idle condition during at an engaged line state when this telephone set, the digital subscriber line modulator-demodulator sends a phone waits information to this telephone set; And when the tandem signal that receives from this telephone set, control this switching device shifter this telephone set is connected to Public Switched Telephone Network, so that this incoming call is directed at this telephone set, wherein this telephone set is connected to the step of internet voice protocol telephone network, comprises following substep: whether detect this telephone set in an idle condition; Non-for idle condition during at an engaged line state when this telephone set, the digital subscriber line modulator-demodulator sends a phone waits information to this telephone set; And when the tandem signal that receives from this telephone set, control this switching device shifter this telephone set is connected to the internet voice protocol telephone network, so that this incoming call is directed at this telephone set.In addition, when the digital subscriber line modulator-demodulator when the same time receives Public Switched Telephone Network incoming call and internet voice protocol incoming call, according to a priority preset, and control switch device with telephone set is connected to Public Switched Telephone Network or internet voice protocol telephone network one of them.
The method that cooperates above-mentioned processing dialing, the present invention proposes a kind of digital subscriber line modulator-demodulator in addition, and it comprises: one first receiving port, one second receiving port, a telephone set connectivity port, a checkout gear, a switching device shifter and a processing unit.First receiving port is used to connect a Public Switched Telephone Network to receive Public Switched Telephone Network incoming call.Second receiving port is used to connect an internet voice protocol telephone network to receive internet voice protocol incoming call.The telephone set connectivity port is used to connect a telephone set.Checkout gear is connected with described second receiving port with described first receiving port, when being used for sending a telegram here when Public Switched Telephone Network is sent a telegram here or in the internet, detecting this telephone set and whether is in idle condition.Switching device shifter is used for optionally telephone set being connected to Public Switched Telephone Network or internet voice protocol telephone network.Processing unit is used for the testing result according to described checkout gear, when the digital subscriber line modulator-demodulator receives Public Switched Telephone Network incoming call, control switch device is to be connected to Public Switched Telephone Network with telephone set, and when the digital subscriber line modulator-demodulator received internet voice protocol incoming call, control switch device was to be connected to telephone set the internet voice protocol telephone network.
Wherein processing unit also comprises: a priority control apparatus, in order at the digital subscriber line modulator-demodulator when the same time receives Public Switched Telephone Network incoming call and internet voice protocol incoming call, make processing unit according to a priority preset, and control switch device with telephone set is connected to Public Switched Telephone Network or internet voice protocol telephone network one of them.
For above and other objects of the present invention, feature and advantage can be become apparent, a preferred embodiment cited below particularly, and conjunction with figs. are described in detail as follows:
Description of drawings
The flow chart of the digital subscriber line modem processes incoming call of the 1a and the 1b figure expression embodiment of the invention.
Fig. 2 represents the calcspar of the digital subscriber line modulator-demodulator of the embodiment of the invention.
Fig. 3 represents to comprise the Organization Chart of communication system example of the digital subscriber line modulator-demodulator of Fig. 2.
Label declaration
200: the digital subscriber line modulator-demodulator; 202: the Public Switched Telephone Network receiving port;
204: the internet voice protocol receiving port; 206: switching device shifter;
208: the telephone set connectivity port; 210: processing unit;
212: priority control apparatus; 214: checkout gear; 214a: checkout gear; 214b: checkout gear
302,306,314: telephone set; 304: Public Switched Telephone Network;
310: the internet voice protocol telephone network;
312: known internet voice protocol terminal installation;
Embodiment
Fig. 1 a and 1b represent the flow chart of the digital subscriber line modem processes incoming call of the embodiment of the invention.Please also refer to Fig. 1 a and 1b, in this embodiment, the digital subscriber line modulator-demodulator can receive internet voice protocol incoming call earlier, and when the same time received Public Switched Telephone Network incoming call and internet voice protocol incoming call, switching device shifter can be connected to telephone set the internet voice protocol telephone network at the digital subscriber line modulator-demodulator.As shown in the figure, at first, the digital subscriber line modulator-demodulator receives internet voice protocol incoming call (step S101), and then, whether the checkout gear in the digital subscriber line modulator-demodulator can detect this telephone corresponding in an idle condition (on-hook) (step S102).When telephone corresponding during not in idle condition, be that telephone corresponding is when an engaged line state (off-hook), for example the user is using during Public Switched Telephone Network converses, the digital subscriber line modulator-demodulator can send a phone waits information (Waiting tone) to this telephone set (step S103), and behind a tandem signal (step S104) that receives from telephone set, flash-hook for example, just telephone set is connected to the internet voice protocol telephone network, incoming call is directed at telephone set (step S105) by the processing unit control switch device in the digital subscriber line modulator-demodulator.When this telephone corresponding during in idle condition, processing unit is with direct execution in step S105, and promptly control switch device is connected to the internet voice protocol telephone network with telephone corresponding, so that this incoming call is directed at telephone corresponding.
The user of telephone set can determine whether answer this phone at this moment, so whether the digital subscriber line modulator-demodulator can continue to detect this telephone corresponding at a busy condition (step S106), to determine whether the user has finished telephone communication.When telephone corresponding is not at busy condition, the digital subscriber line modulator-demodulator can judge whether new incoming call (step S107), when not having new incoming call, then finishes this flow process (step S108).When new incoming call, judge whether this incoming call is Public Switched Telephone Network incoming call (step S109), is internet voice protocol and sends a telegram here when this incoming call or not for Public Switched Telephone Network, so repeating step S102.
When this incoming call was sent a telegram here for Public Switched Telephone Network, whether the checkout gear in the digital subscriber line modulator-demodulator can detect this telephone corresponding in idle condition (on-hook) (step S110).When telephone corresponding during not in idle condition, be that telephone corresponding is when engaged line state (off-hook), the digital subscriber line modulator-demodulator can send phone waits information to this telephone set (step S111), and after receiving tandem signal (step S112) from telephone set, just telephone set is connected to Public Switched Telephone Network, incoming call is directed at telephone set (step S113) by the processing unit control switch device in the digital subscriber line modulator-demodulator.When this telephone corresponding during in idle condition, processing unit is with direct execution in step S113, and promptly control switch device is connected to Public Switched Telephone Network with telephone corresponding, so that this incoming call is directed at telephone corresponding.The user of telephone set can determine whether to answer this phone at this moment, so the digital subscriber line modulator-demodulator can detect this telephone corresponding, and whether oneself is answered (step S114), when telephone set is not answered, the digital subscriber line modulator-demodulator can judge whether internet voice protocol incoming call (step S115), if having internet voice protocol to send a telegram here then repeating step S102 this moment.If there is not the internet voice protocol incoming call, the digital subscriber line data can repeating step S114~whether oneself be answered to continue to detect this telephone corresponding.
Oneself is answered when telephone set, represent that promptly the user begins to carry out the Public Switched Telephone Network telephone communication, therefore whether the digital subscriber line modulator-demodulator can continue to detect this telephone corresponding at busy condition (step S116), to determine whether the user has finished telephone communication.When telephone corresponding not at busy condition, then the digital subscriber line modulator-demodulator can repeating step S107 judge whether new incoming call.
Fig. 2 represents the calcspar of the digital subscriber line modulator-demodulator of the embodiment of the invention.As shown in the figure, digital subscriber line modulator-demodulator 200 comprises: Public Switched Telephone Network receiving port 202, internet voice protocol receiving port 204, switching device shifter 206, checkout gear 214 (comprising checkout gear 214a and 214b), telephone set connectivity port 208 and processing unit 210.Public Switched Telephone Network receiving port 202 is used for connecting Public Switched Telephone Network (figure does not show, with reference to figure 3) to receive the Public Switched Telephone Network incoming call.Internet voice protocol receiving port 204 is used for connecting the internet voice protocol telephone network with receiving internet voice protocol incoming call (figure does not show, with reference to figure 3).The telephone set connectivity port is in order to connect telephone set (showing among the figure, with reference to figure 3), and the quantity of telephone set connectivity port is not limited to one, that is the telephone set that connects is not limited to one, but is example to be connected to a telephone set in this implements.Switching device shifter 206 is used for optionally telephone set being connected to Public Switched Telephone Network or internet voice protocol telephone network.When processing unit 210 is sent a telegram here in order to receive Public Switched Telephone Network at the digital subscriber line modulator-demodulator, control switch device 206 is to be connected to Public Switched Telephone Network with telephone set, when digital subscriber line modulator-demodulator receiving internet voice protocol was sent a telegram here, control switch device 206 was to be connected to telephone set the internet voice protocol telephone network.
Processing unit 210 comprises a priority control apparatus 212.Priority control apparatus 212 in order at the digital subscriber line modulator-demodulator when same time receives Public Switched Telephone Network incoming call and internet voice protocol incoming call, switching device shifter 206 can be connected to the internet voice protocol telephone network with telephone set, make processing unit 210 according to priority preset, and control switch device 206 with telephone set is connected to Public Switched Telephone Network or internet voice protocol telephone network one of them, in this embodiment, with control switch device 206 telephone set being connected to the internet voice protocol telephone network is example.Checkout gear 214a is in order to when incoming call is sent a telegram here for Public Switched Telephone Network, whether detect telephone set in idle condition, when telephone set during in idle condition, processing unit 210 control switch device 206 are connected to Public Switched Telephone Network with telephone set, so that incoming call is directed at telephone set, when telephone set non-for idle condition during at the engaged line state, send phone waits information to telephone set, when the tandem signal that receives from this telephone set, just control switch device 206 is connected to Public Switched Telephone Network with telephone set, so that incoming call is directed at telephone set.Checkout gear 214b is in order to when incoming call is sent a telegram here for internet voice protocol, whether detect telephone set in idle condition, when telephone set during in idle condition, processing unit 210 control switch device are connected to the internet voice protocol telephone network with telephone set, so that incoming call is directed at telephone set, when telephone set non-for idle condition during at the engaged line state, send phone waits information to telephone set, when the tandem signal that receives from telephone set, control switch device 206 is connected to the internet voice protocol telephone network with telephone set, so that incoming call is directed at telephone set.
Fig. 3 represents to comprise the Organization Chart of communication system example of the digital subscriber line modulator-demodulator of Fig. 2.As shown in the figure, the digital subscriber line modulator-demodulator 200 of Fig. 2 is connected to telephone set 302, and digital subscriber line modulator-demodulator 200 can connect many telephone sets simultaneously, but is example to be connected to a telephone set in this embodiment.Public Switched Telephone Network receiving port 202 in the digital subscriber line modulator-demodulator 200 is connected to Public Switched Telephone Network 304, and telephone set 306 is traditional telephone set, and it is connected to Public Switched Telephone Network 304.Internet voice protocol receiving port 204 in the digital subscriber line modulator-demodulator 200 is connected to internet voice protocol telephone network 310, telephone set 314 is internet voice protocol phones, and it is connected to internet voice protocol telephone network 310 by known internet voice protocol terminal installation 312.Digital subscriber line modulator-demodulator 200 by the embodiment of the invention, the user of telephone set 302 can answer the phone that the user from telephone set 306 dials by Public Switched Telephone Network 304, to carry out telephone communication, the user of telephone set 302 can answer the phone that the user from telephone set 314 dials by internet voice protocol telephone network 310, to carry out telephone communication.In other words, utilize modulator-demodulator 200 of the present invention, the user does not need to prepare the incoming call that two telephone sets receive PSTN 304 and internet voice protocol telephone network 310 respectively.
According to the above, utilize the method for processing incoming call of the present invention, the digital subscriber line modulator-demodulator can be handled the incoming call from Public Switched Telephone Network and internet voice protocol telephone network, therefore the user can answer Public Switched Telephone Network phone and internet voice protocol phone respectively with same telephone set, to reach the purpose that increases ease of use.
Though the present invention with preferred embodiment openly as above; right its is not in order to limit the present invention; any those skilled in the art; under the situation that does not break away from the spirit and scope of the present invention; can change and improvement, so protection scope of the present invention is as the criterion with the claim restricted portion that is proposed.