Embodiment
Below in conjunction with accompanying drawing the method for speech business Rapid Establishment provided by the invention and the embodiment of device are elaborated.
Provide at first by reference to the accompanying drawings the embodiment of speech business method for fast establishing of the present invention.
Be the flow chart of the described speech business method for fast establishing of this embodiment shown in the accompanying drawing 2, next the step shown in the accompanying drawing 2 elaborated.
S201: for each time slot creates a priority attribute, described priority attribute records and upgrades the priority tag of corresponding time slot.
Consider among the both sides that set up speech business, the opposite end might also in time not discharge after one side discharged, perhaps opposite end fault so that voice channel time slot CIC do not discharge at all, thereby cause the always failure of calling again initiated, discharge until the voice channel time slot CIC of opposite end is normal.In order to solve this technical problem, the present invention proposes a kind of new voice channel time slot CIC dynamic allocation method: for each time slot creates a priority attribute.Wherein, the scope that priority value can be set be 1-30(the 0th time slot generally as clock signal, 16 time slots generally as the signalling time slot, so these two time slots do not arrange priority), be worth littlely, priority-level is higher.
In other embodiments, can when initial condition, arrange described priority tag according to the number order of all time slots.
S202: receive speech business and set up request.
S203: select the highest corresponding time slot of priority tag of priority-level.
S204: set up speech business by the selected time slot of step S203.
Calling according to the end subscriber initiation that receives, can be according to the priority-level order, selection takies the high time slot of priority-level and sets up speech business, thereby guarantee signaling gateway of softswitch Rapid Establishment PRI audio call, solved and called out time and again unsuccessful problem in the signaling gateway of softswitch in PRI audio call a period of time, and had certain System Fault Tolerance performance; And guarantee that call setup is the assurance of data service reliable exchange in the signaling switching network fast, so the present invention has improved the reliability of PRI audio call in the signaling gateway of softswitch.
In other embodiments, further execution in step S205 after the step S204.
S205: the priority tag that upgrades all time slots.Be specifically as follows: the priority-level of the selected time slot of emptying step S203; Increase the priority-level of other non-selected time slots.Namely, after selective sequential takies the highest time slot of priority-level and sets up speech business according to priority-level, the priority-level that the time slot that this priority-level is the highest is corresponding can be cleared (for example priority value clear 0), is in occupied state to identify this time slot; Increase simultaneously other not priority-level (for example priority value successively-1) of the selected time slot CIC that takies.By upgrading the priority tag of all time slots, during so that again make a call, can be according to the priority-level of each time slot after upgrading, again select to take the highest time slot of priority-level, thereby further guarantee signaling gateway of softswitch Rapid Establishment PRI audio call, improved the reliability of PRI audio call in the signaling gateway of softswitch.
In other embodiments, further execution in step S206 after the step S205.
S206: after the selected time slot of step S203 was released, the priority-level of upgrading described time slot was minimum.During so that again make a call, if there is other time slots CIC idle, can removes to take the time slot CIC of other priority-level the highest (being that priority value is minimum), and can not take this time slot CIC that has just discharged; Like this, call out and can process slowly because of the opposite end signaling, or the corresponding opposite end of the time slot that has just discharged time slot does not in time discharge and the call failure problem brought; Realization dynamically updates the characteristics such as performance statistics of CIC, thereby guarantees the Rapid Establishment of speech business.
By priority attributes being set and selecting the high time slot of priority-level to set up speech business, realized the Rapid Establishment based on the speech business calling of PRI link, and has certain System Fault Tolerance performance, improved the reliability of PRI audio call in the signaling gateway of softswitch, realized that signaling gateway of softswitch is used for the stability of the PRI audio call operation of internetwork-ing.
Next provide by reference to the accompanying drawings the embodiment of speech business Rapid Establishment device of the present invention.
Be the Organization Chart of the described speech business Rapid Establishment of this embodiment device shown in the accompanying drawing 3, described device comprises creating unit 31, receiving element 32, selected cell 33 and processing unit 34.
Described creating unit 31 is used to each time slot to create a priority attribute, and described priority attribute records and upgrade the priority tag of corresponding time slot.Wherein, the scope that priority value can be set be 1-30(the 0th time slot generally as clock signal, 16 time slots generally as the signalling time slot, so these two time slots do not arrange priority), be worth littlely, priority-level is higher.
Described device can also comprise the initialization unit 30 that links to each other with described creating unit 31, and described initialization unit 30 is used for arranging described priority tag according to the number order of all time slots when initial condition.
Described receiving element 32 links to each other with described creating unit 31, is used for receiving speech business and sets up request.
Described selected cell 33 links to each other with described receiving element 32, is used for selecting the highest corresponding time slot of priority tag of priority-level.The calling that the end subscriber that described selected cell 33 receives according to receiving element 32 is initiated according to the priority-level order, is selected the highest time slot of priority-level.
Described processing unit 34 links to each other with described selected cell 33, is used for setting up speech business by described selected cell 33 selected time slots.Described processing unit 34 takies the high time slot of described selected cell 33 selected priority-level and sets up speech business, thereby guarantee signaling gateway of softswitch Rapid Establishment PRI audio call, solved and called out time and again unsuccessful problem in the signaling gateway of softswitch in PRI audio call a period of time, and have certain System Fault Tolerance performance, improved the reliability of PRI audio call in the signaling gateway of softswitch.
In other embodiments, described device also comprises the first updating block 35 that links to each other with described processing unit 34, and described the first updating block 35 is used for upgrading the priority tag of all time slots.For example: empty the priority-level of the selected time slot of described selected cell, and the priority-level that increases other non-selected time slots.Namely, described processing unit 34 takies the highest time slot of described selected cell 33 selected priority-level set up speech business after, the priority-level that the time slot that this priority-level is the highest is corresponding can be cleared (for example priority value clear 0), is in occupied state to identify this time slot; Increase simultaneously other not priority-level (for example priority value successively-1) of the selected time slot CIC that takies.By upgrading the priority tag of all time slots, during so that again make a call, can be according to the priority-level of each time slot after upgrading, again select to take the highest time slot of priority-level, thereby further guarantee signaling gateway of softswitch Rapid Establishment PRI audio call, improved the reliability of PRI audio call in the signaling gateway of softswitch.
In other embodiments, described device also comprises the second updating block 36 that links to each other with described the first updating block 35, described the second updating block 36 is used for after described selected cell 33 selected time slots are released, and the priority-level of upgrading described time slot is minimum.Like this, again receive when making a call, if there is other time slots CIC idle, can removes to take the time slot CIC of other priority-level the highest (being that priority value is minimum), and can not take this time slot CIC that has just discharged; Like this, call out and can process slowly because of the opposite end signaling, or the corresponding opposite end of the time slot that has just discharged time slot does not in time discharge and the call failure problem brought.
Next provide the preferred embodiment of technique scheme.
The distribution principle of the audio call CIC that paper is common.
Under normal circumstances, being distributed in the tables of data of time slot speech channel CIC should be deposited continuously, and be as shown in table 1 below.
| Time-gap number (CIC) | Whether take |
| 1 | Yes |
| 2 | Yes |
| 3 | No |
| 4 | No |
| 5 | No |
| ... | ... |
| 31 | No |
Table 1 Time Slot Occupancy table.
Calling terminal A follows the principle of order-assigned when selecting out CIC to set up speech business, i.e. sequential search Time Slot Occupancy table 1 from small to large, and first unappropriated CIC 3 is target CIC; Inner at the A of end office (EO), CIC 3 is occupied; Under normal circumstances, called end B is after receiving the SETUP message of calling terminal A, and the CIC numbering CIC3 that carries according to this message searches respective objects; In the B of end office (EO), CIC 3 is therefore occupied.Like this, once conversation is successfully established.In the normal talking process, Time Slot Occupancy situation such as the table 2 of the A of end office (EO) and B are shown in 3.
| Time-gap number (CIC) | Whether take |
| 1 | Yes |
| 2 | Yes |
| 3 | Yes |
| 4 | No |
| 5 | No |
| ... | ... |
| 31 | No |
In table 2 normal talking, calling terminal A Time Slot Occupancy table.
| Time-gap number (CIC) | Whether take |
| 1 | Yes |
| 2 | Yes |
| 3 | Yes |
| 4 | No |
| 5 | No |
| ... | ... |
| 31 | No |
In table 3 normal talking, called end B Time Slot Occupancy table.
At this moment, normally discharge if take the user's communication of time slot CIC 2, the A of end office (EO), Time Slot Occupancy situation such as the table 4 of B are shown in 5.
| Time-gap number (CIC) | Whether take |
| 1 | Yes |
| 2 | No |
| 3 | Yes |
| 4 | No |
| 5 | No |
| ... | ... |
| 31 | No |
Table 4CIC 2 normally discharges calling terminal A Time Slot Occupancy table.
| Time-gap number (CIC) | Whether take |
| 1 | Yes |
| 2 | No |
| 3 | Yes |
| 4 | No |
| 5 | No |
| ... | ... |
| 31 | No |
Table 5CIC 2 normally discharges called end B Time Slot Occupancy table.
At this moment, if the calling subscriber makes a call again, according to the minimum unappropriated distribution principle of CIC, the calling subscriber will select time slot CIC 2 to call out voice channel time slot as this again, thereby again initiates call.
With reference to the accompanying drawings 4, the flow chart of primary rate interface call flow, the PRI call flow is: S401: the A(PRI A of end office (EO)) to the B(PRI B of end office (EO)) initiate SETUP(and set up request message); S402: the B of end office (EO) returns CALLPROCEEDING(call proceeding message to the A of end office (EO)); S403: the B of end office (EO) returns the ALERTING(call alert message to the A of end office (EO)); S404: the B of end office (EO) sends the CONNECT(call setup message to the A of end office (EO)); S405: the A of end office (EO) returns CONNECT ACK(to the B of end office (EO) and sets up response message); S406: the A of end office (EO) and the B of end office (EO) communicate; S407: end of conversation, the A of end office (EO) initiates DISCONNECT(releasing request message to the B of end office (EO)); S408: the B of end office (EO) returns the RELEASE(call release message to the A of end office (EO)); S409: the A of end office (EO) returns the normal release message of RELEASE COMPLETE(to the B of end office (EO)), end of conversation, the shared time slot of conversing is normally discharged.
Such as table 2, shown in 3, taken CIC 1,2,3 voice channel time slot in the A of end office (EO) and the B of the end office (EO) communication process.The party A-subscriber of end office (EO) who takies CIC 2 initiatively initiates release message DISCONNECT, for a certain reason (as, information drop-out, end office's B upper-layer service is unusual, DSP does not respond etc.) cause the CIC 2 of the B of end office (EO) normally not discharge, and the CIC 2 of the A of end office (EO) has discharged, in this case, Time Slot Occupancy table such as the table 6 of the A of end office (EO) and B are shown in 7.
| Time-gap number (CIC) | Whether take |
| 1 | Yes |
| 2 | No |
| 3 | Yes |
| 4 | No |
| 5 | No |
| ... | ... |
| 31 | No |
Table 6CIC 2 normally discharges calling terminal A Time Slot Occupancy table.
| Time-gap number (CIC) | Whether take |
| 1 | Yes |
| 2 | Yes |
| 3 | Yes |
| 4 | No |
| 5 | No |
| ... | ... |
| 31 | No |
Table 7CIC 2 discharges called end B Time Slot Occupancy table unusually.
From the A of end office (EO), call out normally release, this moment, the A of end office (EO) made a call again, and according to CIC static allocation principle, the A of end office (EO) can distribute CIC 2 again; When SETUP message arrives the B of end office (EO), because the CIC 2 of the B of end office (EO) does not discharge directly loopback failure yet.Thereby the always failure of calling that causes the A of end office (EO) to initiate, until CIC 2 normal releases of the B of end office (EO).
By above-mentioned analysis, the PRI speech business can not the Rapid Establishment reason be to distribute CIC with static routing table as foundation, does not consider that this discharges rear opposite end and may also in time discharge, and perhaps opposite end fault so that CIC do not have to discharge at all.
The present invention is exactly for this phenomenon, proposes a kind of method of new CIC dynamic assignment, guarantees PRI voice call service Rapid Establishment, and has certain System Error-tolerance Property, thereby promote the performance of switching network.Be specially: each CIC increases a priority attribute, the priority-level numeric representation, and number range is 1-30, is worth littlely, priority is higher.When initial, priority is arranged sequentially according to time-gap number.Initial CIC takies table (0 time slot is generally as clock signal, and 16 time slots are generally as the signalling time slot) as shown in table 8.
| Time-gap number (CIC) | Whether take | Priority |
| 1 | No | 1 |
| 2 | No | 2 |
| 3 | No | 3 |
| 4 | No | 4 |
| 5 | No | 5 |
| ... | ... | ... |
| 31 | No | 30 |
Table 8 CIC with priority of the present invention takies table.
Taking time slot can take according to the rank size order of priority, and in case occupied, and the priority value of this time slot can be by clear 0, and the priority value of other unappropriated CIC successively-1.All be in the conversation such as 3 continuous callings, at this moment, according to priority-level, time slot CIC 1,2,3 can sequentially be taken, and simultaneously, their priority value all becomes 0.And other unappropriated time slot priority values equal-3.As shown in table 9.
| Time-gap number (CIC) | Whether take | Priority |
| 1 | Yes | 0 |
| 2 | Yes | 0 |
| 3 | Yes | 0 |
| 4 | No | 1 |
| 5 | No | 2 |
| ... | ... | ... |
| 31 | No | 27 |
Table 9CIC 1,2,3 is occupied.
Discharge a certain CIC, then the priority-level of this CIC can be reduced to minimum.When this has guaranteed again to make a call, if there are other CIC idle, can remove to take the CIC of other priority values minimum (except 0), and can not take this CIC that has just discharged.Like this, call out not and can process slowly or this time slot does not in time discharge and the call failure problem brought because of the opposite end signaling.Time Slot Occupancy table after CIC 2 is released is as shown in table 10.
| Time-gap number (CIC) | Whether take | Priority |
| 1 | Yes | 0 |
| 2 | No | 28 |
| 3 | Yes | 0 |
| 4 | No | 1 |
| 5 | No | 2 |
| ... | ... | ... |
| 31 | No | 27 |
Table 10CIC 2 discharges.
When local terminal makes a call again, this moment, the selection of CIC numbering can be CIC 4 but not CIC 2, thereby avoided to greatest extent calling out the call failure problem that unusually causes because of opposite end CIC release, improved the Rapid Establishment that speech business is called out, also promoted simultaneously the performance of system, made system have certain fault-tolerant ability.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.