Background technology
Present call route selecting technology is, a calling is chosen routing number according to route selection source code and routing code query routing analytical table, comes the chooser route by routing number then, selects trunk group again under this sub-route after choosing sub-route.
Select the mode of a sub-route to have three kinds under the present route: in order selection, precentagewise are selected and at cost size selection.Select in order: according to the select progressively sub-route from the 1st sub-route to the n sub-route, sub-route need not grouping.When the 1st sub-route (through sub-route) is no-trunk or unavailable, select the 2nd sub-route, the rest may be inferred; Precentagewise is selected: divide into groups according to percentage, the order from the 1st sub-route to the n sub-route is adopted in grouping, sub-route percentage sum equals 100% continuous sub-route and is divided into one group, and precentagewise realizes the load sharing of sub-route in the group, then selects in order between group.For example: the 1st sub-route is the 1st a group of sub-route, its load sharing is 100%, 2nd, 3 sub-routes are the 2nd group of sub-route, and load sharing is: the 2nd sub-route is that 50%, the 3 sub-route is 50%, select the 1st group of sub-route during Route Selection at first in order, when the 1st group of sub-route is no-trunk or unavailable, select the 2nd group of sub-route, carry out load sharing by the 2nd sub-route and the 3rd sub-route, adopt the percentage selection mode, percentage is respectively 50%, 50%; Select at cost: on cost carry out Route Selection, the sub-route quilt that cost is minimum is preferred, when this sub-route is no-trunk or unavailable, be chosen to this low sub-route, the rest may be inferred, if the cost of a few strip routes is identical numerical value, then between these a few strip routes, select according to the percentage selection mode.
But the mode of above-mentioned three kinds of chooser routes all can't be judged the carrying quality situation under the speech channel of choosing, so just cause a problem, if the poor quality of carrying under a certain strip route, has only the normal and called connection of calling energy of fraction, for example under new environment, a large amount of signalings uses grouping such as IP (Internet Protocol, Internet protocol) transmits, if the route carrying is of poor quality, IP transmits, and packet loss may take place, the problem that will cause call loss and exist signaling to transmit.If this sub-route is still selected in follow-up calling, the connection possibility of this subsequent voice calls will be lower so.
Summary of the invention
The embodiment of the invention provides method and the device of call route selecting, to improve the percent of call completed of calling out.
The method of a kind of call route selecting that the embodiment of the invention provides may further comprise the steps:
After choosing routing number, the call bearer quality condition of each sub-route between Calling Side comparison and callee side, selective call carrying optimal quality or chooser route pro rata;
The call bearer quality situation of each trunk group under the more described sub-route of Calling Side, selective call carrying optimal quality or select trunk group pro rata;
Calling Side calculates described trunk group and makes a call the number of times increase once;
Call through is set up calling by selected route between Calling Side and callee side;
Calling Side calculates described trunk group access success and connects the number of times increase once;
Calling Side is successfully connected the percept of call completed that number of times upgrades described trunk group according to make a call number of times and described trunk group of described trunk group.
A kind of call route selecting device that the embodiment of the invention provides comprises:
Memory cell: be used for the percept of call completed of each sub-route of storage and each trunk group, and store described each sub-route and each trunk group make a call number of times with successfully connect number of times;
Comparing unit: be used for the percept of call completed of more described each sub-route and each trunk group, obtain the carrying quality condition of each sub-route and each trunk group;
Processing unit: be used for the carrying quality condition according to described each sub-route and each trunk group, selective call carrying optimal quality or chooser route and trunk group are called out pro rata;
Computing unit: that calculates selected sub-route after the Route Selection success or behind call through/access failure makes a call the number of times increase once; That calculates selected trunk group after trunk group is chosen successfully or behind call through/access failure makes a call the number of times increase once; Behind call through, calculate selected sub-route and selected
The successful connection number of times increase of trunk group once; After overtime in the cycle time of setting or the number of times that makes a call change after or access success connect the percept of call completed that calculates selected sub-route and selected trunk group after number of times changes.
Method and the device of the call route selecting that provides by the embodiment of the invention, by judging the carrying quality of speech channel, preferentially select the higher route of quality or with select pro rata route, thereby improve the percent of call completed of calling out, reduce the call loss ratio.
Embodiment
With reference to figure 1, under this networking example, there is many strips route in Calling Side A office between callee side B office, there is shown two strip routes, wherein R1 is through sub-route (DirectRoute), promptly do not have directly to arrive through other exchanges the route of opposite end, R2 is circuitous sub-route (BypassRoute), promptly through arriving the route of opposite end after other exchanges.When dialing the d user of B office, a user of A office have two sub-routes to select, if current calling is carried by through sub-route, the number of times M1 that makes a call on the through sub-route of A office record behind the connection d user increases once, and access success connection times N 1 also increases once on the through sub-route; For a certain reason, the d user of B office is not connected in a user's calling, and at this moment A office only records through sub-route and makes a call number of times M1 increase once, and circuitous sub-route access success connection times N 1 does not increase.If current calling is carried by circuitous sub-route R2, make a call number of times M2 and the access success of circuitous sub-route are connected times N 2 also adopt similar computational methods.
Wherein, each sub-route sending-down is played the number of times of calling, can behind Route Selection success back (sub-Route Selection success back or trunk group select successfully after) calculating or call through/access failure, calculate.Number of times is successfully connected in each sub-routing call to be calculated behind call through.For the percept of call completed of sub-route, can calculate in the following moment: 1) calculate after T cycle time that sets is overtime, this cycle can be adjusted by order; 2) upgrade percent of call completed after any number of times that makes a call changes; 3) any access success is connected and is upgraded percent of call completed after number of times changes.
Along with the increase of the number of calls, A office can calculate the percept of call completed of each sub-route like this: the percent of call completed CR1=N1*100/M1 of through sub-route, the percent of call completed CR2=N2*100/M2 of circuitous sub-route.By calculating the percept of call completed of each sub-route, can demonstrate the carrying quality situation of each sub-route.
When having subsequent voice calls to initiate, A office according to configuring condition, selects the sub-route of carrying optimal quality according to the sub-route percent of call completed CR1 and the CR2 that calculate, perhaps chooser route pro rata.The route of chooser pro rata here is meant: according to the percentage of sub-route R1 and sub-route R2 chooser route recently, as working as CR1 is 80%, CR2 is 90% o'clock, and the percentage of at this moment choosing sub-route R1 is 80/ (80+90), and the percentage of choosing sub-route R2 is 90/ (80+90).So that the higher sub-route of percent of call completed can access more calling selection, the sub-route that percent of call completed is lower obtains less calling and selects like this.
With reference to figure 2, under this networking example, after a route or sub-route were selected to the calling between the callee side B office by Calling Side A office, this route or sub-route can have polytype relaying, also can only have one type relaying; The relaying of one group of same type concentrates in the group and manages, and might as well claim that this group is trunk group.This strip route has two trunk groups among the figure.When dialing the d user of B office, a user of A office under this sub-route, have two trunk groups to select, if current calling is by first trunk group (G1) carrying, A office records this trunk group G1 and makes a call number of times MG1 increase once behind the connection d user, and this trunk group G1 access success is connected times N G1 to be increased once; For a certain reason, a user calls out and does not connect the d user of B office, and at this moment A office only records this trunk group G1 and makes a call number of times MG1 increase once, and this trunk group G1 access success is connected not increase of times N G1.If a user of A office dials the d user of B office and selects second trunk group (G2), make a call number of times MG2 and the access success of second trunk group are connected times N G2 also adopt similar computational methods.
Equally, to the number of times that makes a call under each trunk group, can select to calculate behind successfully back calculating or the call through/access failure at trunk group.Each trunk group access success is connected number of times to be calculated behind call through.For the percept of call completed of trunk group, can calculate in the following moment: 1) calculate after T cycle time that sets is overtime, this cycle can be adjusted by order; 2) upgrade percent of call completed after any number of times that makes a call changes; 3) any access success is connected and is upgraded percent of call completed after number of times changes.
Along with the increase of the number of calls, A office can calculate the percept of call completed of each trunk group: the call completing rate CG1=NG1*100/MG1 of first trunk group, the call completing rate CG2=NG2*100/MG2 of second trunk group.By calculating the percept of call completed of each trunk group, can demonstrate the carrying quality condition of each trunk group.
When having subsequent voice calls to initiate, A office according to configuring condition, selects the trunk group of carrying optimal quality according to the trunk group percent of call completed CG1 and the CG2 that calculate, perhaps selects pro rata trunk group.The trunk group of selection pro rata here is meant: the percentage according to trunk group G1 and trunk group G2 is recently selected trunk group, as working as CG1 is 80%, CG2 is 90% o'clock, and the percentage of at this moment choosing trunk group G1 is 80/ (80+90), and the percentage of choosing sub-route G2 is 90/ (80+90).So that the higher trunk group of percent of call completed can access more calling selection, the trunk group that percent of call completed is lower obtains less calling and selects like this.
The method of the call route selecting of the embodiment of the invention is described below in conjunction with specific embodiment.
Specific embodiment one, as shown in Figure 3, for Calling Side according to carrying quality case selector route, again according to the situation of trunk group under the carrying quality case selector route:
1, the user of A office makes a call to the user of B office;
2, A office relatively with the percept of call completed of each sub-route of B interoffice, selects one to carry the sub-route R1 of optimal quality or choose pro rata sub-route R1;
3, sub-route chosen successfully after, A office is the percept of call completed of each trunk group under this sub-route relatively, selects the trunk group G1 of a carrying optimal quality or chooses pro rata trunk group G1;
4, trunk group chosen successfully after, the number of times M1 that makes a call that this sub-route R1 calculates in A office increases once, the number of times MG1 that makes a call of trunk group G1 increases once under this sub-route;
5, call through, the Route establishment of the calling between the user of A office and the user of B office by selecting;
6, the access success of A office calculating sub-route R1 is connected times N 1 increases once, and the access success of trunk group G1 is connected times N G1 under this sub-route increases once;
7, A office upgrades the percept of call completed of sub-route R1 and trunk group G1 by formula CR1=N1*100/M1 or CG1=NG1*100/MG1;
8, end of calling discharges the route between A user of office and the user of B office.
A more than just preferred embodiment of the inventive method, in concrete the application, if call out access failure, the access success of sub-route R1 is connected times N 1 not to be increased, and the access success of trunk group G1 is connected times N G1 under this sub-route does not increase yet.Select if sub-route is pressed percept of call completed, to trunk group still select in order precentagewise is selected or at cost the mode such as size select, A office can only calculate the number of times that makes a call, the access success of sub-route and connect number of times and percept of call completed.
Specific embodiment two, as shown in Figure 4, for only having a sub-route or selecting in order or precentagewise is selected or at cost during the mode chooser route such as size, Calling Side is according to the situation of trunk group under the carrying quality condition chooser route:
1, the user of A office makes a call to the user of B office;
2, A office relatively with B interoffice route under the percept of call completed of each trunk group, selects one to carry the trunk group G1 of optimal quality or choose trunk group G1 pro rata;
3, trunk group chosen successfully after, the number of times MG1 that makes a call that trunk group G1 calculates in A office increases once;
4, call through, the Route establishment of the calling between the user of A office and the user of B office by selecting;
5, the access success of A office calculating trunk group G1 is connected times N G1 increases once;
6, A office upgrades the percept of call completed of trunk group G1 by formula CG1=NG1*100/MG1;
7, end of calling discharges the route between A user of office and the user of B office.
A more than just preferred embodiment of the inventive method, in concrete the application, if call out access failure, the access success of trunk group G1 is connected times N G1 not to be increased.
As shown in Figure 5, the embodiment of the invention provides a kind of call route selecting device, comprising:memory cell 51, comparingunit 52,processing unit 53,computing unit 54 and timer 55.When the calling subscribe made a call, the call route selecting device was chosen routing number according to route selection source code and routing code query routing analytical table, chooses many sub-routes by routing number then; At thismoment comparing unit 52 percept of call completed of each sub-route relatively obtains the carrying quality condition of each sub-route and each trunk group;Processing unit 53 according to the carrying quality condition selective call of described each sub-route carrying optimal quality or chooser route pro rata; After sub-route was chosen successfully, comparingunit 52 is the percept of call completed of each trunk group under this sub-route relatively, obtained the carrying quality condition of each trunk group;Processing unit 53 is according to the carrying quality condition of each trunk group, selective call carrying optimal quality or select pro rata trunk group; After trunk group was chosen successfully, whatcomputing unit 54 calculated selected sub-route made a call the number of times increase once, and selected trunk group makes a call the number of times increase once under this sub-route; Call through, the Route establishment of the calling between calling subscribe and the called subscriber by selecting;Computing unit 54 calculates the access success of selected sub-route and connects the number of times increase once, and the access success of selected trunk group is connected the number of times increase once under this sub-route;Computing unit 54 is successfully connected number of times and is calculated the percept of call completed that upgrades selected sub-route by formula CR=N*100/M according to make a call number of times and sub-route of sub-route, successfully connects number of times and calculates the percept of call completed that upgrades selected trunk group under this sub-route by formula CG=NG*100/MG according to make a call number of times and trunk group of trunk group.
If the calling access failure, the access success of selected sub-route is connected number of times not to be increased, and the access success of selected trunk group is connected number of times under this sub-route does not increase yet.
The number of times that makes a call thatcomputing unit 54 calculates selected sub-route except after Route Selection success (after sub-route is chosen successfully or trunk group chosen successfully after) also can calculate the number of times that makes a call of selected sub-route behind call through/access failure; Except also can behind call through/access failure, calculate the number of times that makes a call of selected trunk group at the number of times that makes a call of the selected trunk group of trunk group rear calculating chosen successfully; Except connecting the percept of call completed that calculates selected sub-route and each trunk group after number of times changes at access success, can also be overtime in the cycle time of setting according totimer 55 after or the number of times that makes a call calculate the percept of call completed of each sub-route and each trunk group after changing.
The method of the embodiment of the invention and device are not confined to the call through situation of two interoffices, for can by the connection quality of each sub-route or each trunk group relatively, dynamically adjusting the sub-route ratio alternately between two servers of a plurality of sub-routes relation or a plurality of trunk group relation.
By method and the device of the embodiment of the invention, can preferentially select the higher route of quality or select pro rata route by judging the carrying quality of speech channel, thereby improve the percent of call completed of calling out, reduce the call loss ratio.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.