Telephone service method for handover control and telephone service upstream gateway
Technical field
The present invention relates to the communications field, particularly to a kind of telephone service method for handover control and the up net of telephone service
Close.
Background technology
With the popularization of data network, increasing user has accessed data network, taking the Internet as a example, prior art
In family's wire structures general as shown in figure 1, the wideband Communication apparatus of user side are called client device
(CustomerPremises Equipment, abbreviation CPE) or home gateway (Home GateWay, abbreviation HGW).
CPE or HGW can be referred to as upstream gateway by the network function according to CPE or HGW, and according to multi-upstream access side
The difference of formula, can be divided into broadband upstream gateway, xDSL upstream gateway, light upstream gateway, wireless uplink gateway and Cable up
Gateway etc..
Such as, the up of broadband upstream gateway can be descending by the equipment interconnection of netting twine and telecommunication center office of operator
User side (Foreign can be exchanged to outgoing Fast Ethernet (Fast Ethernet, abbreviation FE) interface, USB, periphery
Exchange Station, abbreviation FXS) interface such as interface, WiMAX (wireless fidelity, abbreviation WIFI).
The operation principle of broadband upstream gateway communication equipment is to complete data compression in CPE interiors of products, up at present
By wan interface and the docking of telecommunication center office, data interaction can be completed;Descending WIFI interface can and notebook, mobile phone etc.
Equipment interconnection, realizes function of surfing the Net;Descending LAN interface can dock the equipment such as computer, setbox, realizes function of surfing the Net;Descending
USB interface, can hang printer or USB storage device, complete correlation function;Exchange user's side joint in the descending periphery of CPE
Mouthful (Foreign Exchange Station, abbreviation FXS) interface, can directly under hang up, electric by network inside CPE
Words processing unit completes the sampling of analogue signal, compression, package, changes into IP data signal, completes data interaction with local side apparatus,
Thus realizing traditional analog station terminal to dial Voice over IP (Voice over IP, abbreviation VoIP) phone.
In the same manner, descending also can the carrying down of light upstream gateway, wireless uplink gateway and Cable upstream gateway is hung up
FXS interface, in order to realize voice over ip feature.Therefore more and more user can be real using the VoIP business of data interconnection net offer
Existing call function.
Public switched telephone network (Public Switched Telephone Network, abbreviation PSTN) is a kind of with mould
Circuit-switched network based on plan technology, and PSTN business is also substantially to have come into the ripe telephone industry of huge numbers of families at present
Business, and substantially all it has been laid with telephone network in each user side, such as in each room, there is extension set, have always in parlor
Machine etc., PSTN business mainly realize by the Wired access mode such as used external telephone wire.
Therefore for the data network subscriber using upstream gateway, in user side except drawing from telecommunication center office of operator
It is also possible to there is the external telephone wire of PSTN or xDSL business introducing outside the netting twine entering, in family, telephony service system may be directly
In the middle of user's wall, wiring, then pulls out interface in not chummery.
In the prior art, if only having opened data service in user family and not opened the plain old telephone service of PSTN
Words, then the phone set terminal that the descending FXS interface of only HGW is hung can complete telephony feature, and the phone set terminal that this FXS interface is hung
It is only limitted to VoIP business;And the phone in other rooms can not complete telephony feature.If it is intended to the phone set terminal in other rooms is real
Existing telephony feature, then need to be connected these phone set terminals respectively with the descending FXS interface of HGW.Like this it is necessary to user
In family, existing telephone system wiring is modified.
If opened the plain old telephone service of data service and PSTN in user family simultaneously, PSTN business data industry
Business is routed in different rooms respectively, then now, the phone hung under FXS interface can only use VoIP business, under PSTN business
Other room calls can only use PSTN business, now if it is intended to the phone under FXS interface uses PSTN business, or wants
Phone under PSTN business uses VoIP business it is necessary to changing the connection of phone, changing telephone system wiring.
In carrying out research process of the present invention, inventor finds prior art, and at least there are the following problems:Using with FXS
The user of the gateway of interface, uses when wanting the phone under FXS interface to realize the phone under PSTN business or PSTN business
It is necessary to change the telephone wire system in user family during VoIP business, and the use inconvenience producing, the problem of troublesome poeration.
Content of the invention
Present invention aim at providing a kind of telephone service method for handover control and telephone service upstream gateway, to realize no
On the basis of the telephone wire layout between existing phone need to be changed it is ensured that each phone set terminal of user side all can achieve PSTN business and
VoIP speech business.
On the one hand, a kind of telephone service method for handover control that the present invention provides, is applied to the external telephone wire of gateway handoff
The pstn telephone business providing and the VoIP speech business of described gateway offer, described external telephone wire is fixedly connected with least one
Individual first phone set terminal, methods described includes:Gateway detects the voltage signal of external telephone wire;Gateway is according to described voltage signal
Determine and pstn telephone signal be whether there is on described external telephone wire;Electric when determining that described external telephone wire has described PSTN
During words signal, described in gateway control, the communications status between external telephone wire and described gateway are in communication off-state, with logical
Crossing described external telephone wire provides described pstn telephone business for described first phone set terminal;When determine described external telephone wire not
When there is described pstn telephone signal, described in gateway control, the communications status between external telephone wire and described gateway are in communication
Connection status, to provide described VoIP speech business by described gateway for described first phone set terminal.
On the other hand, the present invention also provides a kind of telephone service upstream gateway, and described gateway application is in switching pstn telephone
Business and VoIP speech business, described gateway includes:Network phone processing unit, detector unit, CPU, switch are single
Unit;Wherein, described network phone processing unit is set up with external telephone wire by described switch element and is communicated, for providing VoIP
Speech business;Described external telephone wire is communicated to connect with PSTN, puies forward the pstn telephone business of arch for receiving described PSTN, described
CPU is connected respectively with described switch element and described detector unit, and described external telephone wire is fixedly connected with least
One the first phone set terminal;Described detector unit is connected with described external telephone wire, for detecting the electricity of described external telephone wire
Pressure signal;Described CPU is used for being determined on described external telephone wire with the presence or absence of PSTN according to described voltage signal
Telephone signal, when determining that described external telephone wire has described pstn telephone signal, controls the communication shape of described switch element
State is in communication off-state, to provide described pstn telephone industry by described external telephone wire for described first phone set terminal
Business;When determining that described external telephone wire does not have described pstn telephone signal, control at the communications status of described switch element
In communication connection status, to provide described VoIP voice industry by described network phone processing unit for described first phone set terminal
Business.
The technical scheme being provided by the present invention, by detecting the voltage signal of external telephone wire, currently external to determine
Whether there is pstn telephone signal on telephone line, when there is not pstn telephone signal, external telephone wire being kept with gateway
Connect, so that voip phone function is realized for the offer of each phone set terminal by gateway, and when there is pstn telephone signal, by disconnected
Over answer the call the communications status of line and gateway, to provide pstn telephone business by external telephone wire for each phone set terminal, from
And guarantee all achievable PSTN business of each phone set terminal and the VoIP speech business of user side.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, also may be used
So that other accompanying drawings are obtained according to these accompanying drawings.
A kind of family wire structures schematic diagram that Fig. 1 provides for prior art;
A kind of telephone service control method for automatically switching schematic flow sheet that Fig. 2 provides for the embodiment of the present invention 1;
A kind of telephone service control method for automatically switching schematic flow sheet that Fig. 3 provides for the embodiment of the present invention 2;
A kind of telephone service control method for automatically switching schematic flow sheet that Fig. 4 provides for the embodiment of the present invention 3;
A kind of telephone service control method for automatically switching schematic flow sheet that Fig. 5 provides for the embodiment of the present invention 4;
Communication shape when telephone service upstream gateway 600 after a kind of improvement that Fig. 6 provides for the embodiment of the present invention 5 is implemented
State structural representation;
Communication shape when telephone service upstream gateway 700 after a kind of improvement that Fig. 7 provides for the embodiment of the present invention 6 is implemented
State structural representation;
Communication shape when telephone service upstream gateway 800 after a kind of improvement that Fig. 8 provides for the embodiment of the present invention 7 is implemented
State structural representation;
Communication shape when telephone service upstream gateway 900 after a kind of improvement that Fig. 9 provides for the embodiment of the present invention 8 is implemented
State structural representation;
Communication when telephone service upstream gateway 900 after a kind of improvement that Figure 10 provides for the embodiment of the present invention 9 is implemented
Status architecture schematic diagram.
Specific embodiment
To describe the present invention, the illustrative examples of the here present invention below in conjunction with accompanying drawing and specific embodiment in detail
And explanation is used for explaining the present invention, but not as a limitation of the invention.
Embodiment 1:
The user side of the present embodiment is provided with the gateway based on data service.
Also access external telephone wire in user side, one end of this external telephone wire and PSTN communication link
Connect, can be used to receive the pstn telephone business providing from PSTN, the other end of this external telephone wire is also solid
Surely it is connected with a phone set terminal (being designated as the first phone set terminal), or multiple phone set terminals are fixedly connected with (all by deconcentrator
It is designated as the first phone set terminal), in the present embodiment, if this first phone set terminal represents remain up fixing with external telephone wire
Machine terminal.
In the present embodiment, the other end of this external telephone wire is also connected on gateway, can be used to receive from net
The VoIP speech business providing is provided.In the present embodiment, gateway can be provided by the network phone processing unit in gateway
VoIP speech business.In the present embodiment, specifically, the other end of this external telephone wire can pass through an on-off circuit and net
The network phone processing unit communication connection in the Central Shanxi Plain.In the present embodiment, this on-off circuit can be built in gateway, Ke Yidan
Solely it is arranged between gateway and external telephone wire as a device.
In the case of not opening pstn telephone business in user, all phone set terminals all can use VoIP voice industry
Pragmatic existing call, and opening the situation of pstn telephone business, phone set terminal can be realized logical normally using pstn telephone business
Words, present embodiments provide the telephone service control method for automatically switching shown in Fig. 2.
Shown in Figure 2, a kind of telephone service control method for automatically switching mainly includes the steps:
Step 201:The voltage signal of the external telephone wire of real-time detection.
In the present embodiment, specifically, the voltage signal of the external telephone wire of gateway real-time detection can be passed through.
Step 202:Whether there is pstn telephone signal according in the determination of this voltage signal currently external telephone line.
In the present embodiment, can be, but not limited to can be external to determine this by the voltage signal on external telephone wire
Pstn telephone signal be whether there is on telephone wire.
In the present embodiment, if having opened PSTN business, phone set terminal in hook state, external telephone wire
In voltage signal between two lines be direct current signal, its magnitude of voltage is 48V;When phone set terminal is in off hook state, answer the call outward
Voltage signal between two lines of line is direct current signal, and its magnitude of voltage is more than 2V;When phone set terminal is in ringing condition, external
Voltage signal between two lines of telephone wire is AC signal, and the root-mean-square value of its voltage is more than 50V r ms, therefore can utilize
Following voltage detection method, whether there is pstn telephone signal to determine on this external telephone wire, so that it is determined that user is whether
Open PSTN business.
If detection finds that currently the voltage signal between two lines of external telephone wire is direct current signal, and its magnitude of voltage is
48V or be more than 2V, or detection finds that currently the voltage signal between two lines of external telephone wire is AC signal, and its electricity
The root-mean-square value of pressure is more than 50V r ms, then all determine currently there is pstn telephone signal on external telephone line, i.e. this use
Pstn telephone business has been opened at family;Otherwise, it determines currently there is not pstn telephone signal on external telephone wire, that is, this user does not open
Logical pstn telephone business.
In the present embodiment, if currently external telephone wire has pstn telephone signal, currently opened pstn telephone
Business, then execution step 203;If currently there is not pstn telephone signal, execution step 204 in external telephone wire.
Step 203:The communications status between external telephone wire and gateway are controlled to be in communication off-state.In the present embodiment
In, communications status include communicate off-state and communication connection status.
In the present embodiment, when determination there is currently pstn telephone signal, represent and opened pstn telephone business, then control
External telephone wire is in communication off-state with the communications status of gateway, is now connected to each phone set terminal of external phone line side
Pstn telephone business can be realized using the PSTN signal on external telephone wire respectively, realize call.And it is connected to outer answering the call
Now the communications status between gateway are the off-state that communicates to each phone set terminal of line side, thus, each phone set terminal is now not
Affected it is ensured that speech quality by network signal.
In the present embodiment, concrete implementation mode can be by the control unit (or CPU) in gateway to even
The on-off circuit being connected between external telephone wire and this gateway is controlled, and that is, controlling switch circuit is in communication off-state,
So that external telephone wire is in communication off-state with the communications status of gateway, so that fixation turns under external telephone wire
Each phone set terminal be now the off-state that communicates with the communications status of gateway, thus, each phone set terminal is not now believed by network
Number impact it is ensured that speech quality.
Further, communication off-state can be in by control unit controlling switch circuit, so that answering the call outward
The communications status of the network phone processing unit in line and gateway are in communication off-state, so that fixation turns on external electricity
Each phone set terminal under words line is now the off-state that communicates with the communications status of gateway, thus, each phone set terminal is not now subject to
The impact of network signal is it is ensured that speech quality.
Step 204:External telephone wire and the communications status of gateway are controlled to be in communication connection status.
In the present embodiment, concrete implementation mode can be by the control unit (or CPU) in gateway to even
The on-off circuit being connected between external telephone wire and this gateway is controlled, and that is, controlling switch circuit is in communication connection status,
So that external telephone wire is in communication connection status with the communications status of gateway, so that fixation turns under external telephone wire
Each phone set terminal can realize call function using the external real-time performance VoIP business of gateway respectively.
Further, further, communication connection status can be in by control unit controlling switch circuit, so that outward
The communications status of the network phone processing unit in line and gateway of answering the call are in communication connection status, so that fixation turns on
Each phone set terminal under external telephone wire is now communication connection status with the communications status of gateway, so that fixing connect outside
The each phone set terminal answered the call under line can realize call function using the external real-time performance VoIP business of gateway respectively.
When phone set terminal realizes voip phone business, signal flow is:Call phone set terminal is by local terminal user input
Voice analog signal sends to gateway, and this voice analog signal is switched to numeral letter by the network phone processing unit of intra-gateway
Number, then digital signal is sent to by network by call opposite end by gateway, to side, by the networking telephone in peer gateway
This digital signal is converted into after analogue signal processing unit, is transferred to the phone set terminal of opposite end, presents to use in the form of sound
Family, realizes call.
The operation principle of the network phone processing unit in gateway is as follows:It is defeated that network phone processing unit completes phone set terminal
The data processings such as the telephone analog signals sampling that enters, compression, package, send the digital signal after conversion to net by gateway
Network, is sent to the opposite end of call by network, and meanwhile, network phone processing unit is sent to this gateway to opposite end by network
Digital signal is converted to telephone analog signals, and is sent to the phone set terminal of local terminal, thus realizing VoIP voice call.
Therefore, due to using embodiment of the present invention technical scheme, need not be to each phone being already fixed to user side
With any repacking of external telephone wire, the voltage signal of the external telephone wire of real-time detection in application, can be passed through, be worked as with determining
Whether there is pstn telephone signal, when there is not pstn telephone signal, by external telephone wire and net on front external telephone line
Close and keep connecting, so that each phone set terminal being fixedly connected on external telephone wire all can be with access gateway, thus with by net
Close to provide for each phone set terminal and realize voip phone function, and when there is pstn telephone signal, by disconnecting external telephone wire
With the communications status of gateway, to disconnect the communications status of each phone set terminal answered the call outside on line and gateway, thus with
External telephone wire provides pstn telephone business for each phone set terminal logically, so that it is guaranteed that each phone set terminal of user side is all achievable
PSTN business and VoIP speech business.
To sum up, using embodiment of the present invention technical scheme it is achieved that voip phone business is compatible with PSTN business, maximum
The each phone of guarantee user side of limit all can achieve call function in all cases.
In order that the enforcement of embodiment of the present invention technical scheme is in further detail, the present inventor additionally provides following concrete reality
Apply reference.
Embodiment 2:
1 difference of the present embodiment and embodiment mainly includes:
In the present embodiment, also it is electrically connected with the second phone set terminal, the second phone set terminal and external telephone wire in gateway side
Connect, this external telephone wire and the second phone set terminal are connected by on-off circuit.
Shown in Figure 3, the method for the present embodiment comprises the following steps:
Step 301:The voltage signal of the external telephone wire of real-time detection.
With step 201 in embodiment in the same manner.
Step 302:Whether there is pstn telephone signal according in the determination of this voltage signal currently external telephone line.
In the present embodiment, if currently external telephone wire has pstn telephone signal, currently opened pstn telephone
Business, then execution step 303;If currently there is not pstn telephone signal, execution step 304 in external telephone wire.
Step 303:External telephone wire is controlled to be in the disconnection shape that communicates with the communications status of gateway and the second phone set terminal
State.
In this step, the second phone set terminal is connected with gateway, has network phone processing unit respectively in each gateway,
Therefore VoIP business realizing call function can be used using gateway, and external the first phone set terminal 1 answered the call outside on line the
One phone set terminal 2 can use PSTN business realizing call function respectively.I.e. all phone set terminals all can achieve call function.
Step 304:The communications status between external telephone wire and gateway are controlled to be in communication connection status.
If current testing result is:Determine and there is currently no pstn telephone signal, that is, active user does not open PSTN
During telephone service, then carry out following circuit on-off and control:
External telephone wire and the communications status of gateway are controlled to be in communication connection status, now, external line of answering the call outside
On all first phone set terminal the 1,2 and second phone set terminals all can pass through gateway, at the networking telephone in gateway
Reason unit uses VoIP business realizing call function.I.e. all phone set terminals all can achieve call function.
Therefore, apply the present embodiment technical scheme, one second phone set terminal can be fixedly connected with gateway side
In the case of, from external telephone wire compatibility it is ensured that in the state of different, all phone set terminals of this user side all can achieve call
Interference-free between function, and talk business.
Embodiment 3:
1 difference of the present embodiment and embodiment mainly includes:
In the present embodiment, answer the call outside and be fixedly connected with the first phone set terminal 1, the first phone set terminal 2, in net on line
Shut and be electrically connected with the second phone set terminal, this second phone set terminal passes through on-off circuit with the network phone processing unit in gateway
Connect, and be connected by on-off circuit with external telephone wire.
Shown in Figure 4, the method for the present embodiment mainly includes the following steps that:
Step 401:The voltage signal of the external telephone wire of real-time detection, determines and currently whether there is on external telephone line
Pstn telephone signal.
With step 201 in embodiment 1 in the same manner.
Step 402:If currently external telephone wire has pstn telephone signal, currently open pstn telephone business,
Then execution step 403;Otherwise execution step 404.
Step 403:Control external telephone wire with gateway between communications status be in and communicate outside off-state, control the
Two phone set terminals are in communication off-state with the communications status of gateway, control the communication of the second phone set terminal and external telephone wire
State is in communication connection status.
If in step 401,402 according to current testing result being:Determine and there is currently pstn telephone signal, represent
Opened pstn telephone business, now by the process of this step, all of phone set terminal all and in gateway between communication shape
State is communication off-state, and that is, the communications status between the network phone processing unit in gateway are the off-state that communicates, institute
Some phone set terminals are all connected with the communications status of external telephone wire, and each phone set terminal can be using PSTN business realizing call work(
Energy.
Step 404:Control the communications status between external telephone wire and gateway to be in communication connection status, control the second words
Machine terminal is in communication connection status with the communications status of gateway.
If current testing result is:Determine and there is currently no pstn telephone signal, that is, active user does not open PSTN
During telephone service, then carry out the process of this step, now, all phone set terminals are all electrically connected with gateway, net can be utilized respectively
The network phone processing unit in the Central Shanxi Plain and gateway external real-time performance VoIP business, realize call function.
Therefore, apply the present embodiment technical scheme, in gateway side, the second phone can be connected with by on-off circuit
In the case of terminal, from external telephone wire compatibility it is ensured that in the state of different, all phone set terminals of this user side all can be real
Existing call function, and interference-free between talk business.
Embodiment 4:
The present embodiment is identical with the part annexation of embodiment 3:Answer the call outside and be fixedly connected with the first phone on line
Terminal 1, the first phone set terminal 2, are electrically connected with the second phone set terminal on gateway, and this second phone set terminal passes through switch with gateway
Circuit connects, and this second phone set terminal is connected with the network phone processing unit in gateway, and passes through to open with external telephone wire
Close circuit to connect.
Shown in Figure 5, the present embodiment method mainly includes the following steps that:
Step 501:The voltage signal of the external telephone wire of real-time detection, determines and currently whether there is on external telephone line
Pstn telephone signal.
With step 201 in embodiment 1 in the same manner.
Step 502:If currently external telephone wire has pstn telephone signal, currently open pstn telephone business,
Then execution step 403;Otherwise execution step 504.
Step 503:Control the communications status between external telephone wire and gateway to be in communication off-state, control the second words
Communications status between machine terminal and gateway are in communication connection status, control between the second phone set terminal and external telephone wire
Communications status are in communication off-state.
Being in embodiment 4 slightly without in this step of this step:
If in step 501,502 according to current testing result being:Determine and there is currently pstn telephone signal, represent
Open pstn telephone business, now by the process of this step, now:
The first phone set terminal 1,2 with the constant connection of external telephone wire is the disconnection shape that communicates all with the communications status of gateway
State, is connected disconnection with the network phone processing unit in gateway, and the first phone set terminal 1,2 can be led to using PSTN business realizing
Words function;
And the second phone set terminal is in communication off-state, with the communication shape in gateway with the communications status of external telephone wire
State is communication connection status, thus the second phone set terminal can realize VoIP industry using the network phone processing unit in gateway
Business, and irrelevant with the pstn telephone signal of external telephone wire disturb.
I.e. now all phone set terminals of user side all can realize call function.
Step 504:Control the communications status between external telephone wire and gateway to be in communication connection status, control the second words
Communications status between machine terminal and gateway are in communication connection status.
In the process of this step and embodiment 3 step 404 in the same manner, now, the communication shape all with gateway for all phone set terminals
State is communication connection status, thus can be processed single respectively using the networking telephone in gateway using all phone set terminals
Unit, to realize VoIP business, realizes call function.
Therefore, apply the present embodiment technical scheme, in gateway side, the second phone can be connected with by on-off circuit
In the case of terminal, from external telephone wire compatibility it is ensured that in the state of different, all phone set terminals of this user side all can be real
Existing call function, and interference-free between talk business.
It should be noted that the first phone set terminal 1, the first phone set terminal 2 are fixedly connected with line of answering the call outside, in net
Shut and be electrically connected with the second phone set terminal, this second phone set terminal passes through on-off circuit with the network phone processing unit in gateway
Connect, and in the situation being connected by on-off circuit with external telephone wire, also can be whole to being connected to the second phone by user
On-off circuit between network phone processing unit in end and gateway and between the second phone set terminal and external telephone wire
Manual switching and making is answered the call in the case that line has pstn telephone signal outside, optionally use VoIP business or
PSTN business.
Embodiment 5:
Fig. 6 show the communication shape when telephone service upstream gateway 600 after a kind of improvement of the present embodiment offer is implemented
State structural representation.
The telephone service upstream gateway 600 that the present embodiment provides mainly includes:Network uplink interface 601, central authorities process single
Unit 602, detector unit 603, network phone processing unit 604, switch element 605.
Communications status relation between the principle of each part and each part is as follows:
Network uplink interface 601 is the interface being connected with uplink network, and its up network can be for supporting VoIP business
Various networks, such as:Fast Ethernet or other by the communication network of fiber-optic transfer or wireless network etc..Net
The network uplink interface 601 closing is adapted according to the uplink network of current docking, such as can be netting twine access port, or is light
Interface, wave point or Cable access port etc..
Network uplink interface 601 is used for realizing this gateway and the communication of network-side and signal is changed, such as can be by net
Home Network can also be closed central authorities by the downstream signal conversion cost gateway CPU 602 acceptable signal of network simultaneously
The upstream data that processing unit 602 sends is converted into the data signal that current uplink network is supported, so that network uplink interface 601
Transmit it to uplink network, and opposite end is transmitted it to by network.
CPU 602, with network uplink interface 601, network phone processing unit 604, detector unit 603 respectively
Electrical connection.
CPU 602 is Home Network main control unit inside the Pass, except routine is to can hang notebook, computer, mobile phone
Realize business of networking etc. and be controlled outer Deng equipment, Central Processing Unit 602 is additionally operable in the present embodiment:According to detector unit
603 testing result determines currently whether there is PSTN signal on external telephone wire, and according to determining result, controls further and open
Close the communications status of unit 605, with the control by the communications status to switch element 605, realize externally answering the call line and net
The communications status of the network phone processing unit 604 in the Central Shanxi Plain are controlled.In the present embodiment, the communications status bag of switch element
Include communication off-state and communication connection status, specifically:
When CPU 602 determines that currently external telephone wire has pstn telephone signal, CPU 602
The communications status of controlling switch unit 605 are in communication off-state, so that external telephone wire and network phone processing unit 604
Communications status be in communication off-state, i.e. make each phone set terminal (the first phone set terminal being fixedly connected with external telephone wire
1st, the second phone set terminal 2) it is in communication off-state with the communications status of network phone processing unit 604.Now, with external electricity
Each phone set terminal that words line is fixedly connected all can normally be realized pstn telephone business and not be subject to the shadow of the networking signal in gateway
Ring.
When CPU 602 determines that currently external telephone wire does not have pstn telephone signal, CPU
602 controlling switch units 605 are in communication connection status, so that the communication of external telephone wire and network phone processing unit 604
State is in communication connection status, i.e. make each phone set terminal (the first phone set terminal 1, second being fixedly connected with external telephone wire
Phone set terminal 2) it is in communication connection status with the communications status of network phone processing unit 604.Now, solid with external telephone wire
The fixed each phone set terminal connecting all can realize voip phone using network phone processing unit 604, normally realizes call function.
The voltage signal of the external telephone wire that CPU 602 obtains according to detector unit 603 detection, and determine and work as
The technical scheme that front external telephone wire whether there is pstn telephone signal can be, but not limited to retouching in detail in reference implementation example 1
State.
Detector unit 603, is electrically connected with external telephone wire, CPU 602, for the external electricity of real-time detection
The voltage signal of words line, after each testing result changes, or after each detection, testing result is inputted to central authorities
Processing unit 602.
Network phone processing unit 604, is electrically connected with CPU 602, switch element 605, is used for completing
The data processings such as the telephone analog signals sampling of phone set terminal input of call, compression, package, lead to the digital signal after conversion
Cross gateway to send to network, be sent to the opposite end of call by network, and, network phone processing unit 604 is passed through to opposite end
The digital signal that network is sent to this gateway is converted to telephone analog signals, and is sent to the phone set terminal of local terminal, thus realizing
VoIP voice call.
Switch element 605, is connected electrically between network phone processing unit 604 and external telephone wire, external for controlling
The break-make being connected between telephone wire and network phone processing unit 604.
When implementing to install, it is connected with one or more phone set terminal in the external phone line end of user side.
The operation principle of above-mentioned gateway 600 is as follows:The voltage signal of the external telephone wire of detector unit 603 real-time detection obtains
Testing result, and send detection to CPU 602 in real time, CPU 602 controls according to testing result to be opened
Close the communications status of unit 605, thus controlling the communications status of external telephone wire and network phone processing unit 604, thus reaching
The each phone set terminal being connected with external telephone wire to switching and the communications status of Home Network network phone processing unit 604 inside the Pass
Effect, detailed operation principle may refer to the description in embodiment 1.
Therefore, due to using embodiment of the present invention technical scheme, need not be to each phone being already fixed to user side
With any repacking of external telephone wire, the voltage signal of the external telephone wire of real-time detection in application, can be passed through, be worked as with determining
Whether there is pstn telephone signal, when there is not pstn telephone signal, by external telephone wire and net on front external telephone line
Close and keep connecting, so that each phone set terminal being fixedly connected on external telephone wire all can be with access gateway, thus with by net
Close to provide for each phone set terminal and realize voip phone function, and when there is pstn telephone signal, by disconnecting external telephone wire
With the communications status of gateway, to disconnect the communications status of each phone set terminal answered the call outside on line and gateway, thus with
External telephone wire provides pstn telephone business for each phone set terminal logically, so that it is guaranteed that each phone set terminal of user side is all achievable
PSTN business and VoIP speech business.
Perfect as this gateway conventional func, radio-cell 606, Ethernet processing unit can also be set in gateway
607th, USB unit 608, it is electrically connected with CPU respectively, and the control according to CPU carries out every business.
Radio-cell 606, also known as WIFI routing unit, for cable network signal is converted to wireless network signal, and
Externally send wireless network signal;
Too net processing unit 607, provides cable network signal for outwards connecing communication equipment, can be to outgoing quick ether
Network interface (Fast Ethernet, abbreviation FE) or thousand M Ethernet interfaces (Gigabit Ethernet, abbreviation GE), can be below
Hang apparatus such as computer, realize business of networking etc.
USB unit 608, provides USB interface for external, can hang printer or USB interface storage device below.
Make the function of gateway more powerful after increasing these units, improve the ease of use of user further.
Embodiment 6:
Shown in Figure 7, present embodiments provide a kind of enforcement structural representation of telephone service upstream gateway.
The communications status relation of the telephone service upstream gateway 700 of the present embodiment is same as Example 5, institute's difference,
This gateway 700 is additionally provided with a phone interface, can by the external phone set terminal of this phone interface (in the present embodiment
It is designated as the second phone set terminal), this second phone set terminal passes through switch element 705 and network phone processing unit 604 and external
Telephone wire electrically connects.
Now the operation principle of CPU 702 can be as follows:
When CPU 702 determines that currently external telephone wire has pstn telephone signal, CPU 702
Following option A can be executed it is also possible to execute following option b.
Option A:The communications status of CPU 702 controlling switch unit 705 are in communication off-state, so that with
The communication shape of the first phone set terminal 1, the first phone set terminal 2 and network phone processing unit 604 that external telephone wire is fixedly connected
State is in communication off-state, and makes the second phone set terminal and the communications status of network phone processing unit 604 be in communication
Off-state, makes the second phone set terminal and the communications status of external telephone wire be in communication connection status.The now institute of user side
There is phone set terminal (the first phone set terminal 1, the first phone set terminal 2, the second phone set terminal) all can realize pstn telephone business, and
Do not affected by network signal.
Option b:It is with option A institute difference:CPU 702 is passed through to control by switch element 705
Communications status are in communication off-state, control external telephone wire to process list with the networking telephone to realize CPU 702
The communications status of unit 604 are in communication off-state, control the communication shape of the second phone set terminal and network phone processing unit 604
State is in communication connection status, controls the second phone set terminal and the communications status of external telephone wire to be in communication off-state.This
When the first phone set terminal 1 of user side, the first phone set terminal 2, the second phone set terminal can realize pstn telephone business, and not be subject to
Network signal affects;Second phone set terminal can realize voip phone business, and is not affected by PSTN signal.Now, still
All phone set terminals all can realize call function.
When CPU 702 determines that currently external telephone wire does not have pstn telephone signal, CPU
702 execution:
CPU 702 is communication connection status by the communications status of controlling switch unit 705, to realize control
External telephone wire is in communication connection status with the communications status of network phone processing unit 604, and controls the second phone eventually
End is in communication connection status with the communications status of network phone processing unit 604.Now all phone set terminals (of user side
One phone set terminal 1, the first phone set terminal 2, the second phone set terminal) all can realize voip phone business.
The present embodiment the detailed description that may refer to embodiment 3,4 and embodiment 7 is described in further detail.
Embodiment 7:
Shown in Figure 8, present embodiments provide a kind of enforcement structural representation of telephone service upstream gateway.
Shown in Figure 8,6 differences of the up net of the present embodiment telephone service 800 and embodiment include:
The switch element 805 of the present embodiment includes:First switch K1, second switch K2.
First switch K1, the control end of second switch K2 are electrically connected with CPU 802 respectively, CPU
802 input control instruction to control end respectively and control the open and close switching of first switch K1, second switch K2.
The first terminal of first switch K1 is electrically connected with network phone processing unit 604, Second terminal and second switch K2
The first terminal and the phone interface being connected with the second phone set terminal jointly connect, that is, the second phone set terminal pass through first switch
K1 is connected with network phone processing unit 604.
The Second terminal of second switch K2 is electrically connected jointly with external telephone wire and detector unit 603, so detects single
Unit 603 can be detected by the voltage signal of line of externally answering the call and realize the voltage signal detection of line of externally answering the call.
The concrete operating principle of the present embodiment telephone service upstream gateway 800 is,
If CPU 802 determines according to the testing result of detector unit 603:Currently external telephone wire does not exist
Pstn telephone signal, then now only have the data service that network provides, and CPU 802 sends a control signal to the respectively
One switch K1, the control end of second switch K2, control first switch K1, the handover operation of the switch of second switch K2, control the
One switch K1, the communications status of second switch K2 are in communication connection status, that is, connect closure state.Now:Under hang over net
The second phone set terminal closing 800 FXS port processes list by first switch K1 being in communication connection status with the networking telephone
Unit 604 electrical connection, the first phone set terminal 1, the first phone set terminal 2 through being in communication connection status first switch K1, the
Two switch K2 and the second phone set terminal and network phone processing unit 604 connect jointly, and now all phone set terminals can
Dial voip phone.
With the first phone set terminal 1 as example, the upward signal business journey that now VoIP business sends is:First phone set terminal
1—>Filter 2>Filter 1>Second switch K2>First switch K1>Network phone processing unit 604>Central authorities
Processing unit 802>Network uplink interface>Network.Its descending signal service stream is against it.
If CPU 802 determines according to the testing result of detector unit 603:Currently external telephone wire exists
Pstn telephone signal, then CPU 802 can carry into execution a plan A it is also possible to the B that carries into execution a plan:
Option A:CPU 802 controls the communications status of second switch K2 to be in communication off-state, and first opens
The communications status closing K1 are in communication connection status.Now, the net of the first phone set terminal 1, the first phone set terminal 2 and gateway 800
The communications status of network telephone processing unit 604 are in communication off-state, and the first phone set terminal 1, the first phone set terminal 2 are currently only
Pstn telephone can directly be dialed, do not affected by the network signal in gateway;Meanwhile, the second phone set terminal and external telephone wire
Communications status are in communication off-state, are in communication connection status with the communications status of network phone processing unit 604, and second
Phone set terminal can dial voip phone, is not subject to the PSTN effect of signals of external telephone wire.
Option b:CPU 802 controls the communications status of first switch K1 to be in communication off-state, and controls
The communications status of second switch K2 are in communication connection status.Now, the first phone set terminal 1, the first phone set terminal 2, second are talked about
Machine terminal is in, with the communications status of the network phone processing unit 604 of gateway 800, the off-state that communicates, the first phone set terminal
1st, the first phone set terminal 2, the second phone set terminal currently all can directly dial pstn telephone, be not subject to the network signal shadow in gateway
Ring.
, PSTN business upward signal flow process is taking the first phone set terminal 1 as a example:First phone set terminal 1>Filter 2>
Telephone line distributor interface B>Telecommunication center office (Central Office, abbreviation CO);
In the present embodiment, can also be set or manual switching control first switch K1, second switch K2 by artificial
Switch, make the second phone set terminal in the presence of PSTN business and voip phone business are equal, optional any of which phone
Business, that is, the gateway 800 of the present embodiment possess PSTN escaping function, the unlatching of this PSTN escaping function by user as needed from
Selected by by artificial operation first switch K1, second switch K2.
One external separator 801 can also be set in the present embodiment, gateway is connected by this external separator 801
800 and external telephone wire, will be as shown in figure 8, comprising network uplink interface, CPU 802, detector unit
603rd, on gateway 800 housing of network phone processing unit 604, switch element, one four pin of setting are inserted and (are designated as the first socket
8011), two pins Pin3, Pin4 of the first socket 8011 inwardly draws telephone wire, and this telephone wire is opened with first in gateway 800
Close the first terminal electrical connection of K1, two pins Pin2, Pin1 of the first socket 8011 inwardly draw telephone wire, this telephone wire and net
Close the Second terminal of second switch K2 in 800 and detector unit 603 electrically connects jointly.
One four pin sockets mated with the first socket 8011 is provided with external separator 801 (be designated as second to insert
Seat 8012), two pins Pin3, Pin4 of the second socket 8012 are drawn telephone wire and are connected respectively with Pin3, Pin4 of the first pin;
Two pins Pin2, Pin1 of second socket 8012 is drawn telephone wire and is connected with filter 1, on filter 1 and external separator 801
Telephone wire socket connect, by the telephone wire deconcentrator of the telephone wire socket on telephone wire external separator 801 and outside,
Can be connected by the wiring of blocking and realize the communications status of external telephone wire and gateway 800, and realize:Not open-minded
During PSTN, arbitrary phone set terminal all can realize VoIP business, and when opening PSTN, the second phone set terminal can be according to user
Selection is realized PSTN business and also be can achieve VoIP business, and other phones all can achieve PSTN business.
Embodiment 8:
Shown in Figure 9, present embodiments provide a kind of enforcement structural representation of telephone service upstream gateway 900.
7 differences of the present embodiment and embodiment include:
Its switch element 905 is a switch in the present embodiment, is designated as the 3rd switch K3, the 3rd switch K3 and the second words
The communications status of machine terminal and CPU 902 are different.
The first terminal of the 3rd switch K3 is electrically connected with network phone processing unit 604, the Second terminal of the 3rd switch K3
The phone terminals being connected and external telephone wire electrically connect jointly with the second phone set terminal with detector unit 603, and at this moment second
Phone set terminal and the first phone set terminal 1 and the first phone set terminal 2 are in and machine state.Its operation principle is as follows:
If CPU 902 determines according to the testing result of detector unit 603:Currently external telephone wire exists
During pstn telephone signal, CPU 902 controls the communications status of the 3rd switch K3 to be in communication off-state, and now the
Two phone set terminals, the first phone set terminal 1, the first phone set terminal 2 are all disconnected with network phone processing unit 604, and with
External telephone wire connects (passing through filter 1, filter 2, filter 3 respectively), and now all phone set terminals can only dial PSTN
Phone, and do not affected by network signal.
If CPU 902 determines according to the testing result of detector unit 603:Currently external telephone wire does not exist
During pstn telephone signal, then CPU 902 controls the communications status of the 3rd switch K3 to be in communication connection status, thus
The second phone set terminal, the first phone set terminal 1, the first phone set terminal 2 is made to connect with network phone processing unit 604 respectively,
To realize VoIP business.
Based on above-mentioned without, when realizing the communications status of external telephone wire and gateway 900 using external separator, this
External separator 901 in embodiment is more simplified with embodiment 6,7, and its structure is as follows:
The present embodiment external separator 901 includes filter 1, is provided with the first telephony interface on external separator 901
9011st, the second telephony interface 9012, the 3rd telephony interface 9013, filter 1 and the first telephony interface 9011, the second telephony interface
9012nd, the 3rd telephony interface 9013 connects respectively, the end of the telephone wire deconcentrator of the first telephony interface 9011 and external telephone wire
Mouth A connects;Second telephony interface 9012 and the second phone set terminal electrically connect;3rd telephony interface 9013 be arranged on gateway with
3rd switch K3 Second terminal and detector unit 603 connect jointly.Get final product easy realization by above-mentioned communications status originally
Above-mentioned communications status relation in embodiment, so that connection more blocking, connects easier it is easy to implement, it is to avoid
Error.
Embodiment 9:
Shown in Figure 10, present embodiments provide a kind of the another kind of of telephone service upstream gateway 900 and implement to connect knot
Structure schematic diagram.
8 differences of the present embodiment and embodiment mainly include:
External separator 1001 in the present embodiment more more simplifies compared with Example 8, specifically, filter 1 is set
Put in outside, the external separator 1001 of the present embodiment is equivalent to a three-way separator:
Interconnective first telephony interface 10011 is provided with the present embodiment external separator 1001, the second phone connects
Mouth the 10012, the 3rd telephony interface 10013.
With embodiment 8 in the same manner, the first telephony interface 10011 is connected with the port A of the telephone wire deconcentrator of external telephone wire;
Second telephony interface 10012 and the second phone set terminal electrically connect;
3rd telephony interface 10013 be arranged on gateway with the 3rd switch K37 Second terminal and detector unit common
Connect.
By above-mentioned communications status can be easy realize above-mentioned communications status relation in the present embodiment so that circuit
Connect more blocking, connect easier it is easy to implement, it is to avoid error.
Need explanation when, in embodiments of the present invention, be connected to the filtration between external telephone wire and each phone set terminal
Device is to preferably select, and its role is to reduce noise, improves speech quality.
Device embodiment described above is only that schematically the wherein said unit illustrating as separating component can
To be or to may not be physically separate, as the part that unit shows can be or may not be physics list
Unit, you can with positioned at a place, or can also be distributed on multiple NEs.Can be selected it according to the actual needs
In the purpose to realize this embodiment scheme for some or all of unit.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and to implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on
That states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers
Order is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcement
Example or some partly described methods of embodiment.
Embodiments described above, does not constitute the restriction to this technical scheme protection domain.Any in above-mentioned enforcement
Modification, equivalent and improvement of being made within the spirit of mode and principle etc., should be included in the protection model of this technical scheme
Within enclosing.