The method of digital subscriber line modulator-demodulator and processing dialing thereof
Technical field
The present invention is relevant for a kind of digital subscriber line modulator-demodulator, a kind of method of handling dialing is particularly proposed, make the digital subscriber line modulator-demodulator can utilize Public Switched Telephone Network and internet voice protocol telephone network to transmit dialing respectively, by using this method, digital subscriber line modulator-demodulator of the present invention can allow the user use same telephone set to dial Public Switched Telephone Network (PSTN respectively, Public Switched Telephone Network) phone and internet voice protocol (VOIP, Voiceover Internet Protocol) phone.
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 generally is used for call routine communication, and telephone set is connected to Public Switched Telephone Network, and the user can enjoy plain old telephone service.Internet voice protocol is a kind of agreement of utilizing open Network Transmission audio and video, utilizes (Packet) voice signal of grouping that session services is provided, 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, all needs only burden expenses of surfing Internet and local telephone expense, therefore can save many telephone chargess.
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, only can handle the dialing of internet voice protocol phone, therefore the user can't use same telephone set to dial Public Switched Telephone Network phone and internet voice protocol phone respectively, and must use two different telephone sets to realize, this will cause user's inconvenience.
Summary of the invention
In view of this, main purpose of the present invention is to propose a kind of method of digital subscriber line modem processes dialing, and the method for this processing dialing makes the digital subscriber line modulator-demodulator can utilize Public Switched Telephone Network and internet voice protocol telephone network to transmit dialing 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 dialing, this digital subscriber line modulator-demodulator can allow the user utilize same telephone set branch to dial internet voice protocol phone and Public Switched Telephone Network phone, to increase the convenience that uses.
The invention provides a kind of method of user side digital subscriber line modem processes dialing, be used for a user side digital subscriber line modulator-demodulator that is connected to a Public Switched Telephone Network and an internet voice protocol telephone network, this method comprises the following steps: to utilize this digital subscriber line modulator-demodulator to receive one group of dialed number; Utilize this digital subscriber line modulator-demodulator to judge whether an internet voice protocol number marking is set; If this internet voice protocol number marking is set, utilize an internet voice protocol number string processor should organize dialed number and an internet voice protocol number mapping table compares processing; If this internet voice protocol number marking is not set, utilize a Public Switched Telephone Network number string processor should organize dialed number and a Public Switched Telephone Network number mapping table compares processing; When this group dialed number when this Public Switched Telephone Network number mapping table finds the dialing information of a correspondence, utilize this Public Switched Telephone Network to transmit this group dialed number; And when this group dialed number when this internet voice protocol number mapping table finds the dialing information of a correspondence, utilize this internet voice protocol telephone network to transmit this group dialed number.
The invention provides the method for a kind of digital subscriber line modem processes dialing, 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 the dialed number that one group of user dials.Then, utilize a Public Switched Telephone Network number string processor (PSTN digits tringprocessor) and an internet voice protocol number string processor (VOIP digit stringprocessor), should organize a dialed number and a Public Switched Telephone Network number mapping table (PSTNdigit map) and an internet voice protocol number mapping table (VOIP digit map) respectively and compare processing.When this group dialed number when Public Switched Telephone Network number mapping table finds the dialing information of a correspondence, utilize this Public Switched Telephone Network to transmit this group dialed number.When this group dialed number when this internet voice protocol number mapping table finds the dialing information of a correspondence, utilize this internet voice protocol telephone network to transmit the dialing of this group.
In addition, this Public Switched Telephone Network number mapping table preestablishes and is stored in this digital subscriber line modulator-demodulator by a user, and this internet voice protocol number mapping table is specified and is stored in this digital subscriber line modulator-demodulator by traffic agency.
The present invention proposes a kind of user side digital subscriber line modulator-demodulator, and it comprises: one first connectivity port is used to be connected to a private telephone exchange of Public Switched Telephone Network; One second connectivity port is used to be connected to the traffic agency of internet voice protocol telephone network; One Public Switched Telephone Network number mapping table; One internet voice protocol number mapping table; One Public Switched Telephone Network phone string processor, compare processing in order to one group of dialed number and this Public Switched Telephone Network number mapping table that this digital subscriber line modulator-demodulator is received, wherein when this Public Switched Telephone Network phone string processor finds the dialing information of a correspondence of this group dialed number in this Public Switched Telephone Network number mapping table, transmit this group dialed number to this Public Switched Telephone Network; An and internet voice protocol phone string processor, compared processing in order to should organize dialed number and this internet voice protocol number mapping table, wherein, when this internet voice protocol phone string processor finds the dialing information of a correspondence of this group dialed number in this internet voice protocol number mapping table, transmit this group dialed number to this internet voice protocol telephone network.
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 connectivity port, one second connectivity port, a Public Switched Telephone Network number mapping table, an internet voice protocol number mapping table, a Public Switched Telephone Network phone string processor and an internet voice protocol phone string processor.First connectivity port is used to be connected to a Public Switched Telephone Network.Second connectivity port is used to be connected to an internet voice protocol telephone network.Public Switched Telephone Network phone string processor compares processing in order to dialed number and the Public Switched Telephone Network number mapping table that one group of user that the digital subscriber line modulator-demodulator is received dials.When Public Switched Telephone Network phone string processor finds the dialing information of a correspondence of this group dialed number in Public Switched Telephone Network number mapping table, transmit this group dialed number to Public Switched Telephone Network.Internet voice protocol phone string processor was in order to should organize dialed number and internet voice protocol number mapping table compares processing.When internet voice protocol phone string processor finds the dialing information of a correspondence of this group dialed number in internet voice protocol number mapping table, transmit this group dialed number to the internet voice protocol telephone network.
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. is described in detail as follows:
Description of drawings
Fig. 1 represents the flow chart of first embodiment of digital subscriber line modem processes dialing of the present invention.
Fig. 2 represents the calcspar of the digital subscriber line modulator-demodulator of first embodiment of the invention.
Fig. 3 represents to comprise the structure chart of communication system example of the digital subscriber line modulator-demodulator of Fig. 2.
Fig. 4 represents the flow chart of second embodiment of digital subscriber line modem processes dialing of the present invention.
Symbol description
200: the digital subscriber line modulator-demodulator;
202: the Public Switched Telephone Network connectivity port;
204: internet voice protocol telephone network connectivity port;
206: Public Switched Telephone Network number mapping table;
208: internet voice protocol number mapping table;
210: Public Switched Telephone Network phone string processor;
212: internet voice protocol phone string processor;
302,310: the traffic agency;
304: the internet voice protocol terminal installation;
306,318,320: telephone set;
308: internet voice protocol telephone network (being Internet)
314: Public Switched Telephone Network;
312,316: the phone-specific switch;
322: gateway
Embodiment
The present invention discloses a kind of method of handling dialing, make the digital subscriber line modulator-demodulator can utilize Public Switched Telephone Network and internet voice protocol telephone network to transmit dialing respectively, the present invention also discloses a kind of digital subscriber line modulator-demodulator, it uses the method for above-mentioned processing dialing, therefore the user can use same telephone set to dial Public Switched Telephone Network phone and internet voice protocol phone respectively, person's defrayment capable of reducing using like this, take the stable of communication quality into account simultaneously, and reach the purpose that the present invention increases ease of use.Following conjunction with figs. describes embodiments of the invention in detail.
Fig. 1 represents the flow chart of first embodiment of digital subscriber line modem processes dialing of the present invention.As shown in the figure, at first, utilize the digital subscriber line modulator-demodulator to receive one group of dialed number (step S101).Then, utilize Public Switched Telephone Network number string processor should organize dialed number and Public Switched Telephone Network number mapping table compares processing (step S102).Judge whether this group dialed number finds corresponding dialing information (step S103) at Public Switched Telephone Network number mapping table, when this group dialed number when Public Switched Telephone Network number mapping table finds corresponding dialing information, utilize this Public Switched Telephone Network to transmit this group dialed number (step S104).When this group dialed number when Public Switched Telephone Network number mapping table can not find corresponding dialing information, utilize internet voice protocol number string processor should organize dialed number and internet voice protocol number mapping table compares processing (step S105).At last, find the dialing information of this group dialed number correspondence and utilize the internet voice protocol telephone network to transmit this group dialing (step S106) at internet voice protocol number mapping table.
Be noted that, in this embodiment, can utilize Public Switched Telephone Network number string processor will organize the digital subscriber line modulator-demodulator that dialed number and Public Switched Telephone Network number mapping table compare processing earlier is example, but in other embodiments of the invention, also can use and utilize internet voice protocol number string processor will organize the digital subscriber line modulator-demodulator that dialed number and internet voice protocol number mapping table compare processing earlier.
Please be simultaneously with reference to the 2nd and 3 figure.Fig. 2 represents the calcspar of the digital subscriber line modulator-demodulator of first embodiment of the invention.Fig. 3 represents to comprise the structure chart of communication system example of the digital subscriber line modulator-demodulator of Fig. 2.As shown in the figure, digital subscriber line modulator-demodulator 200 comprises: a Public Switched Telephone Network connectivity port 202, an internet voice protocol telephone network connectivity port 204, a Public Switched Telephone Network number mapping table 206, an internet voice protocol number mapping table 208, a Public Switched Telephone Network phone string processor 210 and an internet voice protocol phone string processor 212.Public Switched Telephone Network connectivity port 202 is used for by a phone-specific switch (PrivateBranch Exchange, PBX) 312 and be connected to Public Switched Telephone Network 314.Internet voice protocol telephone network connectivity port 204 is used for being connected to internet voice protocol telephone network 308 by traffic agency (Call Agent) 302.Internet voice protocol telephone network 308 can be communicated by letter with Public Switched Telephone Network 314 by gateway 322 again.In practical application, internet voice protocol number mapping table 208 can be set and act on behalf of 302 appointments by traffic and be stored in digital subscriber line modulator-demodulator 200 according to user's needs; 210 of Public Switched Telephone Network number mapping tables are preestablished and directly are stored in digital subscriber line modulator-demodulator 200 by the user.Leased-line modem 200 is connected to a telephone set 320, one group of dialing that reception is sent by telephone set 320, the telephone set that digital subscriber line modulator-demodulator 200 connects is not limited to one, when if the user applies for multi-thread internet voice protocol number to the internet voice protocol service provider, can connect many telephone sets, but in this implements, be example to be connected to a telephone set.Public Switched Telephone Network phone string processor 210 compares processing in order to one group of dialed number and Public Switched Telephone Network number mapping table 206 from telephone set 320 that the digital subscriber line modulator-demodulator is received.When Public Switched Telephone Network phone string processor 210 finds the dialing information of correspondence of this group dialed number in Public Switched Telephone Network number mapping table 206, utilize Public Switched Telephone Network connectivity port 202 should organize dialed number and spread out of.Internet voice protocol phone string processor 212 was in order to should organize dialed number and internet voice protocol number mapping table 208 compares processing.When internet voice protocol phone string processor 212 finds the dialing information of correspondence of this group dialed number in internet voice protocol number mapping table 208, utilize internet voice protocol telephone network connectivity port 204 should organize dialed number and send out.Telephone set 318 is traditional telephone set, its phone-specific switch 316 by its local side be connected to Public Switched Telephone Network 314.Telephone set 306 is the traffic agencies 310 that are connected to its local side by known internet voice protocol terminal installation 304, is connected to internet voice protocol telephone network 308 again.Digital subscriber line modulator-demodulator 200 by the embodiment of the invention, the user of telephone set 320 is optionally by Public Switched Telephone Network 314 or by internet voice protocol telephone network 308, and and the user of arbitrary telephone set 306 or 308 carry out telephone communication.
Fig. 4 represents the flow chart of second embodiment of digital subscriber line modem processes dialing of the present invention.In this embodiment, disclose and implement more detailed step of the present invention, and, dialing and Public Switched Telephone Network number mapping table that the digital subscriber line modulator-demodulator can utilize Public Switched Telephone Network number string processor to import earlier compare processing, and the dialing and the internet voice protocol number mapping table that utilize internet voice protocol number string processor to import again compare processing.As shown in the figure, at first, utilize digital subscriber line modulator-demodulator reception user also to deposit this dialed number in the dial string (step S401) from a dialed number of telephone set input.Then, the digital subscriber line modulator-demodulator can judge whether an internet voice protocol number marking sets (step S402) earlier, then direct execution in step S408 when the internet voice protocol number marking has been set.When the internet voice protocol number marking was not also set, the digital subscriber line modulator-demodulator can utilize Public Switched Telephone Network number string processor that dial string and Public Switched Telephone Network number mapping table are compared (step S403).Then, whether judgement finds the prefix (step S404) of the Public Switched Telephone Network number identical with this dial string in Public Switched Telephone Network number mapping table, when in Public Switched Telephone Network number mapping table, finding the prefix of the Public Switched Telephone Network number identical with this dial string, judge again whether this dial string is one group of complete Public Switched Telephone Network dialed number (step S405), when this dial string is one group of complete Public Switched Telephone Network dialed number, the digital subscriber line modulator-demodulator can utilize Public Switched Telephone Network to transmit this dial string (step S406), when if this dial string is not one group of complete Public Switched Telephone Network dialed number, repeating step S401.
When in Public Switched Telephone Network number mapping table, not finding the prefix of the Public Switched Telephone Network number identical with this dial string, the digital subscriber line modulator-demodulator can be established earlier and order this internet voice protocol number marking (step S407), utilizes internet voice protocol number string processor that this dial string and internet voice protocol number mapping table are compared processing (step S408) again.Then, judge whether to find the prefix (step S409) of the internet voice protocol number identical with this dial string at internet voice protocol number mapping table.When internet voice protocol number mapping table can not find the prefix of the internet voice protocol number identical with this dial string, utilize the digital subscriber line data to transmit a voice signal and inform user's mistake (step S410) that dials.When internet voice protocol number mapping table finds the prefix of the internet voice protocol number identical with this dial string, judge again whether this dial string is one group of complete internet voice protocol dialed number (step S411), when this dial string is one group of complete internet voice protocol dialed number, the digital subscriber line modulator-demodulator can utilize the internet voice protocol telephone network to transmit this dial string (step S412), when if this dial string is not one group of complete internet voice protocol dialed number, repeating step S401.
According to above-mentioned flow process, if the telephone number that the user dials is " 119 ", and in this example; " 119 " this group dialing is one group of dialed number; and have (the expression user wishes when dial this telephone number; should set up conversation by more stable Public Switched Telephone Network) in the Public Switched Telephone Network number mapping table according to user's setting; when the digital subscriber line modulator-demodulator receives the dialed number that the user imports from telephone set " 1 " time, execution in step S401, S402, S403, S404 and S405 in regular turn.When the digital subscriber line modulator-demodulator receives user's another dialed number from the telephone set input again " 1 " time, execution in step S401, S402, S403, S404 and S405 equally in regular turn, receive the dialed number of user when the digital subscriber line modulator-demodulator at last from telephone set input " 9 " time, execution in step S401, S402, S403, S404, S405 and S406 in regular turn.
According to the above, utilize the method for processing dialing of the present invention, the digital subscriber line modulator-demodulator can utilize Public Switched Telephone Network and internet voice protocol telephone network to transmit dialing respectively, so the user can use same telephone set to dial the Public Switched Telephone Network phone respectively or dials the internet voice protocol phone.The user can set up the dialing rule that meets its demand on their own, for example, the regular phone number is set up conversation with the lower internet voice protocol telephone network of expense, important and emergency number is then set up conversation with the more stable Public Switched Telephone Network of quality, not only can reduce the telephone charges defrayment and can take into account the conversation stability problem again, and only need use same telephone set to realize, can reach the purpose that the present invention 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.