A kind of method based on the number priority forced disconnecting calls
Technical field
The present invention relates to voice system, be specifically related to a kind of control method between voice IAD and the server based on the Internet.
Background technology
In more existing government departments, as law court, public security, army etc., consider for safety and urgency level, guarantee the smooth and easy of some emergency telephone call, must there be certain mechanism to realize tolling breakdown function, promptly when called number when the line is busy, the urgent caller number can be removed the current talking of called number and try to be the first with called number and converse.
In the present VOIP that is made up of gateway, gatekeeper (based on the voice of internet) network, as accompanying drawing 1, for VOIP gateway GW1, A, B, three phones of C are called inside line, and D, E, F all are called outside line; GW1 can converse by the phone D that is connected among outside line (generally being interfaces such as FXO, E1) and the PSTN (public switched telephone network (PSTN)) on the PBX (stored-program control exchange) on the one hand, also can be by IP network and gateway GW2 and phone F conversation; GW1 supports to toll breakdown existing call and insert the function of new conversation.Usually the scheme that adopts when realizing tolling breakdown function on GW1 is: the priority of the interior line cap that the priority of configuration inside line A, B, C is corresponding; Because GW1 can't check numbers and directly manage, insert phone D for outside line, then dispose the corresponding outside line port priority of GW1, but this port can corresponding a plurality of different number incoming calls such as E and D.The priority of supposing phone C is higher than A and B; The outside line incoming call port priority of D correspondence also is higher than A and B, and when phone A, B were in the conversation, C called out A, because the priority height of C converses so GW1 connects AC, B is play busy tone or hangs up, and this situation is called interior lines and tolls breakdown; When D calls out A, because the outside line port priority height of D incoming call,, B is put busy tone or hung up so GW1 connects the AD conversation, be called outside line and toll breakdown.
From above example as can be seen, in the present VOIP network, automatic forced release service based on number priority, the limitation of the phone of these number correspondences of requirement at same VOIP gateway arranged, phone from the outside line access, can only toll breakdown according to outside line priority or physical port, can not toll breakdown according to number.If realize implementing to toll breakdown according to number, then need manual intervention, to a certain extent the waste of manpower cost at all Inbound Calls.In addition, for the phone F in the VOIP net since GW1 go up can't the configuration preference level, so also can't toll breakdown the calling on the GW1.
Summary of the invention
The present invention solves in the existing VOIP system can not provide automatic dismounting called number current talking according to the urgent caller telephone number in the whole network, and the new problem of calling out of access, provide a kind of, reach urgency traffic and can preferentially insert method in the existing voice system according to telephone number priority.
The present invention proposes a kind of in the VOIP system, and the scheme based on the priority of telephone number is tolled breakdown the both sides that conversing as shown in Figure 2, comprises the steps:
A) priority list of definition telephone number;
B) the defined number priority of the configuration call server of tabulating;
C) have the IAD obtaining step b of the function of tolling breakdown) in priority list;
D) when the user asks Subscriber Number that incoming call this TV station gateway conversing, gateway inquiry priority list also judges, enters step e) when calling number priority is higher than with the called Subscriber Number priority of conversing, otherwise enters step f);
E) calling subscriber removes the current talking of called number;
F) calling subscriber's Call Waiting or on-hook.
Further, in the step e), if called number has call waiting function, the calling subscriber dials according to prompt tone and selects to enter the Call Waiting flow process of tolling breakdown or entering in the step f).
Wherein, the IAD in the step c) can be used as call server simultaneously.In addition, the number priority tabulation that IAD obtains in the step c) can real-time update.
In step d), when said IAD was not found the precedence information that needs in priority list, giving tacit consent to this number was lowest priority.
In addition, in the step e), the calling subscriber removes before the current talking of called number, according to circumstances its number priority and called number priority is compared.
Beneficial effect of the present invention: for the IP telephony system telephone number provides unified priority, thereby realize squeezing into all phones or all interior phones of IP network in the net, all support forced releasing and forced interposing according to priority, the whole network unified plan guarantees the unblocked of on the VOIP network important emergency call.
Description of drawings
Fig. 1 is the network diagram that possesses the prior art of the function of tolling breakdown.
Fig. 2 is a flow chart of the present invention.
Fig. 3 is the embodiment of the present invention network diagram.
Embodiment
Further specify the present invention below in conjunction with Figure of description.Among the present invention, call server does not limit and uses any hardware platform, can be H.323 gatekeeper, soft switch, sip server, VOIP gateway etc. in the VOIP network in logic.
With concrete H.323 network architecture is that example describes.As shown in Figure 3, the gatekeeper is as call server, and phone A is the user of gateway 1, and phone B is the user of gateway 2, and phone C, landline telephone D are the users of gateway 3.Gateway 1 and gateway 2 and gateway 3 all are registered on the gatekeeper, at first configuration number priority list on the gatekeeper, i.e. configuration number and corresponding priority level thereof.These numbers can be the telephone numbers in the IP telephony network, also can be the outer fixed telephone number of IP telephony network, mobile communication mobile phone number, Personal Handy-phone System number etc.Have the telephone number of the demand of tolling breakdown need define priority, this range of telephone numbers comprises all effective numbers, can define the priority of number: 1,3 ... n, numeral is big more, and priority is low more.In implementation process, if certain telephone number does not define priority, its priority is for being defaulted as lowest priority, and number priority is configured on the call server gatekeeper.Enable gateway 1, gateway 2, the gateway 3 of tolling breakdown function, can distinguish and send IRQ message to the gatekeeper, obtain the number priority tabulation on the server.After the gatekeeper receives the IRQ message of gateway, the number priority tabulation of disposing is sent to gateway successively by IRR message; Gateway can just obtain this tabulation by IRQ message to the gatekeeper again every the regular hour, and is up-to-date to guarantee priority list.
After finishing above step, if A and B converse, user C or D make a call to user A by IP network.Gateway 1 will be inquired about the gatekeeper and go up the Subscriber Number priority list that obtains from server, if the number priority of finding C greater than B and A, the C AB conversation of can directly dismantling, A, B will hear the prompt tone of dismantling by force, C and A converse; If A has call waiting function, C can also dial to select to enter and toll breakdown or the Call Waiting flow process according to prompt tone.After gatekeeper's number priority tabulation changed, the gatekeeper can initiatively send IRR message to gateway 1, gateway 2, gateway 3, with the up-to-date priority list of notification gateway.
In the environment of strictness control User Priority, the present invention can provide the service of distinguishing priority users, can directly the dismantle conversation of low priority user of high priority telephone subscriber, and and wherein square tube words, can guarantee that by this mode in case of emergency special calling carries out with the highest conversation priority, thereby guarantee emergency and order the whole network propagation fast.The invention is not restricted to H.323 network architecture, all utilize the function of tolling breakdown of the realization of inventive concept all to belong to protection scope of the present invention.