Summary of the invention
The invention provides a kind of Apparatus and method for of realizing a multimachine, the problem of each port phase mutual interference during with multimachine of solution available technology adopting.
The invention provides following technical scheme:
A kind of method that realizes a multimachine is provided, and it comprises step:
A, port link information table is set, sets up the corresponding relation between user totem information and the port information, and write down the current state of each port;
B, when receiving call request, utilize the user totem information inquiry port link information table of this call request correspondence whether to connect with decision;
If C decision connects, then utilize idle port to set up to call out to connect and the status modifier of port described in the port link information table is seizure condition, otherwise the refusal call request.
Wherein:
Described method also comprises step D: the status modifier with port described in the port link information table when end of calling is an idle condition.
Described step B is specially:
When receiving call request, utilize the user totem information inquiry port link information table of this call request correspondence, judge whether described user ID binds a plurality of ports, if then further whether decision connects, otherwise otherwise press general flow and handle.
For calling subscriber's side, described step B is specially:
When receiving call request, utilize the user totem information inquiry port link information table of this call request correspondence, judge whether described user ID binds a plurality of ports, if then directly decision connects, handle otherwise press general flow.
For called subscriber's side, described step B is specially:
When receiving call request, utilize the user totem information inquiry port link information table of this call request correspondence, judge whether described user ID binds a plurality of ports, if, then obtain the current state of each port to judge whether to exist idle port according to described port information, if then decision connects, otherwise decision does not connect;
If described user ID is not bound a plurality of ports, then press general flow and handle.
Described port link information table comprises user totem information field, binding information field, port information field and each port status field.
Described port link information table also comprises the home gateway identification field.
A kind of communication equipment of realizing a multimachine is stored with port link information table, has defined the corresponding relation between user totem information and the port information, and records the current state of each port, and described communication equipment comprises:
The information receiving and transmitting module is used for the receipt of call solicited message, and described information is sent to protocol stack module handles;
Protocol stack module is resolved described call request information, obtaining user totem information, and the user totem information that it obtains is sent to the number analysis module handles;
The number analysis module is utilized described user totem information inquiry port link information table, and whether decision sets up to call out connects and the notification call processing module;
Call processing module is set up to call out according to the notice of number analysis module and is connected or the refusal call request, connects if set up to call out, and then utilizes idle port to set up to call out to connect and the status modifier of port described in the port link information table is seizure condition.
Call processing module is seizure condition and sends the request of taking out stitches the status modifier of port described in the port link information table when end of calling.
When one side communication equipment is received the request of this side customer call, the number analysis module is utilized calling subscriber identification information inquiry port link information table, judges whether described user ID binds a plurality of ports, if, whether then decision connects, connect otherwise handle decision by conventional method.
When one side communication equipment is received the call request of opposite side, the number analysis module is utilized CSI called subscriber identification information inquiry port link information table, judge whether described user ID binds a plurality of ports, if, then the current state of obtaining each port according to described port information to be judging whether to exist idle port, if having idle port then connect, otherwise decision does not connect, if user ID is not bound a plurality of ports, then handle decision and whether connect by conventional method.
Described communication equipment is home media gateway or Media Gateway Controller.
Described port link information table comprises user totem information field, binding information field, port information field and each port status field.
Described port link information table also comprises the home gateway identification field.
The present invention is by setting up the corresponding relation between user totem information and a plurality of port, whether the state decision according to each port when receiving call request sets up calling, the separate work of each port in multimachine of realization, thereby saved number resource and user cost, improved percept of call completed and user impression.
Embodiment
Core concept of the present invention is: a plurality of port correspondences of home media gateway a number (also claiming the multiport binding number), each port is hung a user terminal down, be the shared numbers of a plurality of user terminals, when wherein one or more ports use, other idle port still can use, and realizes that a plurality of ports do not disturb mutually.
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
See also Fig. 2, a kind of method that realizes a multimachine, this method mainly may further comprise the steps:
S1, port link information table is set, sets up the corresponding relation between user totem information and the port information, and write down the current state of each port;
S2, when receiving call request, utilize the user totem information inquiry port link information table of this call request correspondence, judge whether described user ID binds a plurality of ports, if then further whether decision connects;
If S3 decision connects, then utilize idle port to set up to call out to connect and the status modifier of port described in the port link information table is seizure condition, and behind end of calling, be idle condition the status modifier of port described in the port link information table; If do not determine to connect, then refuse call request;
For calling subscriber's side, described step S2 is specially:
When receiving call request, utilize the user totem information inquiry port link information table of this call request correspondence, judge whether described user ID binds a plurality of ports, if then directly decision connects, handle otherwise press general flow.
For called subscriber's side, described step S2 is specially:
When receiving call request, utilize the user totem information inquiry port link information table of this call request correspondence, judge whether described user ID binds a plurality of ports, if, then obtain the current state of each port to judge whether to exist idle port according to described port information, connect if having idle port then determine, otherwise decision does not connect;
If described user ID is not bound a plurality of ports, then press general flow and handle.
Wherein, the design of the field of above-mentioned port link information table is as follows:
The home gateway sign |
Subscriber Number |
Binding information |
Port numbers |
Port status |
In the present embodiment, home gateway sign refers to initiate or the home media gateway number of receipt of call request, Subscriber Number comprises rear subscriber number or called number, binding information is used to identify described Subscriber Number and whether binds a plurality of ports, port numbers refers to described Subscriber Number corresponding port number, Subscriber Number correspondence for a plurality of ports of binding a plurality of port numbers, and port status refers to the current state of living in of each port.Obviously, described port link information table also can resolve into a plurality of information tables to realize above-mentioned functions.
See also Fig. 2, for realizing said method, a kind of home media gateway or Media Gateway Controller are provided, be stored with port link information table, defined the corresponding relation between user totem information and the port information, and recording the current state of each port, described home media gateway or Media Gateway Controller comprise: information receiving and transmitting module, protocol stack module, number analysis module and call processing module.
Wherein:
Described information receiving and transmitting module is used for the receipt of call solicited message, and described information is sent to protocol stack module handles;
Described protocol stack module is resolved described call request information, obtaining user totem information, and the user totem information that it obtains is sent to the number analysis module handles;
Described number analysis module is utilized described user totem information inquiry port link information table, and whether decision sets up to call out connects and the notification call processing module;
Described call processing module, set up calling connection or refusal call request according to the notice of number analysis module, connect if set up to call out, then utilize idle port set up to call out to connect and the status modifier of port described in the port link information table is seizure condition, and under the end of calling state, the status modifier of port described in the port link information table is seizure condition and sends the request of taking out stitches.
If when a side home media gateway or Media Gateway Controller are received the request of this side customer call, the number analysis module is utilized calling subscriber identification information inquiry port link information table, judge whether described user ID binds a plurality of ports, if, whether then directly decision connects, connect otherwise handle decision by conventional method.
If when a side home media gateway or Media Gateway Controller are received the call request of opposite side, the number analysis module is utilized CSI called subscriber identification information inquiry port link information table, judge whether described user ID binds a plurality of ports, if, then obtain the current state of each port to judge whether to exist idle port according to described port information, if have idle port then connect, otherwise decision does not connect, if user ID is not bound a plurality of ports, then handle decision and whether connect by conventional method.
Set forth with specific embodiment below.
Seeing also Fig. 3, is the calling procedure figure that the present invention realizes a multimachine method, comprises the following steps:
S11, receipt of call request;
The rear subscriber number that S12, basis are obtained is searched port link information table, whether binds a plurality of ports to judge described rear subscriber number, if not, then press general flow and handle; If then go to step S13;
S13, foundation are called out and are connected, and revise port link information table, and this port status of calling out use is revised as seizure condition, continue execution in step S14;
Whether S14, judgement calling finish, and finish if call out as yet, then continue execution in step S14, otherwise go to step S15;
S15, remodify port link information table, described port status is revised as idle condition, and send the request of taking out stitches.
Seeing also Fig. 4, is the called flow figure that the present invention realizes a multimachine method, comprises the following steps:
S111, receipt of call request;
The called number that S112, basis are obtained is searched port link information table, whether binds a plurality of ports to judge described called number, if not, then press general flow and handle; If then go to step S113;
S113, in port information table, obtain corresponding port information, and judge whether to exist idle port, if there is no, refuse described call request according to each port current state according to called number; If exist, then go to step S114;
S114, foundation are called out and are connected, and revise port link information table, and this port status of calling out use is revised as seizure condition, continue execution in step S115;
Whether S115, judgement calling finish, and finish if call out as yet, then continue execution in step S15, otherwise go to step S116;
S116, remodify port link information table, described port status is revised as idle condition, and send the request of taking out stitches.
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.