Background technology
In current society, facsimile service is as a kind of effective means of traditional transfer files, used by users such as company and enterprise, government organs institute is a large amount of.Traditional PSTN (Public Switched TelephoneNetwork, public exchanging telephone network) network is by after setting up calling and called speech business passage, by the capability negotiation between the terminal, realize VBD (Voice Band Data, data in the voice band) the professional transmission of class, facsimile service belongs to a kind of of VBD business.
Existing fax mode comprises fax mode behind direct fax mode and the first voice.Direct fax mode is to realize by special dial mode, and for example caller adds special prefix code triggering facsimile service before dialing, but directly the fax use is not very convenient.Fax mode is to set up voice call between the calling and called earlier behind elder generation's voice, switches the fax pattern that enters by the fax start key again.Once repeatedly sending fax in the conversation, can carry out repeatedly the switching of voice and fax so if desired.
Because facsimile service belongs to data transmission service, error code, time delay, the shake of transmitting all required very strictness, even this just causes facsimile service also not high in traditional wired fixed network success rate.Flourish along with mobile radio network, facsimile service also obtains inheriting at mobile radio network, but because the unreliability of radio open transmission, the radio open transmission quality is well below the wire transmission quality, make in the facsimile service reliability of mobile radio network lowlyer, success rate is also poorer.In addition, traditional facsimile service transmits by TDM (Time Division Multiplex, time division multiplexing) network, and bandwidth ratio is less, transmits also slow.
Compare with speech business, facsimile service is more paid close attention to transmission reliability, and propagation delay time is more paid close attention in speech business, and for this two classes business, facsimile service is fit to IP (Internet Protocol, Internet protocol) Network Transmission, and speech business is fit to the TDM Network Transmission.If facsimile service is transmitted by IP network, the facsimile service success rate, quality, efficient can both be improved, and can also reduce cost, and by the TDM Network Transmission, time delay and quality just can be guaranteed with speech business.
A kind of method that voice and fax are transmitted in IP network and TDM network is provided in the prior art, prior art relates generally to a kind of device of telephony gateway and wherein used method of following of being used for, the paired use of the device of this telephony gateway is at opposing ends place that a data network connects, be used for automatically for example being voice, the telephone relation of data and fax is route on a public exchanging telephone network or data network, and decide according to the cost consideration of handling each conversation and callee's telephone number, monitor at that time service quality by this data network provided, and in response to the dynamic variation on this service quality, according to required ground between this public exchanging telephone network and this data network, switching automatically, make this conversation be carried in a connection that enough service quality was provided at that time.
The inventor finds in realizing process of the present invention, in the prior art, when on data network, transmitting when conversing or faxing, if service quality can not meet the demands, then will converse or fax and switch on the PSTN network, therefore, service quality problem of unstable when on data network, transmitting that prior art can solve facsimile data, also can reduce the cost of fax, yet, during fax mode that the user faxes after using first voice, need repeatedly carry out the switching of voice and fax, fax is all transmitting on consolidated network with voice in the prior art, and the user is when carrying out facsimile service and speech business switching, need carry out the switching between speech business passage and the facsimile service passage, thereby when switching, all need to rebulid speech business passage or facsimile service passage at every turn, thus cause when carrying out voice and fax switching, postponing, when data network or the decline of PSTN network of network quality, will cause professional handoff failure, thereby influence user's business experience.If facsimile machine is to needing between the network through radio open, it is poorer that the transmission quality of wireless network is compared with cable network, and then the transmission channel that fax is identical with the voice employing is carried out transmission manner and will be caused speech business and facsimile service success rate for switching lower.
Embodiment
The invention provides the device of a kind of facsimile method and this method of realization.Technical scheme for a better understanding of the present invention describes in detail embodiment provided by the invention below in conjunction with accompanying drawing.
Referring to Fig. 1, Fig. 1 is the flow chart of facsimile method first embodiment of the present invention.
Before execution in step A1, the speech business passage is successfully set up in the facsimile machine dialing, and the transmitting audio data signal promptly begins speech business.
Steps A 1: receive inband signaling.Inband signaling is the signal of transmission data in a predetermined frequency band, and is corresponding with out of band signal.
Steps A 2: the type that detects described inband signaling.
According to the inband signaling that receives, detect the type of inband signaling, the type of inband signaling comprises fax commencing signal, fax completion signal, fax data signal and speech data signal, the commencing signal of wherein faxing is represented the beginning of facsimile service, the fax commencing signal of stipulating in the T.30 standard as ITU-T (CNG:Calling Tone), the end of fax completion signal indication facsimile service, the fax disconnecting signal of stipulating in the T.30 standard as ITU-T (DCN:Disconnect).
Steps A 3: detect inband signaling for the fax commencing signal, then service transmission channels is switched to the facsimile service passage from the speech business passage,, and keep the state that the speech business passage is set up by facsimile service channel transfer fax data signal.
Detect inband signaling for the fax commencing signal after, then service transmission channels is switched to the facsimile service passage from the speech business passage, by facsimile service channel transfer fax data signal, and keep the state that the speech business passage is set up.
In the prior art, still only be based upon on a kind of service transmission channels based on the service call of above-mentioned telephony gateway and transmit, can not set up two service transmission channels simultaneously according to speech business and facsimile service different, thereby when facsimile service is switched to speech business, need rebulid the speech business passage, under the bad situation of network environment, success rate for switching is lower, and in method embodiment provided by the invention, when at first speech business being switched to facsimile service, the speech business passage is kept in handoff procedure all the time, so when facsimile service switches to speech business, do not needing to rebulid the speech business passage, the speech business passage that direct use has been set up, thereby handover success rate is higher.
In embodiments of the present invention, with service transmission channels when the speech business passage switches to the facsimile service passage and faxes, can be automatically play background sound and particular hint sound and keep the speech business passage and do not discharge at the speech business passage.
Wherein, with service transmission channels when the speech business passage switches to the facsimile service passage, if detecting the facsimile service passage does not exist, then set up the facsimile service passage earlier, again the business transmission is switched to the facsimile service passage, by facsimile service channel transfer fax data signal.Set up the destination address that the facsimile service passage uses and be the initial dialed number of user, this number is detected when setting up the speech business passage.If the facsimile service passage exists, then directly service transmission channels is switched to facsimile service channel transfer fax data signal.When switching to the facsimile service passage, the speech business passage does not discharge, and continues to keep.
Setting up the facsimile service passage can also carry out with setting up the speech business channel parallel, promptly when the user dials first, when setting up the speech business passage, sets up the facsimile service passage simultaneously.
Referring to Fig. 2, Fig. 2 is the flow chart of facsimile method second embodiment of the present invention.
Step B1: set up the speech business passage, the transmitting audio data signal.
The speech business passage is successfully set up in the facsimile machine dialing, and the transmitting audio data signal promptly begins speech business.
Step B2: detect inband signaling for the fax commencing signal, set up the facsimile service road, service transmission channels is switched to the facsimile service passage from the speech business passage, and keep the state that the speech business passage is set up.
After the user switches to facsimile service, facsimile machine sends the fax commencing signal, detect inband signaling for the fax commencing signal after, set up the facsimile service passage, service transmission channels is switched to the facsimile service passage by the speech business passage, and keep the state that the speech business passage is set up.Set up the destination address that the facsimile service passage uses and be the initial dialed number of user, this number is detected when setting up the speech business passage.
In embodiments of the present invention, can prevent that the speech business passage is released by continuing to send background sound or particular hint sound.When the user after facsimile service finishes, when switching to speech business, apparatus of the present invention embodiment is execution in step B3 then.
Step B3: detecting inband signaling is the fax completion signal, and service transmission channels is switched to the speech business passage from the facsimile service passage, and keeps the state that the facsimile service passage is set up.
When the user finishes this facsimile service, facsimile machine sends the fax completion signal, when detecting described inband signaling and be the fax completion signal, service transmission channels is switched to the speech business passage from the facsimile service passage, keep the state that the facsimile service passage is set up simultaneously.Because the speech business passage is not released, therefore can switch to the speech business passage fast, by speech business channel transfer speech data signal.
In embodiments of the present invention, when facsimile machine switches to the speech business passage and carries out voice call, can close the broadcast of background sound and particular hint sound, shake hands repeatedly at the facsimile service passage simultaneously and keep the state that the facsimile service passage is in connection.
Step B4: detect inband signaling for the fax commencing signal, service transmission channels is switched to the facsimile service passage from the speech business passage, and keep the state that the speech business passage is set up.
If the user is after voice call finishes, also need to fax, then switch to facsimile service, facsimile machine will send the fax commencing signal, when detecting inband signaling for the fax commencing signal, service transmission channels is switched to the facsimile service passage by the speech business passage, because the facsimile service passage does not discharge, therefore can switch to the facsimile service passage fast, by facsimile service channel transfer fax data signal, keep the speech business passage simultaneously and keep the state of foundation, prevent that the speech business passage is released.
If the user also needs to carry out speech business subsequently, apparatus of the present invention embodiment is execution in step B3 then, and this flow process is carried out in circulation.
Compared with prior art, transmit among the method embodiment of inband signaling in the present invention, by facsimile service channel transfer fax data signal the time, the speech business passage is kept and is not discharged, can guarantee facsimile service is switched to speech business fast, by speech business channel transfer speech data signal the time, the facsimile service passage is kept and is not discharged equally, can guarantee speech business is switched to facsimile service fast, success rate for switching is also higher.In addition, facsimile method embodiment of the present invention carries out the shunt transmission with speech business and facsimile service, can select suitable speech business passage and facsimile service passage to transmit according to the characteristics of speech business and facsimile service, improve the transmission quality of facsimile service and speech business.Because speech business passage and facsimile service channel separation, so the facsimile service passage is not limited by the network domains at speech business passage place can, for the terminal use, can not need consistent terminal equipment also can carry out two business and communicate by letter simultaneously, very flexible.
Wherein, for fear of the influence of fax data signal to the speech business passage, and improve the accuracy of fax data signal demodulation, need when detecting inband signaling, shift to an earlier date several traffic frames service transmission channels is switched on the facsimile service passage from the speech business passage for the fax commencing signal; When detecting inband signaling and be the fax completion signal, can postpone several traffic frames service transmission channels is switched back on the speech business passage from the facsimile service passage.
Wherein, the speech business passage can be the TDM transmission channel, and the facsimile service passage can be the Fax over IP passage, and speech business passage and facsimile service passage are not limited thereto, and can also be other transmission channels.Because the inband signaling that existing facsimile machine sends is generally analog signal, be not suitable on IP network, transmitting, therefore behind the fax data signal that receives the facsimile machine transmission, detected fax data signal is carried out demodulation, the form that fax data signal after the demodulation is assembled into the IP packet is transmitted by the facsimile service passage that presets, transmit in the IP network being adapted at, can improve the success rate and the transmission quality of facsimile service.Because speech business passage and facsimile service channel separation so the facsimile service passage is not limited by the network domains at speech business passage place can, can adopt IP real-time fax agreement, also can adopt the IP storage to transmit facsimile protocol.For the IP store-and-forward mode, the facsimile service passage can be that TCP connects.The opposite end of facsimile service passage can be the opposite end address consistent with the speech business passage, also can be and address, the inconsistent opposite end of speech business passage, as to the E-mail address of end subscriber as facsimile receiver.
Referring to Fig. 3, Fig. 3 is the schematic diagram of picture unit embodiment provided by the invention.
Picture unit embodiment of the present invention mainly is made up of receiver module 10, detection module 20, fax control module 30, speech processing module 40 and Switching Module 50.
Wherein, receiver module 10 is used to receive inband signaling.
Detection module 20, be used to detect the type of inband signaling, wherein the type of inband signaling comprises fax commencing signal, fax completion signal, fax data signal and speech data signal, the commencing signal of wherein faxing is represented the beginning of facsimile service, the end of fax completion signal indication facsimile service.Detection module 20 can by DTMF (dual-tone multifrequency: Dual Tone Multi-Frequency) or FSK (frequency shift keying: frequency shift keying) mode detects the identification inband signaling, detects information that the user dials the number.
The fax control module 30, be used for detection module 20 detect inband signaling for the fax commencing signal after, issue the passage switching command to Switching Module 50, issue passage to speech processing module 40 and keep order.
Speech processing module 40 is used for keeping order according to the passage that receives, and keeps the state that the speech business passage is set up.
Switching Module 50 is used for according to the passage switching command that receives service transmission channels being switched in speech business passage and facsimile service passage.
In embodiments of the present invention, Switching Module 50 with service transmission channels when the speech business passage switches to the facsimile service passage, speech processing module 40 is kept the state that the speech business passage is set up, if the user finishes the back at facsimile service and switches back speech business, with need to rebulid the speech business passage in the prior art and compare, the embodiment of the invention is because the not release of speech business passage, do not need to rebulid the speech business passage, therefore can guarantee quick switching, user's business experience is better.
In embodiments of the present invention, speech processing module 40 can be kept order according to the passage that receives, and plays background sound or particular hint sound at the speech business passage and keeps the speech business passage and do not discharge.
Picture unit in the embodiment of the invention can also comprise:
The fax passage is set up module 60, is used for setting up the facsimile service passage under the control of fax control module 30.
Memory module 70 is used for the fax data signal that buffer memory receives.
When the user when speech business switches to facsimile service, the facsimile service passage do not set up or the facsimile service passage since the former thereby d/d situation of network under, the fax passage is set up module 60 under the control of fax control module 30, set up the facsimile service passage, memory module 70 is used for the fax data signal that the buffer memory facsimile machine sends.After the facsimile service passage was set up, Switching Module 50 switched to the facsimile service passage with the speech business passage, and memory module 70 sends to the facsimile service passage with the fax data signal of buffer memory and transmits, and begins to carry out facsimile service.Memory module 70 can improve the reliability of facsimile data transmission, improves professional success rate for switching.
Picture unit in the embodiment of the invention can also comprise:
Speech control module 80 is used for issuing the passage switching command to Switching Module 50 when detection module 20 detects inband signaling and is the fax completion signal, issues passage to fax processing module 90 and keeps order.
Fax processing module 90 is used for keeping order according to the passage that receives, and keeps the state that the facsimile service passage is set up.The processing module of wherein faxing 90 can be kept order according to the passage that receives, and shakes hands repeatedly at the facsimile service passage and keeps the state that the facsimile service passage is in connection.
After the user is finishing this facsimile service, switch to speech business, it is the fax completion signal that speech control module 80 detects inband signaling according to detection module 20, issues the passage switching command to Switching Module 50, issues passage to fax processing module 90 and keeps order.Because when the transmitting facsimile data-signal, the speech business passage is still kept, so Switching Module 50 can switch to the speech business passage with service channel very soon, the user begins speech business.Compare with need rebulid the speech business passage in the prior art when switching to speech business, the embodiment of the invention can guarantee quick switching, improves user's business experience.
In embodiments of the present invention, the speech business passage can be the TDM voice channel, and the facsimile service passage is the Fax over IP passage, and speech business passage and facsimile service passage are not limited thereto, and can also be other transmission channels.Facsimile service is transmitted by IP network, the facsimile service success rate, quality, efficient can both be improved, and can also reduce cost, and by the TDM Network Transmission, time delay and quality just can be guaranteed with speech business.
Picture unit in the embodiment of the invention can also comprise:
Facsimile data processing module 100, the fax data signal that is used for receiving is changed between tdm data frame format and IP data packet format.
XDSL (Digital Subscriber Loop, DSL) processing module 110 is exported after being used for speech data signal and fax data signal closed the road.
At transmitting terminal, facsimile data processing module 100 is transmitted the fax data signal that the fax data signal of tdm data frame format is converted to the IP data packet format by the Fax over IP passage, and the fax data signal of IP data packet format is converted to the fax data signal of tdm data frame format, and transmit to the upper strata at receiving terminal.
Picture unit embodiment provided by the invention can dispose a phone inlet (as RJ-11), and the phone inlet connects traditional facsimile machine, and outlet can be disposed phone outlet (as RJ-11) and an IP port (as Ethernet RJ-45 interface).Picture unit embodiment provided by the invention can also be by the xDSL module 110 that increases, and exports by a phone outlet (as RJ-11) after fax data signal and speech data signal are closed the road.
Fax processing module 90 receives the fax disconnecting signal from network side among apparatus of the present invention embodiment, can discharge the facsimile service passage, and with this event notice fax control module 30.Speech processing module 40 is after receiving the disconnect command of network side, disconnect command is reported to speech control module 80, speech control module 80 issues passage to speech processing module 40 with fax processing module 90 and releases order, and speech processing module 40 and fax processing module 90 discharge speech business passage and facsimile service passage respectively.If this moment, facsimile service carried out, the processing module of then faxing 90 releases of can delaying time is waited for that facsimile service finishes the direct release in back facsimile service passage, and is no longer carried out the process that facsimile service switches to speech business.
More than picture unit embodiment provided by the invention is had been described in detail, picture unit embodiment of the present invention is by speech business channel transfer speech data signal the time, the facsimile service passage does not discharge, the user is when switching to facsimile service, do not need to rebulid the facsimile service passage, with prior art when speech business is switched to facsimile service, need rebulid the facsimile service passage and compare, apparatus of the present invention embodiment can guarantee speech business is switched to facsimile service fast; Because when the transmitting facsimile data-signal, the speech business passage does not discharge yet, and equally facsimile service can be switched to speech business fast yet.In addition, with prior art speech data and facsimile data being switched transmission in IP network or TDM network compares, apparatus of the present invention embodiment selects suitable separately speech business passage and facsimile service passage to transmit according to the characteristics of speech business and facsimile service, thereby improves the transmission quality of speech business and facsimile service.Apparatus of the present invention embodiment can also support the facsimile protocol on the various IP network, transmits facsimile protocol etc. as IP real-time fax agreement or IP storage.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode of software with the general hardware platform of necessity, based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be a personal computer, the server or the network equipment etc.) the described method of execution each embodiment of the present invention.
More than to institute's facsimile method of the present invention and realize that the device of this method is described in detail, picture unit embodiment of the present invention can use in cable network, also can use in wireless network.For one of ordinary skill in the art, according to the thought of the embodiment of the invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.