Background technology
At present, in order to realize the unification of voice network, data network and multi-media network, so that on a uniform platform, provide integrated voice, data and multimedia service for the user, produced next generation network (NGN, Next Generation Network), also be that next generation network is for unified voice, data and multimedia service is provided.Existing NGN network is in commercial preliminary stage, it can be realized " unification of three nets " on the one hand, reduce the investment of setting up individual networks, on the other hand, can utilize the powerful bandwidth of NGN network and the characteristics that grouping transmits, provide abundant and cheap communication service, for example: cheap IP speech, the broadband access of two-forty and abundant multimedia service or the like.
Media gateway is a kind of very important equipment in the NGN network.Media gateway is with the packet of media stream transition for dividing into groups of user's various physics, so that they are linked in the NGN network.Also promptly, media gateway converges and inserts user's various speech stream, data flow and media stream etc., according to the instruction of Media Gateway Controller or Softswitch, carries out the mutual of various signalings.
Voice service for the NGN network, media gateway is with user's the voice compression coded data of voice conversion for dividing into groups, be packaged into real-time transmission bag (RTP, Real-time Transport Protocol) back then and carry and be sent to the media gateway of opposite end by IP network.In the NGN network, the controlled function of voice service, promptly signaling generally adopts MGCP (Media Gateway Control Protocol, MGCP), H.248/Megaco agreement and technology such as (Media Gateway Control, media gateway controlling).
Adopting in the NGN network of MGCP or Megaco agreement at present, all is the foundation that the one-to-one relationship that the physical port and the logic port employing of media gateway are fixed is realized voice link.That is: media gateway adopts end points (MGCP, physics destination node among the corresponding Megaco) comes voice service node of mark, physically corresponding to a Z interface (physical channel, Physical channel), an end points has a unique telephone number, the speech physical channel of media gateway and the number of end points equate and each end points and physical channel between have the mapping relations of determining.This mapping relations can not change behind Media Gateway Controller on this media gateway registration.Can provide basic session service in this way.
But if carry out similar traditional PSTN (public switch telephone network, Public SwitchingTelephony Network) PBX (PBX in, Private Branch Exchange) function that provides, for example come electrotransfer, meet busy switching through and service such as Internal call, just very difficult, because this business all needs to change the above-mentioned end points and the corresponding relation of physical channel.
Summary of the invention
The object of the present invention is to provide a kind of port dynamic binding module and dynamic binding method thereof that is used for media gateway, thus services such as directly providing electrotransfer, chance to hurry on the multiport media gateway switches through, Internal call.
A kind of port dynamic binding module that is used for media gateway provided by the present invention, the signaling processing module of this media gateway comprises the some end points that distributed according to user's request by Media Gateway Controller, the speech processing module of this media gateway comprises some voice physical channel that the physics scale according to media gateway has, it is characterized in that: connect a port dynamic binding module between described signaling processing module and speech processing module, this port dynamic binding module is used for realizing the dynamic binding exchange of end points and voice physical channel; Described port dynamic binding module comprises port dynamic binding manager, terminal point information storehouse, physical channel information bank and current topology information base, and again: described port dynamic binding manager comprises Topology Management device and the end points manager, the physical channel manager that link to each other respectively with this Topology Management device; Wherein: the end points manager is used for administering and maintaining some end points, and maintenance information is deposited in the described terminal point information storehouse; The physical channel manager is used for managing, disposes and the some physical channels of maintenance, and physical channel information is deposited in the information bank of described physical channel; The Topology Management device is realized being connected and exchange between end points and the physical channel, and the topological structure of dynamic binding between end points and the physical channel is deposited in the current topology information base that this topological structure is to be preestablished by the user.
Above-mentioned port dynamic binding module, wherein: the number of the end points of signaling processing module is less than or equal to the number of the physical channel of described speech processing module.
The dynamic binding method of a kind of port dynamic binding module in speech exhalation process that the present invention also provides, comprise the following steps: 1 ') end points and physical channel initialization, promptly the physical channel state is that hook state, endpoint status are that idle condition, port are in the unbundling state; 2 ') judge whether off-hook of user: if not, then be back to step 2 '); If offhook message is sent to the physical channel manager by the physical channel, the physical channel manager upgrades corresponding physical channel information, enters next step 3 '); 3 ') subscriber dialing is waited in the physical channel; 4 ') judge whether the user finishes dialing in official hour: if not, promptly user's No dialing in long time or dial overtimely then enters step 41 '); 41 ') sending howler tone alarms to the user; 42 ') further judge whether on-hook of user: if not, continue to send howler tone and alarm to the user; If, then recover described physical channel state, be back to step 2 '); If promptly the user finishes dialing in official hour, enters step 5 '); 5 ') reception of physical channel manager and analysis institute dial the number; 6 ') judge further whether institute dials the number is intercom number, promptly belong to the physical channel in the same media gateway: if, then carry out the processing of Internal call, promptly in the process of INCOM intercom, the state of two passages conversing is off hook state, and recovering state becomes hook state after both sides' session finishes on-hook; If not, then enter next step 7 '); 7 ') described physical channel manager sends idle end-points request to described Topology Management device, and the Topology Management device is to the idle end points of end points manager application; 8 ') whether acquiescence binding end points busy: if not, then choose the associated endpoint with the physical channel acquiescence, and under go to step 11 '); If then enter next step 9 '); 9 ') further judge whether to exist other idle end points: if not, then all end points are all occupied, are back to step 41 '); If, then there is idle end points, enter step 10 '); 10 ') choose an idle end points; 11 ') this physical channel and selected end points are bound, and respectively terminal point information storehouse and current topology information base are upgraded; 12 ') send the message of finishing binding, the end points manager initiates a message to the signaling processing module of media gateway, enters normal signaling process.
In above-mentioned speech exhalation process dynamic binding method, step 11 ') in described physical channel and selected end points are carried out in the binding procedure, the rule of selected end points is: the adjacent end points from acquiescence binding end points begins to choose successively earlier, till idle end points occurring.
The dynamic binding method of a kind of port dynamic binding module in speech incoming call process that the present invention also provides, comprise the following steps: 1 ") end points and physical channel initialization; be that the physical channel state is that hook state, endpoint status are that idle condition, port are in the unbundling state: 2 ") judge whether external call request from certain end points: if not, then be back to step 2 "); If the end points manager sends the application of physical channel, enters step 3 "); 3 ") the physical channel of at first application acquiescence binding; 4 ") channel manager judges whether the physical channel of acquiescence binding is in hook state: if then enter step 5 "); If not, promptly this passage is occupied, enters step 41 "); 41 ") the Topology Management device judges whether to carry out Call Waiting: if then enter step 411 "); 411 " whether) the Topology Management device requires channel manager to send a message; so that using the user of this physical channel to hear that call waiting tone has new phone calling in to remind this user; judge the on-hook of desired physical channel by this channel manager again after waiting for a regular time then, be back to step 4 "); If not, promptly the Topology Management device is judged does not need Call Waiting, but meets busy switching through, and enters step 412 "): 412 ") whether the inquiry of Topology Management device exist other to be in the physical channel of hook state: if not, go to step 41 "); If not, then enter step 413 "); 413 ") judge that present operation is whether in official hour: if not, promptly in official hour, do not obtain the physical channel, enter step 4131 "); 4131 ") signaling processing module to described media gateway initiates a message, and the notice Media Gateway Controller is current does not have an available physical channel, to the opposite end notice busy tone of initiating this calling; If then enter step 4132 "); 4132 ") choose a physical channel that is in hook state, enter step 5 "); 5 ") end points and this physical channel are bound, in binding, upgraded corresponding binding state by the Topology Management device; 6 ") send the message informing signalling module that binding finishes, then enter normal call flow.
In above-mentioned speech incoming call process dynamic binding method, step 4132 ") in choose a rule that is in the physical channel of hook state and be: the adjacency channel from acquiescence binding physical channel begins to choose successively earlier, till idle physical channel occurring.
Utilize port Dynamic Binding Technology provided by the invention, the corresponding relation of physical channel and end points is changeless unlike prior art, each physical channel all has the end points of an acquiescence to bind with it, when the request of exhalation is arranged on the physical channel, the preferential acquiescence binding end points of this physical channel and the Media Gateway Controller (or soft switch) of adopting carries out the mutual of signaling, promptly preferentially breathe out with the identity of acquiescence binding end points, equally, when on certain end points incoming call being arranged, with preferentially incoming call being received the physical channel of this end points acquiescence binding, secondly also can carry out the corresponding relation between dynamic exchange end points and the physical channel.By this method, end points can be set up interim speech with the physical channel and be connected, and realizes both sides' conversation.According to incoming call constantly the state of physical channel come the corresponding relation of dynamic binding end points and physical channel, realized different session connections, thus on the multiport media gateway, directly provide electrotransfer, meet hurry switch through, service such as Internal call.
Embodiment
As shown in Figure 1, the present invention's port dynamic binding module 3 of being used for media gateway is connected between the signaling process mould 1 and speech processing module 2 of media gateway.The signaling processing module 1 of this media gateway comprises several that distributed according to user's request by Media Gateway Controller and is used for the end points 11 of each voice service node of mark respectively, the speech processing module 2 of this media gateway comprises the some voice physical channel 21 that has according to its physics scale, and this port dynamic binding module 3 is to be used for realizing that the end points 11 and the dynamic binding of voice physical channel 21 exchange.
Port dynamic binding module 3 comprises port dynamic binding manager 31, terminal point information storehouse 32, physical channel information bank 33 and current topology information base 34, and wherein: this port dynamic binding manager 31 comprises port manager 311, physical channel manager 312 and Topology Management device 313.
Compared with prior art, the present invention has been because of having inserted port dynamic binding module 3 between some end points 11 and some physical channels 21, thereby realized the dynamic exchange annexation between end points 11 and the physical channel 21, to realize the dynamic binding of port.
End points 11 is assigned with the back and is administered and maintained by end points manager 311 (Endpoint Manager), and maintenance information is then deposited in (Endpoint Information Database) in the terminal point information storehouse 32.
The voice physical channel 21 (Physicalchannel) that can have some according to the physics scale of media gateway.Voice physical channel 21 corresponding traditional telephone interfaces link to each other with a telephone set.These physical channels 21 are managed, dispose and safeguarded by physical channel manager 33 (Physical Channel Manager).Physical channel information is deposited in the physical channel information bank 33.
Topology Management device 34 (Topology Manager) is used to realize being connected and exchange between end points 11 and the physical channel 21.The topological structure of dynamic binding is deposited in (Current Topology) in the current topology information base 34 between end points 11 and the physical channel 21.Topological structure can be preestablished by the user, and the number of end points 11 is generally less than or equals the number of physical channel 21.
Each physical channel 21 all has the end points 11 of an acquiescence to bind with it.When the request of exhalation is arranged on the physical channel 21, preferentially adopt the binding end points 11 of these physical channel 21 acquiescences and Media Gateway Controller (or soft switch) to carry out the mutual of signaling, promptly preferentially breathe out with the identity of acquiescence binding end points 11.Equally, when on certain end points 11 incoming call being arranged, will preferentially the physical channel 21 of binding with this end points 11 acquiescences be received in incoming call.
According to the exhalation and the incoming call of speech, the dynamic binding of whole dynamic port can be decomposed into two processes.Described respectively below.
One, exhalation process
As shown in Figure 2, in the exhalation process, physical channel and end points carry out the flow process of dynamic binding, comprise the following steps:
1 ') with end points and physical channel initialization, promptly the physical channel state is a hook state, and endpoint status is an idle condition, and port is in the unbundling state:
Physical channel state channel state=on_hook
Endpoint status endpoint state=free
Binding state binding state=false
2 ') judge whether off-hook of user:
If not, then be back to step 2 ');
If offhook message is sent to the physical channel manager by the physical channel, the physical channel manager upgrades corresponding physical channel information, and this channel status channel state=off_hook enters next step 3 ')
3 ') subscriber dialing is waited in the physical channel;
4 ') judge whether the user finishes dialing in official hour:
If not, promptly user's No dialing in long time or dial overtime (time_out) then enter step 41 '):
41 ') sending howler tone (warning tone) alarms to the user;
42 ') further judge whether on-hook of user: if not, continue to send howler tone and alarm to the user; If, then recover described physical channel state channel state=off_hook, be back to step 2 ');
If promptly the user finishes dialing in official hour, enters step 5 ')
5 ') reception of physical channel manager and analysis institute dial the number;
6 ') judge that further whether institute dials the number is intercom number, promptly belongs to the physical channel in the same media gateway:
If, then carry out the processing (internal call process) of Internal call, promptly in the process of INCOM intercom, the state of two passages conversing is off hook state, and recovering state becomes hook state after both sides' session finishes on-hook;
If not, then enter next step 7 ');
7 ') described physical channel manager sends idle end-points request to described Topology Management device, and the Topology Management device is to the idle end points of end points manager application;
8 ') whether acquiescence binding end points is busy:
If not, then choose the associated endpoint with physical channel acquiescence, and under go to step 11 ');
If then enter next step 9 ');
9 ') further judge whether to exist other idle end points:
If not, then all end points are all occupied, are back to step 41 ');
If, then there is idle end points, enter step 10 ');
10 ') choose an idle end points;
11 ') this physical channel and selected end points are bound, and respectively terminal point information storehouse and current topology information base are upgraded: binding state Binding state=true, bind topological state Bindingrelation=Z1; ﹠amp; Selected Endpoint, wherein: the rule of choosing end points is: the adjacent end points from acquiescence binding end points begins to choose successively earlier, till idle end points occurring.
12 ') send the message of finishing binding, the end points manager initiates a message to the signaling processing module of media gateway, enters normal signaling process.
Two, incoming call process
As shown in Figure 3, physical channel and end points carry out the flow process of dynamic binding in the incoming call process, comprise the following steps:
1 ") with physical channel and endpoint initialization, promptly the physical channel state is that hook state, endpoint status are that idle condition, port are in the unbundling state:
Physical channel state channel state=on_hook
Endpoint status endpoint state=free
Binding state binding state=false
2 ") judge whether external call request from certain end points:
If not, then be back to step 2 ");
If the end points manager sends the application (Free channel request) of physical channel, enters step 3 ");
3 ") the physical channel of at first application acquiescence binding;
4 ") physical channel manager (Physical channel manager) judges whether the physical channel of acquiescence binding is in hook state:
If then enter step 5 ");
If not, promptly this passage is occupied, enters step 41 ");
41 ") the Topology Management device judges whether to carry out Call Waiting:
If then enter step 411 ");
411 " whether) the Topology Management device requires channel manager to send a message; so that using the user of this physical channel to hear that call waiting tone has new phone calling in to remind this user; judge the on-hook of desired physical channel by this channel manager again after waiting for a regular time then, be back to step 4 ");
If not, promptly the Topology Management device is judged does not need Call Waiting, but meets busy switching through, and enters step 412 "):
412 ") whether the inquiry of Topology Management device exists the physical channel of other hook state: if not, go to step 41 "); If not, then enter step 413 ");
413 ") judge that present operation is whether in official hour:
If not, promptly in official hour, do not obtain the physical channel, enter step 4131 ");
4131 ") signaling processing module to described media gateway initiates a message, and the current physical channel of notice Media Gateway Controller is unavailable, to the opposite end notice busy tone of initiating this calling;
If then enter step 4132 ");
4132 ") choose a physical channel that is in hook state, the rule of choosing is: the adjacency channel from acquiescence binding physical channel begins to choose successively earlier, till idle physical channel occurring, enters step 5 ");
5 ") end points and this physical channel are bound, in binding, upgraded corresponding binding state: binding relationship Binding Relation=Ingress endpoint by the Topology Management device; ﹠amp; Zi; Binding state (incoming call end points) Binding state=True
6 ") send the message informing signalling module that binding finishes, then enter normal call flow (external call process).
Utilize method recited above, the business that can provide complicated signaling of multiple original needs or PBX PBX to participate in, for example incoming call switches through, calls forward on busy, Internal call or the like.