Embodiment
The embodiment of the invention provides calling-control method, device and the equipment of voice facsimile, and wherein, for speech interface and facsimile interface configure respectively an electronic switch, above-mentioned two electronic switch all link to each other with Subscriber Line Interface Circuit SLIC.
In order to make those skilled in the art person understand better the present invention program, and above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Referring to Fig. 1, be the first embodiment flow chart of the calling-control method of voice facsimile of the present invention:
Step 101: judge type of call according to call information.
When judging type of call, can be in different ways, wherein, for exhalation, can set in advance number head of audio call and facsimile call institute call number, when receiving exhalation information, read number head of the outgoing call that comprises in the exhalation information, number head that relatively reads and number head that sets in advance, obtaining number first corresponding type of call that reads is audio call or facsimile call; For exhalation, all right pre-save speech interface information and facsimile interface information, when sending exhalation information, the interface that exhalation information is sent in detection is speech interface or facsimile interface, obtain corresponding interface message, the interface message of relatively obtaining and the interface message of pre-save, type of call corresponding to the interface message that obtains obtaining is audio call or facsimile call; For incoming call, voice number and fax number that can pre-save the machine when receiving call-in message, read the incoming call that comprises in the call-in message, compare the number of incoming call and pre-save, obtaining type of call corresponding to incoming call is audio call or facsimile call.
Step 102: by the control electronic switch, be communicated with SLIC and speech interface or the facsimile interface corresponding with the type of call of judging.
SLIC is be used to the telephone circuit that the functions such as feed, ring, dislodging machine testing and voice transfer are provided.The electronic switch of speech interface and facsimile interface all links to each other with this slic circuit in the embodiment of the invention, when this slic circuit is communicated with one of them interface by electronic switch, can transmit the signal by this reception output, the signal of perhaps inputting to this interface transmission.
Step 103: realize corresponding the calling by the speech interface or the facsimile interface that are communicated with SLIC.
When not calling out, the electronic switch of speech interface and facsimile interface all is in connected state, speech interface and facsimile interface all are communicated with signal path between the SLIC, when type of call is audio call, the electronic switch of control facsimile interface enters off-state, disconnects the signal path between facsimile interface and the described Subscriber Line Interface Circuit; When type of call was facsimile call, the electronic switch of control speech interface entered off-state, disconnects the signal path between speech interface and the Subscriber Line Interface Circuit.
Referring to Fig. 2, be the second embodiment flow chart of the calling-control method of voice facsimile of the present invention, this embodiment is controlled to be example with exhalation, describes the process of calling out control according to number head of call number in detail:
Step 201: when receiving exhalation information, read number head of the outgoing call that comprises in this exhalation information.
In the embodiment of the present application, for exhalation information, the electronic switch that is in connected state is crossed slic circuit with the exhalation information exchange of its corresponding interface output and is transferred to call control apparatus, is therefrom read number head of outgoing call by call control apparatus.
Step 202: number head that relatively reads and number head that sets in advance are to obtain type of call.
In the present embodiment, set in advance number head of audio call and facsimile call institute call number.For example, can set in advance if phonetic dialing then adds before the voice number and dials " 0 ", if the fax dialing then adds and dials " 9 ", distinguish accordingly audio call and facsimile call before fax number.Above-mentioned only is the first a kind of example that arranges of checking the number, and does not limit the invention.
Head arranges example according to above-mentioned, if number head that reads this moment then can confirm as audio call for " 0 ", if number head that reads is " 9 ", then can confirm as facsimile call.
Step 203: judge number first corresponding type of call that reads, if audio call, then execution in step 204; If facsimile call, then execution in step 205.
Step 204: the electronic switch of control facsimile interface enters off-state, disconnects the signal path between facsimile interface and the SLIC, finishes current flow process.
When not calling out, speech interface and facsimile interface all are communicated with signal path between the SLIC, and namely the electronic switch of speech interface and facsimile interface is connected, and purpose is that whichsoever interface is called out, and call information can be transferred to slic circuit.
When having confirmed that type of call is audio call, the electronic switch of control facsimile interface disconnects, and then follow-up all speech call informations all transmit by the electronic switch of speech interface and the path between the slic circuit.
Step 205: the electronic switch of control speech interface enters off-state, disconnects the signal path between speech interface and the SLIC, finishes current flow process.
When not calling out, speech interface and facsimile interface all are communicated with signal path between the SLIC, and namely the electronic switch of speech interface and facsimile interface is connected, and purpose is that whichsoever interface is called out, and call information can be transferred to slic circuit.
When having confirmed that type of call is facsimile call, the electronic switch of control speech interface disconnects, and then follow-up all facsimile call information is all transmitted by the electronic switch of facsimile interface and the path between the slic circuit.
Referring to Fig. 3, be the 3rd embodiment flow chart of the calling-control method of voice facsimile of the present invention, this embodiment still is controlled to be example with exhalation, describes the process of calling out control according to interface type in detail:
Step 301: the interface message of obtaining the interface that sends exhalation information.
Usually speech interface connects telephone set, and facsimile interface connects facsimile machine, and when off-hook, which port what detect the off-hook response is, for example, is port one or port 2.
Step 302: the interface message of relatively obtaining and the interface message of pre-save are to obtain the exhalation type.
In the present embodiment, pre-save speech interface information and facsimile interface information.For example, can the pre-configured voice interface corresponding to port one, facsimile interface is preserved above-mentioned corresponding relation accordingly corresponding to port 2.
According to above-mentioned setting, if the port-for-port that detects 1, then corresponding interface is speech interface, and type of call is audio call just, if the port-for-port that detects 2, then corresponding interface is facsimile interface, and type of call is facsimile call just.
Step 303: judge type of call, if audio call, then execution in step 304; If facsimile call, then execution in step 305.
Step 304: the electronic switch of control facsimile interface enters off-state, disconnects the signal path between facsimile interface and the SLIC, finishes current flow process.
When not calling out, speech interface and facsimile interface all are communicated with signal path between the SLIC, and namely the electronic switch of speech interface and facsimile interface is connected, and purpose is that whichsoever interface is called out, and call information can be transferred to slic circuit.
When having confirmed that type of call is audio call, the electronic switch of control facsimile interface disconnects, and then follow-up all speech call informations all transmit by the electronic switch of speech interface and the path between the slic circuit.
Step 305: the electronic switch of control speech interface enters off-state, disconnects the signal path between speech interface and the SLIC, finishes current flow process.
When not calling out, speech interface and facsimile interface all are communicated with signal path between the SLIC, and namely the electronic switch of speech interface and facsimile interface is connected, and purpose is that whichsoever interface is called out, and call information can be transferred to slic circuit.
When having confirmed that type of call is facsimile call, the electronic switch of control speech interface disconnects, and then follow-up all facsimile call information is all transmitted by the electronic switch of facsimile interface and the path between the slic circuit.
Above-mentioned two embodiment respectively basis head and interface type are described the control of breathing out, and the control during for incoming call is described as follows:
Because voice number and the fax number of the machine are fixed, voice number and the fax number of namely incoming call are fixed, therefore voice number and the fax number of pre-save the machine in the machine, the electronic switch of control speech interface and facsimile interface all is not in connected state when calling out, when receiving call-in message, read the incoming call that comprises in this call-in message, the incoming call that relatively reads and the number of pre-save, confirm that the incoming call type is the voice incoming call if the number that reads is consistent with the voice number, the electronic switch that control facsimile interface this moment enters off-state, disconnect the signal path between facsimile interface and the SLIC, if the number that reads is consistent with fax number, confirm that then the incoming call type is the fax incoming call, the electronic switch of control speech interface enters off-state, disconnects the signal path between speech interface and the SLIC.
Corresponding with the embodiment of the calling-control method of voice facsimile of the present invention, the present invention also provide voice facsimile call control apparatus embodiment and have the embodiment of the equipment of voice facsimile function.
Referring to Fig. 4, for the embodiment block diagram of the call control apparatus of voice facsimile of the present invention, on physical structure, the call control apparatus in the present embodiment respectively with Subscriber Line Interface Circuit, and the electronic switch that connects telephony interface and facsimile interface links to each other.
This device comprises: judging unit 410, control unit 420 and calling unit 430.
Wherein, judging unit 410 is used for judging type of call according to call information;
Control unit 420 is used for the type of call according to described judgment unit judges, by controlling described electronic switch, is communicated with described Subscriber Line Interface Circuit and speech interface or the facsimile interface corresponding with described type of call;
Calling unit 430 is used for realizing corresponding the calling by the speech interface or the facsimile interface that are communicated with described Subscriber Line Interface Circuit.
Concrete, judging unit can comprise (not shown among Fig. 4): default unit, for number head that sets in advance audio call and facsimile call institute call number; Reading unit is used for reading number head of the call number that comprises in the described exhalation information when receiving exhalation information; Comparing unit, number head that is used for the more described number head that reads and sets in advance, obtaining the described number first corresponding type of call that reads is audio call or facsimile call.
Concrete, judging unit also can comprise (not shown among Fig. 4): storage unit is used for pre-save speech interface information and facsimile interface information; Acquiring unit is for the interface message of obtaining the interface that sends exhalation information; Comparing unit, for the interface message of the more described interface message of obtaining and described pre-save, obtaining type of call corresponding to the described interface message of obtaining is audio call or facsimile call.
Concrete, judging unit also can comprise (not shown among Fig. 4): the unit that prestores, for voice number and the fax number of pre-save the machine; Reading unit is used for reading the incoming call that call-in message comprises; Comparing unit, for the number of more described incoming call and described pre-save, obtaining type of call corresponding to described incoming call is audio call or facsimile call.
Further, this device can also comprise (not shown among Fig. 4): the standby unit, when being used for not calling out, the electronic switch of controlling described speech interface and facsimile interface all is in connected state, and described speech interface and facsimile interface all are communicated with signal path between the described Subscriber Line Interface Circuit.
Concrete, control unit can comprise (not shown among Fig. 4): the voice control unit, be used for when described type of call is audio call, the electronic switch of controlling described facsimile interface enters off-state, disconnects the signal path between described facsimile interface and the described Subscriber Line Interface Circuit; The fax control unit is used for when described type of call is facsimile call, and the electronic switch of controlling described speech interface enters off-state, disconnects the signal path between described speech interface and the described Subscriber Line Interface Circuit.
The call control apparatus of the voice facsimile shown in above-described embodiment can be specially the call control apparatus in the equipment such as gateway with voice facsimile function or terminal, specifically can be referring to follow-up associated description to Fig. 6.
Referring to Fig. 5, has the embodiment block diagram of the equipment of voice facsimile function for the present invention.
This equipment comprises: speech interface 511, facsimile interface 512, the first electronic switch 513 that links to each other with speech interface 511, the second electronic switch 514 that links to each other with facsimile interface 512, with slic circuit 515 and call control apparatus 516 that the first electronic switch 513 and the second electronic switch 514 all link to each other, call control apparatus 516 also links to each other with slic circuit 515 simultaneously.
Wherein, described call control apparatus 516, be used for judging type of call according to call information, by controlling described the first electronic switch 513 and the second electronic switch 514, be communicated with described slic circuit 515 and speech interface 511 or the facsimile interface 512 corresponding with the type of call of described judgement, realize corresponding the calling by the speech interface 511 or the facsimile interface 512 that are communicated with described slic circuit 515.
Further, this call control apparatus 516 also is used for, when described equipment is not called out, the first electronic switch 513 and the second electronic switch 514 of controlling described speech interface 511 and facsimile interface 512 all are in connected state, and described speech interface 511 and facsimile interface 512 all are communicated with signal path between the described slic circuit 515.
Equipment in above-described embodiment can be specially the radio network gateway with wireless module, and wireless module wherein is used for call information is sent to air interface, is transferred to call control apparatus perhaps from air interface receipt of call information, and with call information.Need to prove, the call control apparatus among the said equipment embodiment when carrying out concrete calling control, its control procedure and preceding method and install describe unanimously, do not repeat them here.
Referring to Fig. 6, be the structural representation of a kind of radio network gateway of using the inventive method embodiment:
As can be seen from Figure 6, the telephony interface and the facsimile interface that is connected connecting facsimile machine that are used for connecting telephone set have been comprised in this radio network gateway, the electronic switch that these two interfaces pass through separately respectively links to each other with call control apparatus with slic circuit, and call control apparatus also links to each other with wireless module with slic circuit respectively.Wherein, two interfaces are by electronic switch, slic circuit, and the path that is connected to call control apparatus is signal path, and the path that two interfaces are communicated with call control apparatus respectively by electronic switch is the control access.
Telephone set and facsimile machine be all during off-hook call, and two electronic switch all are communicated with the separately path between the interface and SLIC.
During exhalation take the phone exhalation as example, the telephone set off-hook, the user has added number head " 0 " when dialing, then call information can be transferred to call control apparatus by signal path, call control apparatus basis head " 0 " is judged as call, then call control apparatus is by the electronic switch disconnection of control access control facsimile interface and the path between the slic circuit, only keep the electronic switch of telephony interface and the path between the slic circuit, follow-up telephone signal all is transferred to call control apparatus by the path of this maintenance, be transferred to again wireless module, and finally go out by air interface transmission.
During incoming call take the fax incoming call as example, the voice number of telephone set and fax number itself are fixing, for example be respectively " 6123456 " and " 8123456 ", then wireless module receives the facsimile message of incoming call from eating dishes without rice or wine, comprised number " 8123456 " in this information, wireless module is transferred to call control apparatus with this facsimile message, call control apparatus judges that according to number " 8123456 " this calling is facsimile call, then call control apparatus is by the electronic switch disconnection of control access control speech interface and the path between the slic circuit, only keep the electronic switch of facsimile interface and the path between the slic circuit, follow-up facsimile signal all is transferred to facsimile interface by the path of this maintenance, and is finally received by facsimile machine by the user.
Need to prove, above-mentioned description in conjunction with Fig. 6 only shows the exhalation control procedure as an example of setting head example, in the practical application when breathing out, also can judge call or facsimile call by detection port information, this moment can be at testing circuit of adding in two electronic switch and the control access that network controller is connected, this testing circuit upwards links to each other with network controller, link to each other with two diverter switches downwards, when user's off-hook, which port the port that this testing circuit can detect off-hook is, then testing result is sent to network controller, judge it is call or facsimile call by network controller according to testing result, follow-up call control procedure does not repeat them here with aforementioned consistent.
In addition, in the upper description in conjunction with Fig. 6, telephone signal and facsimile signal all are transferred to wireless module by call control apparatus, be transferred to again and eat dishes without rice or wine, in the actual application, slic circuit also can be set to be connected with wireless module, when for call, can directly between slic circuit and wireless module, transmit, and facsimile signal is owing to also will process by call control apparatus, therefore still need to be transferred to wireless module by call control apparatus, call control apparatus is consistent with prior art to the processing of facsimile signal, does not repeat them here.
As seen through the above description of the embodiments, need not in the embodiment of the invention for audio call and facsimile call independently SLIC interface circuit of two-way to be set, but electronic switch is set respectively for audio call and facsimile call, be communicated with corresponding interface and electronic switch according to type of call, just can realize corresponding audio call or facsimile call, compared with prior art, having reduced equipment is that the spent cost of two-way SLIC interface circuit is set, and the corresponding power consumption that reduces equipment.
Those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Above-described embodiment of the present invention does not consist of the restriction to protection range of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.