Disclosure of Invention
The technical problem to be solved by the present invention is to provide a forced-inserting call method, a forced-inserting call device and a call system, which can effectively simplify the forced-inserting interaction process of the third user terminal and shorten the setup time of the forced-inserting call, aiming at the above-mentioned deficiencies in the prior art.
The technical scheme adopted for solving the technical problem of the invention is that the forced insertion calling method comprises the following steps:
in the normal conversation of the two-party conversation user terminals, the third user terminal calls one of the two-party conversation user terminals;
if the third user terminal needs to be inserted strongly, a command for releasing one party which is not called by the third user terminal in the two-party communication user terminals is issued;
meanwhile, the media resources established by the third user terminal calling party in the two-party conversation user terminals are not released, and the media resources are reported as the media resources for the conversation with the third user terminal;
and the third user terminal establishes a call with one of the two-party call user terminals called by the third user terminal, so that the break-in is realized.
Preferably, before issuing a command to release one of the two-party communication user terminals that is not called by the third user terminal, the method further includes:
judging whether forced interpolation is needed according to the priority level of the third user terminal:
and when the priority of the third user terminal is higher than the priority of one party which is not called by the third user terminal in the two-party communication user terminals, judging that the third user terminal needs to be inserted forcibly.
Preferably, when the priority of the third user terminal is not higher than the priority of the party which is not called by the third user terminal in the two-party communication user terminals, it is determined that the third user terminal does not need to be inserted forcibly, and the normal communication of the two-party communication user terminals is maintained.
Preferably, the media resources already established by the third user terminal in the two-party call user terminals at least include IP addresses, RTP port numbers, and codec resources.
Preferably, the two-party call user terminals are a first user terminal and a second user terminal, and the first user terminal or the second user terminal is a call object of a third user terminal.
A kind of forced insertion call device, set up in the media gateway, is used for receiving the order of the soft switch equipment and finishing the call processing of forced insertion, including conversation module, processing module and forced insertion module, wherein:
the call module is used for controlling normal call when the users of the two parties call;
the processing module is used for issuing a command for releasing one party which is not called by the third user terminal in the two-party call user terminals when the third user terminal calls one party in the two-party call user terminals and needs to be inserted forcibly; meanwhile, the media resources established by the third user terminal calling party in the two-party conversation user terminals are not released, and the media resources are reported to the soft switch equipment as the media resources for the conversation with the third user terminal;
and the break-in module is used for establishing the communication between the third user terminal and the party called by the third user terminal in the two-party communication user terminals when receiving a command of releasing the party which is not called by the third user terminal in the two-party communication user terminals.
Preferably, the softswitch device includes a determining module, and the determining module is configured to determine whether to force insertion is required according to a priority level of the third user terminal before issuing a command to release one of the two-party call user terminals that is not called by the third user terminal:
and when the priority of the third user terminal is higher than the priority of one party which is not called by the third user terminal in the two-party communication user terminals, the judging module judges that the third user terminal needs to be inserted forcibly.
Preferably, when the priority of the third user terminal is not higher than the priority of the party which is not called by the third user terminal in the two-party communication user terminals, the judging module judges that the third user terminal does not need to be forced to be inserted.
Preferably, the media resources established by the third user terminal for the calling party in the two-party call user terminals at least include IP addresses, RTP port numbers, and codec resources.
A communication system comprises the break-in calling device.
The invention has the beneficial effects that:
in the method and the device for the forced call, when the soft switch device receives a call sent by a third user terminal C with high priority to a first user terminal A which is in conversation, after a command for releasing a second user terminal is issued to a media gateway, the media gateway does not release the established media resource of the called first user terminal, but reports the media resource to the soft switch device as the media resource in conversation with the forced user terminal, thereby simplifying the process of releasing the established media resource and recreating the media resource, quickening the establishment time of the forced call and improving the service perception of the user.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the method for forced calling, the device for forced calling, and the communication system of the present invention are further described in detail below with reference to the accompanying drawings and the detailed description.
In order to solve the problem of complex flow interaction of the current forced insertion call, the present embodiment provides a forced insertion call method and a corresponding forced insertion call device, which improve the service awareness of the user by simplifying the process of releasing established media resources and recreating media resources.
The soft switch equipment is a device and a system which provide the separation of the call control function and the media processing by utilizing program-controlled software based on the packet network. The basic meaning of the soft switch device is to separate the call control function from the media gateway (transport layer), and realize the basic call control function through software, thereby realizing the separation of call transmission and call control, and establishing a separate plane for the control, switch and software programmable functions.
The network of the soft switch device architecture comprises a soft switch device, a media gateway, a signaling gateway and an access gateway, and the functions are introduced as follows:
the Soft Switch equipment (Soft Switch) mainly provides functions of connection control, translation and routing, gateway management, call control, bandwidth management, signaling, security, call detail recording and the like.
A Media Gateway (MG) completes functions such as Media stream conversion under the control of a soft switch device, and is mainly used for relay access. The media gateway provides media mapping and transcoding functions between the IP network and the circuit switched network (PSTN), i.e., terminates the circuit switched network infrastructure (trunk, loop, etc.), packetizes the media stream and transmits the packetized media stream over the packet network.
A Signaling Gateway (SG) completes the function of converting Signaling between a circuit switching network and a packet switching network (based on IP). The signaling gateway can effectively realize the intercommunication of the signaling between the circuit switching network and the packet network. The signaling gateway receives and sends standard SS7 signaling messages on the circuit switching network side, and adopts an adaptation layer protocol and a transport layer protocol of an IETF signaling transfer working group (SIGTRAN) standard on the packet network side, so that the adaptation capability is strong, the functions are complete, and the reliability is high.
An Access Gateway (AG for short) is used to directly Access a user terminal to an IP packet network, such as a general analog user, ISDN, and the like. Media mapping and transcoding functions are provided between the IP network and the user terminal, packetizing the media stream and transmitting the packetized media stream over the packet network.
As shown in fig. 1, a method for forced call includes the steps of:
in the normal conversation of the two-party conversation user terminals, the third user terminal calls one of the two-party conversation user terminals;
if the third user terminal needs to be inserted strongly, a command for releasing one party which is not called by the third user terminal in the two-party communication user terminals is issued;
meanwhile, the media resources established by the third user terminal calling party in the two-party conversation user terminals are not released, and the media resources are reported as the media resources for the conversation with the third user terminal;
and the third user terminal establishes a call with one of the two-party call user terminals called by the third user terminal, so that the break-in is realized.
Before issuing a command for releasing one party which is not called by the third user terminal in the two-party call user terminals, the method further comprises the following steps:
judging whether forced interpolation is needed according to the priority level of the third user terminal:
and when the priority of the third user terminal is higher than that of the party which is not called by the third user terminal in the two-party communication user terminals, judging that the third user terminal needs to be inserted forcibly.
And when the priority of the third user terminal is not higher than the priority of one party which is not called by the third user terminal in the two-party communication user terminals, judging that the third user terminal does not need to be inserted forcibly, and keeping the normal communication of the two-party communication user terminals.
Preferably, the media resources that have been established by the third user terminal in the two-party call user terminal include at least an IP address, an RTP port number, and codec resources.
The two-party communication user terminals are a first user terminal and a second user terminal, and the first user terminal or the second user terminal is a call object of a third user terminal.
As shown in fig. 2, a forced call device is disposed in a media gateway 2, and configured to receive an instruction from a soft switch device 1 to complete a forced call process, and includes a call module 21, a processing module 22, and a forced call module 23, where:
the conversation module 21 is used for controlling normal conversation when the users of the two parties converse;
the processing module 22 is configured to issue a command to release one of the two-party calling user terminals that is not called by the third user terminal when the third user terminal calls one of the two-party calling user terminals and a strong insertion is required; meanwhile, the media resources established by the third user terminal calling party in the two-party conversation user terminals are not released, and the media resources are reported to the soft switch device 1 as the media resources for the conversation with the third user terminal;
and the break-in module 23 is configured to establish a call between the third user terminal and a party called by the third user terminal in the two-party call user terminals when receiving a command to release the party not called by the third user terminal in the two-party call user terminals.
The soft switch device 1 comprises a judging module 11, the judging module 11 is used for judging whether to need to break in according to the priority level of the third user terminal before issuing a command for releasing one party which is not called by the third user terminal in the two-party call user terminals:
when the priority of the third user terminal is higher than the priority of one of the two-party communication user terminals which is not called by the third user terminal, the judging module 11 judges that the third user terminal needs to be inserted forcibly.
When the priority of the third user terminal is not higher than the priority of one of the two-party communication user terminals which is not called by the third user terminal, the judging module 11 judges that the third user terminal does not need to be inserted.
The processing module at least comprises IP address, RTP port number and coding and decoding resource for the media resource which is set by the third user terminal in the two-party communication user terminals.
The following will explain the specific flow of the break-in call of the present invention in detail with reference to the third user terminal break-in call schematic diagram shown in fig. 3 as follows:
firstly, a first user terminal under the first media gateway MG1 and a second user terminal under the second media gateway MG2 are communicated.
The first user terminal is located under the first media gateway MG1, and the second user terminal is located under the second media gateway MG 2. When the first user terminal goes off-hook, the first media gateway MG1 sends a Notify command to the softswitch 1 to report the off-hook event. The soft switch device 1 sends a Modify command to the first media gateway MG1, waits for the user to input the called number, the first user hears the dial tone and dials the second user terminal number, and the first media gateway MG1 sends a Notify command to the soft switch device 1, and sends the called number to the soft switch device 1. The soft switch device 1 sends a call request to the second media gateway MG2 according to the called number, and after the second media gateway MG2 accepts the call, the first user terminal and the second user terminal are in normal conversation;
and step two, a third user terminal under the third media gateway MG3 dials the first user terminal number, the third media gateway MG3 sends a call request to the soft switch device 1, and the request information comprises a called number.
And the third user terminal under the third media gateway MG3 goes off-hook, and the third media gateway MG3 sends a Notify command to the softswitch 1 to report an off-hook event. The soft switch device 1 sends a Modify command to the third media gateway MG3, waits for the user to input the called number, the third user listens to the dial tone, dials the first user terminal number, and the third media gateway MG3 sends a Notify command to the soft switch device 1, and sends the called number to the soft switch device 1;
step three, the soft switch device 1 sends a call request to the first media gateway MG 1.
The softswitch 1 analyzes the called number, inquires that the first user terminal is located at the first media gateway MG1 according to the first user terminal number, and sends a Modify command to the first media gateway MG1 to send a call request.
And step (iv), the first media gateway MG1 sends the called number busy information to the soft switch device 1.
The first media gateway MG1 inquires that the first user terminal is talking with the second user terminal, and sends a Notify command to the soft switch device 1, where the command includes busy information of the called number.
Step five, the soft switch device 1 issues a command for releasing the call with the second user terminal and a command for establishing the call between the first user terminal and the third user terminal to the first media gateway MG 1.
The soft switch device 1 inquires the service attribute of the third user terminal to the service server, and judges whether the break-in is needed according to the priority level of the third user terminal:
if the priority level of the third user terminal is high priority level and the break-in is judged to be needed, a command of releasing the call with the second user terminal and a command of establishing the call between the first user terminal and the third user terminal are issued to the first media gateway MG 1;
if the priority level of the third user terminal is the common priority level, judging that the break-in is not needed, and keeping the existing conversation between the first user terminal and the second user terminal.
Step sixthly, the soft switch device 1 issues a command of releasing the second user terminal to the second media gateway MG2, and the second media gateway MG2 releases the media resource of the second user terminal.
The soft switch device 1 issues a command to release the second user terminal to the second media gateway MG2, and the second media gateway MG2 releases the media resource of the second user terminal.
And step (c), the first media gateway MG1 reserves the media resource of the call between the first user terminal and the second user terminal, and reports the media resource to the soft switch device 1 as the media resource of the forced call.
The first media gateway MG1 reserves media resources of a call between the first user terminal and the second user terminal, where the media resources include an IP address, an RTP port number, coding and decoding resources, and the like, and report the media resources to the soft switch device 1 as media resources of a forced call.
Step eight, the soft switch device 1 sends the media resource of the first user terminal to the third media gateway MG3 to which the third user terminal belongs.
The soft switch device 1 sends the media resource of the first user terminal to the third media gateway MG3 to which the third user terminal belongs, wherein the media resource includes IP address, RTP port number, coding and decoding resource, etc.
And ninthly, reporting the media resources of the third user terminal to the soft switch device 1 by the third media gateway MG3 to which the third user terminal belongs.
And the third media gateway MG3 to which the third user terminal belongs creates a new Context, adds RTP Termination to the Context, wherein the Mode is set as SendReceive, sets jitter buffer, coding and decoding resources and the like, and reports the media resources of the third user terminal to the soft switch device 1, wherein the media resources comprise IP addresses, RTP port numbers, coding and decoding resources and the like.
Step R, soft exchange equipment 1 sends the media resource of third user terminal to the media gateway of first user terminal
The soft switch device 1 sends the media resource of the third user terminal to the media gateway to which the first user terminal belongs, wherein the media resource comprises an IP address, an RTP port number, a coding and decoding resource and the like.
Step (ii) of
And the first user terminal establishes a call with the third user terminal to realize break-in.
The first media gateway MG1 and the third media gateway MG3 establish RTP connection according to media resources of the opposite side, and the first user terminal and the third user terminal establish conversation to realize break-in.
As another aspect of the present invention, the present embodiment further provides a call system, which includes the above-mentioned forced call device, so as to implement a more simplified and effective forced call.
In the method and the device for the forced call, when the soft switch device receives a call sent by a third user terminal C with high priority to a first user terminal A which is in conversation, after a command for releasing a second user terminal is issued to a media gateway, the media gateway does not release the established media resource of the called first user terminal, but reports the media resource to the soft switch device as the media resource in conversation with the forced user terminal, thereby simplifying the process of releasing the established media resource and recreating the media resource, quickening the establishment time of the forced call and improving the service perception of the user.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.