CN108769068B - Call control method, device, terminal and computer storage medium for soft switch - Google Patents

Call control method, device, terminal and computer storage medium for soft switch Download PDF

Info

Publication number
CN108769068B
CN108769068B CN201810689261.7A CN201810689261A CN108769068B CN 108769068 B CN108769068 B CN 108769068B CN 201810689261 A CN201810689261 A CN 201810689261A CN 108769068 B CN108769068 B CN 108769068B
Authority
CN
China
Prior art keywords
gateway
call
relay gateway
determining
relay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810689261.7A
Other languages
Chinese (zh)
Other versions
CN108769068A (en
Inventor
张余
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810689261.7A priority Critical patent/CN108769068B/en
Publication of CN108769068A publication Critical patent/CN108769068A/en
Application granted granted Critical
Publication of CN108769068B publication Critical patent/CN108769068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/12Arrangements for interconnection between switching centres for working between exchanges having different types of switching equipment, e.g. power-driven and step by step or decimal and non-decimal
    • H04M7/1205Arrangements for interconnection between switching centres for working between exchanges having different types of switching equipment, e.g. power-driven and step by step or decimal and non-decimal where the types of switching equipement comprises PSTN/ISDN equipment and switching equipment of networks other than PSTN/ISDN, e.g. Internet Protocol networks
    • H04M7/126Interworking of session control protocols

Abstract

The invention provides a soft switch call control method, a device, a terminal and a computer storage medium, wherein the method comprises the following steps: receiving call request information sent by a PSTN end office, wherein the call request information comprises a calling number and a called number; determining a target relay gateway in a plurality of relay gateways connected with a PSTN end office according to the calling number; determining an access gateway to which a called user terminal belongs according to a called number; sending an ADD command to an access gateway to enable the access gateway to send ringing to a called user terminal and feed back confirmation information; sending a modify command to a target relay gateway so that the calling user terminal can enter a call state; and sending a modify command to the access gateway to enable the called user terminal to stop ringing and establish call connection with the calling user terminal. According to the technical scheme provided by the invention, the PSTN end office is accessed into a plurality of relay gateways, so that the redundancy capability of the PSTN end office is improved, and the telephone traffic is favorably and reasonably distributed.

Description

Call control method, device, terminal and computer storage medium for soft switch
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a computer storage medium for controlling a soft switch call.
Background
The Soft Switch is a device and system based on packet network and using program-controlled software to provide separation of call control function and media processing. Therefore, the basic meaning of the soft switch is to separate the call control function from the media gateway (transport layer), and to implement the basic call control function through software, thereby implementing the separation of call transmission and call control, and establishing a separate plane for the control, switching, and software programmable functions.
The network of the soft switch architecture mainly includes a soft switch device, a relay Gateway TG, a Signaling Gateway (SG) and an Access Gateway (AG). The softswitch mainly provides functions of connection control, translation and routing, gateway management, call control, bandwidth management, signaling, security, call detail recording, and the like. Meanwhile, the soft switch also encapsulates network resources and network capabilities, and is connected with a service application layer through a standard open service interface, so that new services can be conveniently and quickly provided on the network. The relay gateway TG completes functions of media stream conversion and the like under the control of the Soft switch, and is mainly used for relay access. The TG provides media mapping and transcoding functions between the IP Network and the circuit Switched Network (PSTN), i.e., terminates the circuit Switched Network infrastructure (trunks, loops, etc.), packetizes the media stream and transmits the packetized media stream over the packet Network. The access gateway AG is used to directly access the user terminal to an IP packet network, such as a general analog user, ISDN, etc. 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. The signaling gateway SG performs a function of converting signaling between a circuit-switched network and a packet-switched network (IP-based). The SG can effectively realize the intercommunication of the signaling between the circuit switching network and the packet network. SG receives and sends standard SS7 signaling message at circuit switching network side, and adopts adaptation layer protocol and transport layer protocol of IETF signaling transfer working group (SIGTRAN) standard at packet network side, so that it has strong adaptation capability, complete functions and high reliability.
However, for a user call flow under a PSTN end office in the prior art, one PSTN end office can only access one trunking gateway, and when the trunking gateway fails, all users under the PSTN end office cannot make and receive calls, thereby affecting the quality of user calls and reducing the good experience of the users.
Disclosure of Invention
Embodiments of the present invention provide a call control method, apparatus, terminal and computer storage medium for soft switch, which can effectively solve the problem in the prior art that when a relay gateway fails, all users at a PSTN end office cannot make and receive calls, thereby affecting the quality of user calls and reducing the good experience of the users.
A first aspect of an embodiment of the present invention provides a call control method for a soft switch, including:
receiving call request information sent by a PSTN end office, wherein the call request information comprises a calling number and a called number;
determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office according to the calling number;
determining an access gateway to which the called user terminal belongs according to the called number;
sending an ADD command to the access gateway to enable the access gateway to send ringing to a called user terminal and feed back confirmation information;
sending a modify command to the target relay gateway so that the calling user terminal can enter a call state;
and sending a modify command to the access gateway to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
The method as above, wherein the relay gateway includes a first relay gateway and a second relay gateway, the first relay gateway is configured with a first counter, and the second relay gateway is configured with a second counter; determining a target trunking gateway among a plurality of trunking gateways connected to the PSTN end office according to the calling number, comprising:
acquiring a first circuit quantity A and a second circuit quantity B of a PSTN end office respectively accessing to a first relay gateway and a second relay gateway;
acquiring a first quantity C recorded by the first counter and a second quantity D recorded by the second counter;
and determining the target relay gateway according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D.
The method for determining the target relay gateway according to the first circuit number a, the second circuit number B, the first number C and the second number D includes:
determining a first parameter (A-C)/A and a second parameter (B-D)/B according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D;
if the first parameter is greater than the second parameter, determining that the first relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the first parameter is less than the second parameter, determining that the second relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the first parameter is the second parameter, confirming that any one of the first relay gateway and the second relay gateway is the target relay gateway.
The method for acquiring the first number C recorded by the first counter and the second number D recorded by the second counter comprises the following steps:
obtaining the call states of the PSTN end office respectively passing through the first relay gateway and the second relay gateway;
when the PSTN end office calls out or calls in through a first relay gateway, adding 1 to the number recorded by the first counter;
and when the PSTN end office calls out or calls in through a second relay gateway, adding 1 to the number recorded by the second counter.
A second aspect of the embodiments of the present invention provides a method for controlling a soft switch call, including:
receiving call request information sent by an access gateway, wherein the call request information comprises a called number;
determining a PSTN end office to which the called user terminal belongs according to the called number, and determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office;
sending a modify command to the access gateway so that the calling user terminal can enter a call state;
and sending a modify command to the target relay gateway to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
The method as above, wherein the relay gateway comprises a third relay gateway configured with a third counter and a fourth relay gateway configured with a fourth counter; determining a target trunking gateway among a plurality of trunking gateways connected to the PSTN end office, comprising:
acquiring a third circuit quantity A and a fourth circuit quantity B of a PSTN end office respectively accessing to a third relay gateway and a fourth relay gateway;
acquiring a first maximum concurrent call quantity E corresponding to the third relay gateway and a second maximum concurrent call quantity F corresponding to the fourth relay gateway;
acquiring a third quantity C recorded by the third counter and a fourth quantity D recorded by a fourth counter;
acquiring a first call quantity G borne by the third relay gateway and a second call quantity H borne by the fourth relay gateway;
and determining the target relay gateway according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H.
The method for determining the target trunking gateway according to the third circuit number a, the fourth circuit number B, the first maximum concurrent call number E, the second maximum concurrent call number F, the third number C, the fourth number D, the first call number G, and the second call number H includes:
determining third parameters of X (A-C)/A + Y (E-G)/E and X (B-D)/B + Y (F-H)/F according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H, wherein X is a preset weight parameter of the circuit, and Y is a performance parameter of the trunking gateway;
if the third parameter > the fourth parameter, determining that the third relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the third parameter < the fourth parameter, determining that the fourth relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the third parameter is equal to the fourth parameter, confirming that any one of the third relay gateway and the fourth relay gateway is the target relay gateway.
The method for acquiring the third number C recorded by the third counter and the fourth number D recorded by the fourth counter includes:
obtaining the call states of the PSTN end office respectively passing through the third relay gateway and the fourth relay gateway;
when the PSTN end office calls out or calls in through a third relay gateway, adding 1 to the number recorded by the third counter;
and when the PSTN end office calls out or calls in through a fourth relay gateway, adding 1 to the number recorded by the fourth counter.
A third aspect of the present embodiment provides a call control device in a soft switch, including:
the first receiving module is used for receiving call request information sent by a PSTN end office, wherein the call request information comprises a calling number and a called number;
the first determining module is used for determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office according to the calling number;
the first determining module is further configured to determine, according to the called number, an access gateway to which the called user terminal belongs;
the first sending module is used for sending an ADD command to the access gateway so that the access gateway sends ringing to a called user terminal and feeds back confirmation information;
the first sending module is further configured to send a modify command to the target relay gateway, so that the calling user terminal may enter a call state;
and the first communication module is used for sending a modify command to the access gateway so as to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
The apparatus as above, the trunking gateway comprising a first trunking gateway and a second trunking gateway, the first trunking gateway configured with a first counter, the second trunking gateway configured with a second counter; the first determining module is configured to:
acquiring a first circuit quantity A and a second circuit quantity B of a PSTN end office respectively accessing to a first relay gateway and a second relay gateway;
acquiring a first quantity C recorded by the first counter and a second quantity D recorded by the second counter;
and determining the target relay gateway according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D.
The apparatus as described above, the first determining module to:
determining a first parameter (A-C)/A and a second parameter (B-D)/B according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D;
if the first parameter is greater than the second parameter, determining that the first relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the first parameter is less than the second parameter, determining that the second relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the first parameter is the second parameter, confirming that any one of the first relay gateway and the second relay gateway is the target relay gateway.
The apparatus as described above, the first determining module to:
obtaining the call states of the PSTN end office respectively passing through the first relay gateway and the second relay gateway;
when the PSTN end office calls out or calls in through a first relay gateway, adding 1 to the number recorded by the first counter;
and when the PSTN end office calls out or calls in through a second relay gateway, adding 1 to the number recorded by the second counter.
A fourth aspect of the present embodiment provides a call control device in a soft switch, including:
the second receiving module is used for receiving call request information sent by the access gateway, wherein the call request information comprises a called number;
the second determining module is used for determining the PSTN end office to which the called user terminal belongs according to the called number and determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office;
a second sending module, configured to send a modify command to the access gateway, so that the calling user terminal may enter a call state;
and the second communication module is used for sending a modify command to the target relay gateway so as to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
The apparatus as above, the trunking gateway comprising a third trunking gateway configured with a third counter and a fourth trunking gateway configured with a fourth counter; the second determining module is configured to:
acquiring a third circuit quantity A and a fourth circuit quantity B of a PSTN end office respectively accessing to a third relay gateway and a fourth relay gateway;
acquiring a first maximum concurrent call quantity E corresponding to the third relay gateway and a second maximum concurrent call quantity F corresponding to the fourth relay gateway;
acquiring a third quantity C recorded by the third counter and a fourth quantity D recorded by a fourth counter;
acquiring a first call quantity G borne by the third relay gateway and a second call quantity H borne by the fourth relay gateway;
and determining the target relay gateway according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H.
The apparatus as described above, the second determining module to:
determining third parameters of X (A-C)/A + Y (E-G)/E and X (B-D)/B + Y (F-H)/F according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H, wherein X is a preset weight parameter of the circuit, and Y is a performance parameter of the trunking gateway;
if the third parameter > the fourth parameter, determining that the third relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the third parameter < the fourth parameter, determining that the fourth relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the third parameter is equal to the fourth parameter, confirming that any one of the third relay gateway and the fourth relay gateway is the target relay gateway.
The apparatus as described above, the second determining module to:
obtaining the call states of the PSTN end office respectively passing through the third relay gateway and the fourth relay gateway;
when the PSTN end office calls out or calls in through a third relay gateway, adding 1 to the number recorded by the third counter;
and when the PSTN end office calls out or calls in through a fourth relay gateway, adding 1 to the number recorded by the fourth counter.
A fifth aspect of the present embodiment provides a call control terminal of a soft switch, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement a call control method of a softswitch as described in the first aspect.
A sixth aspect of the present embodiment provides a call control terminal of a soft switch, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement a call control method of a soft switch according to the second aspect.
A seventh aspect of the present embodiment provides a computer storage medium which is a computer-readable storage medium having a computer program stored thereon;
the computer program is executed by a processor to implement a call control method of a soft switch as described in the first aspect.
An eighth aspect of the present embodiment provides a computer storage medium which is a computer-readable storage medium having a computer program stored thereon;
the computer program is executed by a processor to implement a call control method of a soft switch according to the second aspect.
According to the call control method, the call control device, the call control terminal and the call control computer storage medium of the soft switch, a PSTN end office is accessed to a plurality of relay gateways, and when a user under the PSTN end office makes a call, soft switch equipment determines a target relay gateway according to the position between the PSTN end office and the plurality of relay gateways; when a user at the PSTN end office answers a call, the soft switch equipment can comprehensively consider the idle capacity of a plurality of current relay gateways and the circuit use condition between the PSTN end office and the plurality of relay gateways, and distribute telephone traffic to the proper relay gateways; the target relay gateway has certain selectivity, so that the redundancy capability of a PSTN end office is improved, and meanwhile, the reasonable traffic distribution is facilitated, the stability and the reliability of the use of the call control method are ensured, and the popularization and the application of the market are facilitated.
Drawings
Fig. 1 is a flowchart illustrating a call control method of a soft switch according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of determining a target trunking gateway among a plurality of trunking gateways connected to the PSTN end office according to the calling number according to the embodiment of the present invention;
fig. 3 is a schematic flowchart of determining the target relay gateway according to the first circuit quantity a, the second circuit quantity B, the first quantity C, and the second quantity D according to the embodiment of the present invention;
fig. 4 is a schematic flow chart of acquiring the first quantity C recorded by the first counter and the second quantity D recorded by the second counter according to the embodiment of the present invention;
fig. 5 is a flowchart illustrating a call control method of a soft switch according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of determining a target trunking gateway among a plurality of trunking gateways connected to the PSTN end office according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of determining the target trunking gateway according to the third circuit number a, the fourth circuit number B, the first maximum concurrent call number E, the second maximum concurrent call number F, the third number C, the fourth number D, the first call number G, and the second call number H according to the application embodiment of the present invention;
fig. 8 is a schematic flow chart illustrating a process of acquiring a third quantity C recorded by the third counter and a fourth quantity D recorded by the fourth counter according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a call control device of a soft switch according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a call control device of another soft switch according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a call control terminal of a soft switch according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention, are intended to cover non-exclusive inclusions, e.g., a process or an apparatus that comprises a list of steps is not necessarily limited to those structures or steps expressly listed but may include other steps or structures not expressly listed or inherent to such process or apparatus.
Fig. 1 is a flowchart illustrating a call control method of a soft switch according to an embodiment of the present invention; referring to fig. 1, this embodiment provides a call control method for a soft switch, where the method may control a call process when a user makes a call under a PSTN end office, and an execution terminal of the method is a soft switch device, and specifically, the method may include:
s101: receiving call request information sent by a PSTN end office, wherein the call request information comprises a calling number and a called number;
before the soft switch equipment receives the call request information sent by the PSTN end office, the PSTN end office can monitor the conversation state of the user, and after the user is off-hook and dials the number under the PSTN end office, the PSTN end office sends an initial address message IAM to the soft switch equipment, so that the call request information is sent to the soft switch equipment.
Further, after the soft switch device receives the call request information sent by the PSTN end office, the call request information can be analyzed and processed, specifically, the called number and/or the calling number in the call request information are obtained, whether the called number and/or the calling number are complete and belong to the subscriber number belonging to the PSTN end office is judged, and when the called number is confirmed to be complete and belong to the subscriber number belonging to the PSTN end office, and/or when the calling number is confirmed to be complete and belong to the subscriber number belonging to the PSTN end office, an address full message is sent back to the PSTN end office; and if the called number and/or the calling number are determined to be incomplete, or the called number and/or the calling number do not belong to the user number under the PSTN end office, stopping the conversation process.
S102: determining a target relay gateway in a plurality of relay gateways connected with a PSTN end office according to the calling number;
the softswitch device may determine the number of trunking gateways accessed by the PSTN end office according to the calling number, but the number of trunking gateways connected to the PSTN end office is not limited in this embodiment, and those skilled in the art may set the number according to specific design requirements, for example, the number of trunking gateways may be set to two, three, four, or five, and the like; since the PSTN end office is connected with a plurality of trunking gateways, a target trunking gateway needs to be determined according to the calling number to realize call connection.
The present embodiment does not limit the determination process of the target relay gateway, for example: the target relay gateway can be determined according to the working capacity and the working state of the relay gateway, or the target relay gateway can be determined according to the circuit state of the PSTN end office and the relay gateway. Of course, those skilled in the art may also determine the target trunking gateway in other manners as long as it is ensured that the target trunking gateway can stably connect the call, and details are not described herein.
S103: determining an access gateway to which a called user terminal belongs according to a called number;
after the called number is obtained, the access gateway to which the called user terminal belongs may be determined by using a mapping relationship between the called number and the access gateway, where it may be understood that one access gateway may correspond to a plurality of called user terminals.
S104: sending an ADD command to an access gateway to enable the access gateway to send ringing to a called user terminal and feed back confirmation information;
the soft switch device can send ADD command to the access gateway according to the called number, the ADD command is an adding command used for adding a logic terminal, when the 1 st terminal is added to an association by using the Add command, the 1 st terminal is equivalent to creating an association, so that the association between the soft switch device and the access gateway can be established, the access gateway can send ringing to the called user terminal, and confirmation information is sent back to the soft switch device.
After the called user terminal is off-hook, the access gateway can report to the soft switch device through Notify message, and the soft switch device responds through Replay; the softswitch may then send a signal ANM to the PSTN end office for acknowledgement.
S105: sending a modify command to a target relay gateway so that the calling user terminal can enter a call state;
after determining the target relay gateway, the softswitch device may send a Modify command to the target relay gateway, where the Modify command is a state modification command, and is specifically configured to Modify a terminal characteristic, where the Modify command may be used to instruct an RTP access point mode to be set to SendReceived, so that the calling user terminal may enter a call state.
S106: and sending a modify command to the access gateway to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
The soft switch device sends Modify command to the access gateway to stop the ringing of the called user terminal, so that the calling and called parties can access the conversation state, and the whole calling process when the user dials the telephone number under the PSTN end office is realized.
According to the call control method of the soft switch, the PSTN end office is accessed to the plurality of relay gateways, when a user under the PSTN end office makes a call, the soft switch device determines a target relay gateway according to the space between the PSTN end office and the plurality of relay gateways, so that the target relay gateway has certain selectivity, the redundancy capability of the PSTN end office is improved, meanwhile, the reasonable traffic distribution is facilitated, the stability and the reliability of the call control method are ensured, and the popularization and the application of the market are facilitated.
Fig. 2 is a schematic flowchart of determining a target trunking gateway among a plurality of trunking gateways connected to a PSTN end office according to a calling number according to an embodiment of the present invention; fig. 3 is a schematic flowchart of determining a target relay gateway according to a first circuit quantity a, a second circuit quantity B, a first quantity C, and a second quantity D according to an embodiment of the present invention; fig. 4 is a schematic flowchart of acquiring a first quantity C recorded in a first counter and a second quantity D recorded in a second counter according to an embodiment of the present invention; on the basis of the foregoing embodiments, as can be seen with reference to fig. 2 to 4, in this embodiment, two trunking gateways are taken as an example for description, at this time, the trunking gateway may include a first trunking gateway and a second trunking gateway, where the first trunking gateway is configured with a first counter, and the second trunking gateway is configured with a second counter; further, determining a target trunking gateway among the trunking gateways connected to the PSTN end offices according to the calling number may include:
s1021: acquiring a first circuit quantity A and a second circuit quantity B of a PSTN end office respectively accessing to a first relay gateway and a second relay gateway;
when the method is applied specifically, the PSTN end office is connected to the first relay gateway through the first circuit, the PSTN end office is connected to the second relay gateway through the second circuit, the first circuit quantity A is the quantity of the first circuits, and the second circuit quantity B is the quantity of the second circuits.
S1022: acquiring a first number C recorded by a first counter and a second number D recorded by a second counter;
wherein, acquiring the first number C recorded by the first counter and the second number D recorded by the second counter may include:
s10221: acquiring the call states of a PSTN end office respectively passing through a first relay gateway and a second relay gateway;
s10222: when the PSTN end office calls out or calls in through the first relay gateway, the number recorded by the first counter is added by 1;
after the first counter finishes counting, the total number recorded by the first counter may be obtained, and the total number is the first number C.
S10223: and when the PSTN end office calls out or calls in through the second relay gateway, the number recorded by the second counter is added by 1.
After the second counter finishes counting, the total number recorded by the second counter may be obtained, and the total number is the second number D.
S1023: and determining the target relay gateway according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D.
Specifically, determining the target relay gateway according to the first circuit number a, the second circuit number B, the first number C, and the second number D may include:
s10231: determining a first parameter (A-C)/A and a second parameter (B-D)/B according to the first circuit number A, the second circuit number B, the first number C and the second number D;
after determining the first parameter and the second parameter, a magnitude relationship of the first parameter and the second parameter may be compared.
S10232: if the first parameter is larger than the second parameter, determining that the first relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
upon determining that the first relay gateway is the target relay gateway, the softswitch may send an ADD command to the first relay gateway and ADD a logical terminal, establish an association between the two, and then the first relay gateway may send back an acknowledgement signal.
S10233: if the first parameter is less than the second parameter, determining that the second relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
when the second relay gateway is determined to be the target relay gateway, the soft switch device may send an ADD command to the second relay gateway, ADD a logical terminal, establish an association between the two, and then the second relay gateway may send back an acknowledgement signal.
S10234: if the first parameter is the second parameter, one of the first relay gateway and the second relay gateway is confirmed to be the target relay gateway.
Any one of the first relay gateway and the second relay gateway may be determined as a target relay gateway, and after determining the target relay gateway, the softswitch device may transmit an ADD command to the target relay gateway and ADD a logical terminal, establish an association between the two, and then the target relay gateway may send back an acknowledgement signal.
In the embodiment, the PSTN end office can be accessed to the two relay gateways through different circuits, when a user under the PSTN end office makes a call, the soft switch equipment distributes the telephone traffic to the appropriate target relay gateway according to the circuit use condition between the PSTN end office and the two relay gateways, thereby effectively ensuring the stable reliability determined by the target relay gateway, further improving the redundancy capability of the PSTN end office, being beneficial to reasonably distributing the telephone traffic, and further ensuring the practicability of the method.
Fig. 5 is a flowchart illustrating a call control method of a soft switch according to another embodiment of the present invention; referring to fig. 5, in another aspect, this embodiment provides a call control method for a soft switch, where the method may control a call process when a user at a PSTN end office answers a call, and an execution terminal of the method is a soft switch device, and specifically, the method may include:
s201: receiving call request information sent by an access gateway, wherein the call request information comprises a called number;
before the soft switch device receives the call request information sent by the access gateway, the access gateway can monitor the conversation state of the user, and after the user is off-hook and dials under the access gateway, the access gateway sends an initial address message IAM to the soft switch device, so that the call request information is sent to the soft switch device.
In addition, after the soft switch device receives the call request information of the access gateway, the soft switch device can analyze and process the call request information, specifically, obtain the called number and/or calling number in the call request information, and judge whether the called number and/or calling number are complete and belong to the user number under the access gateway office, when confirming that the called number is complete and belong to the user number under the access gateway office, and/or when confirming that the calling number is complete and belong to the user number under the access gateway office, the soft switch device returns the address complete message to the access gateway; and if the called number and/or the calling number are determined to be incomplete, or the called number and/or the calling number do not belong to the user number under the access gateway office, stopping the conversation process.
Further, the soft switch device may send an ADD command to the access gateway, the ADD command being an ADD command for adding a logical terminal, establishing an association between the soft switch device and the access gateway, and the access gateway may send an acknowledgement signal back to the soft switch device.
S202: determining a PSTN end office to which a called user terminal belongs according to a called number, and determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office;
the softswitch device may determine the number of trunking gateways accessed by the PSTN end office according to the called number, but the number of trunking gateways connected to the PSTN end office is not limited in this embodiment, and a person skilled in the art may set the number according to specific design requirements, for example, the number of trunking gateways may be set to two, three, four, or five, and the like; since the PSTN end office is connected with a plurality of trunking gateways, a target trunking gateway needs to be determined according to the called number to realize call connection.
The present embodiment does not limit the determination process of the target relay gateway, for example: the target relay gateway can be determined according to the working capacity and the working state of the relay gateway, or the target relay gateway can be determined according to the circuit state of the PSTN end office and the relay gateway. Of course, those skilled in the art may also determine the target trunking gateway in other manners as long as it is ensured that the target trunking gateway can stably connect the call, and details are not described herein.
After determining the target trunking gateway, the PSTN end office may send a ring to the called user terminal and send an acknowledgement signal back to the softswitch. After the called user terminal is off-hook, the PSTN end office can report to the soft switch device through Notify message, and the soft switch device responds through Replay; further, the soft switch device may also send a signal ANM for acknowledgement to the access gateway.
S203: sending a modify command to an access gateway so that the calling user terminal can enter a call state;
the soft switch device may send a Modify command to the access gateway, where the Modify command is a state modification command used to indicate that the RTP access point mode is set to SendReceived, so that the calling user terminal may enter a call state.
S204: and sending a modify command to the target relay gateway so as to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
Furthermore, after the target relay gateway is determined, the soft switch device sends a Modify command to the target relay gateway, so that the called user terminal stops ringing, the calling party and the called party are further enabled to access a conversation state, and the whole call flow of the PSTN end office when the user answers the call is realized.
According to the call control method of the soft switch, the PSTN end office is connected to the plurality of trunk gateways, when a user answers a call under the PSTN end office, the soft switch equipment can comprehensively consider the idle capacity of the plurality of trunk gateways and the circuit use condition between the PSTN end office and the plurality of trunk gateways, and distributes the telephone traffic to the proper trunk gateways, so that the target trunk gateway has certain selectivity, the redundancy capacity of the PSTN end office is improved, meanwhile, the telephone traffic is favorably and reasonably distributed, the stability and the reliability of the call control method are ensured, and the popularization and the application of the market are facilitated.
Fig. 6 is a schematic flowchart of determining a target trunking gateway among a plurality of trunking gateways connected to a PSTN end office according to an embodiment of the present invention; fig. 7 is a schematic flowchart of determining a target trunking gateway according to a third circuit number a, a fourth circuit number B, a first maximum concurrent call number E, a second maximum concurrent call number F, a third number C, a fourth number D, a first call number G, and a second call number H according to an application embodiment of the present invention; fig. 8 is a schematic flow chart illustrating a process of acquiring a third quantity C recorded by a third counter and a fourth quantity D recorded by a fourth counter according to an embodiment of the present disclosure; on the basis of the foregoing embodiments, as can be seen with reference to fig. 6 to 8, in this embodiment, two trunking gateways are taken as an example for description, at this time, the trunking gateway includes a third trunking gateway and a fourth trunking gateway, the third trunking gateway is configured with a third counter, and the fourth trunking gateway is configured with a fourth counter; determining a target trunking gateway among a plurality of trunking gateways coupled to the PSTN end office may include:
s2021: acquiring a third circuit quantity A and a fourth circuit quantity B of a PSTN end office respectively accessing to a third relay gateway and a fourth relay gateway;
in specific application, the PSTN end office is connected to the third relay gateway through the third circuit, the PSTN end office is connected to the fourth relay gateway through the fourth circuit, the number a of the third circuits is the number of the third circuits, and the number B of the fourth circuits is the number of the fourth circuits.
S2022: acquiring a first maximum concurrent call quantity E corresponding to a third relay gateway and a second maximum concurrent call quantity F corresponding to a fourth relay gateway;
s2023: acquiring a third quantity C recorded by a third counter and a fourth quantity D recorded by a fourth counter;
wherein the obtaining of the third number C recorded by the third counter and the fourth number D recorded by the fourth counter may include:
s20231: acquiring the call states of the PSTN end office respectively passing through a third relay gateway and a fourth relay gateway;
s20232: when the PSTN end office calls out or calls in through a third relay gateway, the number recorded by the third counter is added by 1;
after the third counter finishes counting, the total number recorded by the third counter may be obtained, and the total number is the third number C.
S20233: and when the PSTN end office calls out or calls in through the fourth relay gateway, the number recorded by the fourth counter is added by 1.
After the fourth counter finishes counting, the total number recorded by the fourth counter may be obtained, and the total number is the fourth number D.
S2024: acquiring a first call quantity G borne by a third relay gateway and a second call quantity H borne by a fourth relay gateway;
s2025: and determining a target relay gateway according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H.
Specifically, determining the target trunking gateway according to the third circuit number a, the fourth circuit number B, the first maximum concurrent call number E, the second maximum concurrent call number F, the third number C, the fourth number D, the first call number G, and the second call number H may include:
s20251: determining third parameters of X (A-C)/A + Y (E-G)/E and X (B-D)/B + Y (F-H)/F according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H, wherein X is a preset weight parameter of the circuit, and Y is a performance parameter of the trunking gateway;
after determining the third parameter and the fourth parameter, the magnitude relationship of the third parameter and the fourth parameter may be compared.
S20252: if the third parameter is greater than the fourth parameter, determining that the third relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
upon determining that the third trunking gateway is the target trunking gateway, the softswitch may send an ADD command to the third trunking gateway and ADD a logical terminal, establish an association between the two, and then the third trunking gateway may send back an acknowledgement signal.
S20253: if the third parameter is less than the fourth parameter, determining that the fourth relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
when the fourth relay gateway is determined to be the target relay gateway, the soft switch device may send an ADD command to the fourth relay gateway, ADD a logical terminal, establish an association between the ADD command and the logical terminal, and then the fourth relay gateway may send back an acknowledgement signal.
S20254: if the third parameter is equal to the fourth parameter, it is confirmed that either the third relay gateway or the fourth relay gateway is the target relay gateway.
Any one of the third relay gateway and the fourth relay gateway may be determined as a target relay gateway, and after determining the target relay gateway, the softswitch device may transmit an ADD command to the target relay gateway and ADD a logical terminal, establish an association between the two, and then the target relay gateway may send back an acknowledgement signal.
In this embodiment, the PSTN end office can access to the two relay gateways through different circuits, and when a user at the PSTN end office answers a call, the soft switch device performs comprehensive consideration according to the current idle capacity of the two relay gateways and the circuit use condition between the PSTN end office and the two relay gateways to allocate the telephone traffic to the appropriate relay gateways, thereby effectively ensuring the stable reliability determined by the target relay gateway, further improving the redundancy capacity of the PSTN end office, facilitating reasonable allocation of the telephone traffic, and further ensuring the practicability of the method.
Fig. 9 is a schematic structural diagram of a call control device of a soft switch according to an embodiment of the present invention; referring to fig. 9, the present embodiment provides a call control apparatus of a soft switch, which may be a soft switch device and may perform the call control method described above, and specifically, the apparatus may include:
the first receiving module 1 is used for receiving call request information sent by a PSTN end office, wherein the call request information comprises a calling number and a called number;
the first determining module 2 is used for determining a target relay gateway in a plurality of relay gateways connected with a PSTN end office according to a calling number;
the first determining module 2 is further configured to determine, according to the called number, an access gateway to which the called user terminal belongs;
the first sending module 3 is configured to send an ADD command to the access gateway, so that the access gateway sends a ring to the called user terminal, and feeds back confirmation information;
the first sending module 3 is further configured to send a modify command to the target relay gateway, so that the calling user terminal may enter a call state;
the first communication module 4 is configured to send a modify command to the access gateway, so that the called user terminal stops ringing and establishes a call connection with the calling user terminal.
In this embodiment, specific shape structures of the first receiving module 1, the first determining module 2, the first sending module 3, and the first communication module 4 are not limited, and those skilled in the art may arbitrarily set them according to their implemented functions, which is not described herein again; in addition, the specific implementation process and implementation effect of the operation steps implemented by the first receiving module 1, the first determining module 2, the first sending module 3, and the first communication module 4 in this embodiment are the same as the specific implementation process and implementation effect of the steps S101 to S106 in the above embodiment, and specific reference may be made to the above statements, and details are not described here again.
On the basis of the foregoing embodiment, as can be seen with reference to fig. 9, the trunking gateway in this embodiment may include a first trunking gateway and a second trunking gateway, where the first trunking gateway is configured with a first counter, and the second trunking gateway is configured with a second counter; at this time, when the first determining module 2 performs determining a target trunking gateway among a plurality of trunking gateways connected to the PSTN end office according to the calling number, the first determining module 2 may be configured to perform: acquiring a first circuit quantity A and a second circuit quantity B of a PSTN end office respectively accessing to a first relay gateway and a second relay gateway; acquiring a first number C recorded by a first counter and a second number D recorded by a second counter; and determining the target relay gateway according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D.
When the first determining module 2 obtains the first number C recorded by the first counter and the second number D recorded by the second counter, the first determining module 2 is configured to: determining a first parameter (A-C)/A and a second parameter (B-D)/B according to the first circuit number A, the second circuit number B, the first number C and the second number D; if the first parameter is larger than the second parameter, determining that the first relay gateway is the target relay gateway; or if the first parameter is less than the second parameter, determining that the second relay gateway is the target relay gateway; alternatively, when the first parameter is equal to the second parameter, it is confirmed that either one of the first relay gateway and the second relay gateway is the target relay gateway.
In addition, when the first determining module 2 determines the target relay gateway according to the first circuit number a, the second circuit number B, the first number C, and the second number D, the first determining module 2 is configured to: acquiring the call states of a PSTN end office respectively passing through a first relay gateway and a second relay gateway; when the PSTN end office calls out or calls in through the first relay gateway, the number recorded by the first counter is added by 1; and when the PSTN end office calls out or calls in through the second relay gateway, the number recorded by the second counter is added by 1.
The call control device of the soft switch provided in this embodiment can be used to execute the methods corresponding to the embodiments in fig. 2 to fig. 4, and the specific execution manner and the beneficial effects thereof are similar and will not be described again here.
Fig. 10 is a schematic structural diagram of a call control device of another soft switch according to an embodiment of the present invention; referring to fig. 10, another aspect of the present embodiment provides a call control apparatus of a soft switch, which may be a soft switch device and may perform the call control method described above, and specifically, the apparatus may include:
the second receiving module 5 is configured to receive call request information sent by the access gateway, where the call request information includes a called number;
the second determining module 6 is used for determining the PSTN end office to which the called user terminal belongs according to the called number and determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office;
a second sending module 7, configured to send a modify command to the access gateway, so that the calling user terminal may enter a call state;
and the second communication module 8 is configured to send a modify command to the target relay gateway, so that the called user terminal stops ringing and establishes a call connection with the calling user terminal.
In this embodiment, specific shape structures of the second receiving module 5, the second determining module 6, the second sending module 7, and the second communication module 8 are not limited, and those skilled in the art can arbitrarily set them according to their implemented functions, which is not described herein again; in addition, the specific implementation process and implementation effect of the operation steps implemented by the second receiving module 5, the second determining module 6, the second sending module 7, and the second communication module 8 in this embodiment are the same as the specific implementation process and implementation effect of the steps S201 to S204 in the above embodiment, and specific reference may be made to the above statements, and details are not described here again.
On the basis of the foregoing embodiment, as can be seen with reference to fig. 10, in this embodiment, two trunking gateways are taken as an example for description, at this time, the trunking gateway includes a third trunking gateway and a fourth trunking gateway, the third trunking gateway is configured with a third counter, and the fourth trunking gateway is configured with a fourth counter; at this time, when the second determining module 6 determines a target trunking gateway among the trunking gateways connected to the PSTN end office, the second determining module 6 is configured to: acquiring a third circuit quantity A and a fourth circuit quantity B of a PSTN end office respectively accessing to a third relay gateway and a fourth relay gateway; acquiring a first maximum concurrent call quantity E corresponding to a third relay gateway and a second maximum concurrent call quantity F corresponding to a fourth relay gateway; acquiring a third quantity C recorded by a third counter and a fourth quantity D recorded by a fourth counter; acquiring a first call quantity G borne by a third relay gateway and a second call quantity H borne by a fourth relay gateway; and determining a target relay gateway according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H.
When the second determining module 6 determines the target trunking gateway according to the third circuit number a, the fourth circuit number B, the first maximum concurrent call number E, the second maximum concurrent call number F, the third number C, the fourth number D, the first call number G, and the second call number H, the second determining module 6 is configured to perform: determining third parameters of X (A-C)/A + Y (E-G)/E and X (B-D)/B + Y (F-H)/F according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H, wherein X is a preset weight parameter of the circuit, and Y is a performance parameter of the trunking gateway; if the third parameter is greater than the fourth parameter, determining that the third relay gateway is the target relay gateway; or if the third parameter is less than the fourth parameter, determining that the fourth relay gateway is the target relay gateway; alternatively, when the third parameter is equal to the fourth parameter, it is confirmed that either one of the third relay gateway and the fourth relay gateway is the target relay gateway.
In addition, when the second determining module 6 obtains the third number C recorded in the third counter and the fourth number D recorded in the fourth counter, the second determining module 6 is configured to: acquiring the call states of the PSTN end office respectively passing through a third relay gateway and a fourth relay gateway; when the PSTN end office calls out or calls in through a third relay gateway, the number recorded by the third counter is added by 1; and when the PSTN end office calls out or calls in through the fourth relay gateway, the number recorded by the fourth counter is added by 1.
The call control device of the soft switch provided in this embodiment can be used to execute the methods corresponding to the embodiments in fig. 6 to 8, and the specific execution manner and the beneficial effects thereof are similar and will not be described again here.
In addition, another aspect of the present embodiment provides a call control terminal for a soft switch, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement a call control method of the soft switch according to the embodiments corresponding to fig. 1-4.
Another aspect of this embodiment provides a call control terminal for a soft switch, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement a call control method of the soft switch according to the embodiments corresponding to fig. 5-8.
Specifically, fig. 11 is a schematic structural diagram of a call control terminal of a soft switch according to an embodiment of the present invention.
As shown in fig. 11, the control terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the control terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the control terminal 800. Examples of such data include instructions for any application or method operating on the control terminal 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 806 provide power to the various components of the control terminal 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the control terminal 800.
The multimedia component 808 includes a screen providing an output interface between the control terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the control terminal 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects to the control terminal 800. For example, the sensor assembly 814 can detect an open/closed state of the control terminal 800, the relative positioning of components, such as a display and keypad of the control terminal 800, the sensor assembly 814 can also detect a change in position of the control terminal 800 or a component of the control terminal 800, the presence or absence of user contact with the control terminal 800, orientation or acceleration/deceleration of the control terminal 800, and a change in temperature of the control terminal 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Sensor assembly 814 may also include a camera assembly, which may employ, for example, a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate controlling communication between the terminal 800 and other devices in a wired or wireless manner. The control terminal 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the control terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
Yet another aspect of the present embodiments provides a computer storage medium, which is a computer-readable storage medium having a computer program stored thereon;
the computer program is executed by a processor to implement a call control method of a soft switch according to the embodiments corresponding to fig. 1-4.
Yet another aspect of the present embodiments provides a computer storage medium, which is a computer-readable storage medium having a computer program stored thereon;
the computer program is executed by a processor to implement a call control method of a soft switch according to the embodiments corresponding to fig. 5-8.
Finally, it should be noted that, as one of ordinary skill in the art will appreciate, all or part of the processes of the methods of the embodiments described above may be implemented by hardware related to instructions of a computer program, where the computer program may be stored in a computer-readable storage medium, and when executed, the computer program may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like.
Each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (20)

1. A call control method of a soft switch is characterized by comprising the following steps:
receiving call request information sent by a PSTN end office, wherein the call request information comprises a calling number and a called number;
determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office according to the calling number;
determining an access gateway to which the called user terminal belongs according to the called number;
sending an ADD command to the access gateway to enable the access gateway to send ringing to a called user terminal and feed back confirmation information;
sending a modify command to the target relay gateway so that the calling user terminal can enter a call state;
and sending a modify command to the access gateway to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
2. The method of claim 1, wherein the trunking gateway comprises a first trunking gateway and a second trunking gateway, wherein the first trunking gateway is configured with a first counter, and wherein the second trunking gateway is configured with a second counter; determining a target trunking gateway among a plurality of trunking gateways connected to the PSTN end office according to the calling number, comprising:
acquiring a first circuit quantity A and a second circuit quantity B of a PSTN end office respectively accessing to a first relay gateway and a second relay gateway;
acquiring a first quantity C recorded by the first counter and a second quantity D recorded by the second counter;
and determining the target relay gateway according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D.
3. The method of claim 2, wherein determining the target relay gateway according to the first number of circuits A, the second number of circuits B, the first number of circuits C, and the second number of circuits D comprises:
determining a first parameter (A-C)/A and a second parameter (B-D)/B according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D;
if the first parameter is greater than the second parameter, determining that the first relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the first parameter is less than the second parameter, determining that the second relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the first parameter is the second parameter, confirming that any one of the first relay gateway and the second relay gateway is the target relay gateway.
4. The method of claim 2, wherein obtaining the first number C recorded by the first counter and the second number D recorded by the second counter comprises:
obtaining the call states of the PSTN end office respectively passing through the first relay gateway and the second relay gateway;
when the PSTN end office calls out or calls in through a first relay gateway, adding 1 to the number recorded by the first counter;
and when the PSTN end office calls out or calls in through a second relay gateway, adding 1 to the number recorded by the second counter.
5. A call control method of a soft switch is characterized by comprising the following steps:
receiving call request information sent by an access gateway, wherein the call request information comprises a called number;
determining a PSTN end office to which the called user terminal belongs according to the called number, and determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office;
sending a modify command to the access gateway so that the calling user terminal can enter a call state;
and sending a modify command to the target relay gateway to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
6. The method of claim 5, wherein the trunking gateway comprises a third trunking gateway and a fourth trunking gateway, wherein the third trunking gateway is configured with a third counter, and wherein the fourth trunking gateway is configured with a fourth counter; determining a target trunking gateway among a plurality of trunking gateways connected to the PSTN end office, comprising:
acquiring a third circuit quantity A and a fourth circuit quantity B of a PSTN end office respectively accessing to a third relay gateway and a fourth relay gateway;
acquiring a first maximum concurrent call quantity E corresponding to the third relay gateway and a second maximum concurrent call quantity F corresponding to the fourth relay gateway;
acquiring a third quantity C recorded by the third counter and a fourth quantity D recorded by a fourth counter;
acquiring a first call quantity G borne by the third relay gateway and a second call quantity H borne by the fourth relay gateway;
and determining the target relay gateway according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H.
7. The method of claim 6, wherein determining the target trunking gateway according to the third circuit number A, the fourth circuit number B, the first maximum concurrent call number E, the second maximum concurrent call number F, the third number C, the fourth number D, the first call number G, and the second call number H comprises:
determining third parameters of X (A-C)/A + Y (E-G)/E and X (B-D)/B + Y (F-H)/F according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H, wherein X is a preset weight parameter of the circuit, and Y is a performance parameter of the trunking gateway;
if the third parameter > the fourth parameter, determining that the third relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the third parameter < the fourth parameter, determining that the fourth relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the third parameter is equal to the fourth parameter, confirming that any one of the third relay gateway and the fourth relay gateway is the target relay gateway.
8. The method of claim 6, wherein obtaining the third number C recorded by the third counter and the fourth number D recorded by the fourth counter comprises:
obtaining the call states of the PSTN end office respectively passing through the third relay gateway and the fourth relay gateway;
when the PSTN end office calls out or calls in through a third relay gateway, adding 1 to the number recorded by the third counter;
and when the PSTN end office calls out or calls in through a fourth relay gateway, adding 1 to the number recorded by the fourth counter.
9. A call control device of a soft switch, comprising:
the first receiving module is used for receiving call request information sent by a PSTN end office, wherein the call request information comprises a calling number and a called number;
the first determining module is used for determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office according to the calling number;
the first determining module is further configured to determine, according to the called number, an access gateway to which the called user terminal belongs;
the first sending module is used for sending an ADD command to the access gateway so that the access gateway sends ringing to a called user terminal and feeds back confirmation information;
the first sending module is further configured to send a modify command to the target relay gateway, so that the calling user terminal may enter a call state;
and the first communication module is used for sending a modify command to the access gateway so as to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
10. The apparatus of claim 9, wherein the trunking gateway comprises a first trunking gateway and a second trunking gateway, wherein the first trunking gateway is configured with a first counter, and wherein the second trunking gateway is configured with a second counter; the first determining module is configured to:
acquiring a first circuit quantity A and a second circuit quantity B of a PSTN end office respectively accessing to a first relay gateway and a second relay gateway;
acquiring a first quantity C recorded by the first counter and a second quantity D recorded by the second counter;
and determining the target relay gateway according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D.
11. The apparatus of claim 10, wherein the first determining module is configured to:
determining a first parameter (A-C)/A and a second parameter (B-D)/B according to the first circuit quantity A, the second circuit quantity B, the first quantity C and the second quantity D;
if the first parameter is greater than the second parameter, determining that the first relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the first parameter is less than the second parameter, determining that the second relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the first parameter is the second parameter, confirming that any one of the first relay gateway and the second relay gateway is the target relay gateway.
12. The apparatus of claim 10, wherein the first determining module is configured to:
obtaining the call states of the PSTN end office respectively passing through the first relay gateway and the second relay gateway;
when the PSTN end office calls out or calls in through a first relay gateway, adding 1 to the number recorded by the first counter;
and when the PSTN end office calls out or calls in through a second relay gateway, adding 1 to the number recorded by the second counter.
13. A call control device of a soft switch, comprising:
the second receiving module is used for receiving call request information sent by the access gateway, wherein the call request information comprises a called number;
the second determining module is used for determining the PSTN end office to which the called user terminal belongs according to the called number and determining a target relay gateway in a plurality of relay gateways connected with the PSTN end office;
a second sending module, configured to send a modify command to the access gateway, so that the calling user terminal may enter a call state;
and the second communication module is used for sending a modify command to the target relay gateway so as to enable the called user terminal to stop ringing and establish call connection with the calling user terminal.
14. The apparatus of claim 13, wherein the trunking gateway comprises a third trunking gateway and a fourth trunking gateway, wherein the third trunking gateway is configured with a third counter, and wherein the fourth trunking gateway is configured with a fourth counter; the second determining module is configured to:
acquiring a third circuit quantity A and a fourth circuit quantity B of a PSTN end office respectively accessing to a third relay gateway and a fourth relay gateway;
acquiring a first maximum concurrent call quantity E corresponding to the third relay gateway and a second maximum concurrent call quantity F corresponding to the fourth relay gateway;
acquiring a third quantity C recorded by the third counter and a fourth quantity D recorded by a fourth counter;
acquiring a first call quantity G borne by the third relay gateway and a second call quantity H borne by the fourth relay gateway;
and determining the target relay gateway according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H.
15. The apparatus of claim 14, wherein the second determining module is configured to:
determining third parameters of X (A-C)/A + Y (E-G)/E and X (B-D)/B + Y (F-H)/F according to the third circuit quantity A, the fourth circuit quantity B, the first maximum concurrent call quantity E, the second maximum concurrent call quantity F, the third quantity C, the fourth quantity D, the first call quantity G and the second call quantity H, wherein X is a preset weight parameter of the circuit, and Y is a performance parameter of the trunking gateway;
if the third parameter > the fourth parameter, determining that the third relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
if the third parameter < the fourth parameter, determining that the fourth relay gateway is the target relay gateway; alternatively, the first and second electrodes may be,
and if the third parameter is equal to the fourth parameter, confirming that any one of the third relay gateway and the fourth relay gateway is the target relay gateway.
16. The apparatus of claim 14, wherein the second determining module is configured to:
obtaining the call states of the PSTN end office respectively passing through the third relay gateway and the fourth relay gateway;
when the PSTN end office calls out or calls in through a third relay gateway, adding 1 to the number recorded by the third counter;
and when the PSTN end office calls out or calls in through a fourth relay gateway, adding 1 to the number recorded by the fourth counter.
17. A soft-switched call control terminal, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement a call control method of a softswitch as claimed in any of claims 1 to 4.
18. A soft-switched call control terminal, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement a call control method of a softswitch as claimed in any of claims 5 to 8.
19. A computer storage medium, characterized in that the computer storage medium is a computer-readable storage medium having a computer program stored thereon;
the computer program is executed by a processor to implement a call control method of a softswitch as claimed in any one of claims 1 to 4.
20. A computer storage medium, characterized in that the computer storage medium is a computer-readable storage medium having a computer program stored thereon;
the computer program is executed by a processor to implement a call control method of a softswitch as claimed in any one of claims 5 to 8.
CN201810689261.7A 2018-06-28 2018-06-28 Call control method, device, terminal and computer storage medium for soft switch Active CN108769068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810689261.7A CN108769068B (en) 2018-06-28 2018-06-28 Call control method, device, terminal and computer storage medium for soft switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810689261.7A CN108769068B (en) 2018-06-28 2018-06-28 Call control method, device, terminal and computer storage medium for soft switch

Publications (2)

Publication Number Publication Date
CN108769068A CN108769068A (en) 2018-11-06
CN108769068B true CN108769068B (en) 2021-02-02

Family

ID=63974592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810689261.7A Active CN108769068B (en) 2018-06-28 2018-06-28 Call control method, device, terminal and computer storage medium for soft switch

Country Status (1)

Country Link
CN (1) CN108769068B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071492B (en) * 2020-07-31 2023-07-25 中国联合网络通信集团有限公司 Voice call quality optimization method, terminal and base station

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997087A (en) * 2006-12-20 2007-07-11 中兴通讯股份有限公司 A call implementation method in the soft switch network
US7248565B1 (en) * 2002-05-16 2007-07-24 Cisco Technology, Inc. Arrangement for managing multiple gateway trunk groups for voice over IP networks
CN101895447A (en) * 2010-08-31 2010-11-24 迈普通信技术股份有限公司 SIP (Session Initiation Protocol) trunk gateway and failure monitoring method thereof
CN101951346A (en) * 2010-10-27 2011-01-19 迈普通信技术股份有限公司 SIP (Session Initiation Protocol) relay routing method and system thereof
CN101998001A (en) * 2010-09-25 2011-03-30 中兴通讯股份有限公司 System and method for realizing wholesale based on soft switch
CN103647887A (en) * 2013-12-19 2014-03-19 国家电网公司 Integrated IP telephone system of electrical power system
CN104158989A (en) * 2014-07-28 2014-11-19 深圳市邦彦信息技术有限公司 Fixed telephone roaming system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7248565B1 (en) * 2002-05-16 2007-07-24 Cisco Technology, Inc. Arrangement for managing multiple gateway trunk groups for voice over IP networks
CN1997087A (en) * 2006-12-20 2007-07-11 中兴通讯股份有限公司 A call implementation method in the soft switch network
CN101895447A (en) * 2010-08-31 2010-11-24 迈普通信技术股份有限公司 SIP (Session Initiation Protocol) trunk gateway and failure monitoring method thereof
CN101998001A (en) * 2010-09-25 2011-03-30 中兴通讯股份有限公司 System and method for realizing wholesale based on soft switch
CN101951346A (en) * 2010-10-27 2011-01-19 迈普通信技术股份有限公司 SIP (Session Initiation Protocol) relay routing method and system thereof
CN103647887A (en) * 2013-12-19 2014-03-19 国家电网公司 Integrated IP telephone system of electrical power system
CN104158989A (en) * 2014-07-28 2014-11-19 深圳市邦彦信息技术有限公司 Fixed telephone roaming system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
试析基于软交换的NGN网络关键技术与组网;段超;《科技风》;20151225;全文 *

Also Published As

Publication number Publication date
CN108769068A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN101416479B (en) Customised playback telephony services
RU2528616C1 (en) Network abstraction gateway and corresponding endpoint abstraction method
JP4786993B2 (en) Method for establishing an IP videoconference using a telephone network for voice transmission
CN101242663B (en) Switching method, system and device for call between mobile terminal and soft terminal with same number
US8180933B2 (en) Dynamic call handling from multiple attached devices wherein devices advertize its capabililes before facilitating call through appropriate device
JP5450444B2 (en) Method and apparatus for handling multimedia calls
US8098599B2 (en) Method and system for multiple party telephone call
JP2005192207A (en) Image/voice communication system of ip base, and active call conversion/active call pickup method using it
WO2009152699A1 (en) Sip terminal and the status reporting method, system and sip server thereof
KR20100109023A (en) Apparatus for providing concurrently pots with internet telephony service and method thereof
CN107124706B (en) Method, device and system for switching calls among mobile phones
CN108769068B (en) Call control method, device, terminal and computer storage medium for soft switch
CN105100523B (en) Voice channel method for building up, apparatus and system
CN102647532A (en) Intelligent standby network telephone
CN103428384A (en) System and method for realizing mobile VoIP (Voice over Internet Phone) service of smart handheld device
CN102271137A (en) Media server
CN104506745A (en) Gateway equipment and call monitor processing method
CN1976376B (en) Method for calling session, IP telephone system and IP telephone terminal
CN114285945B (en) Video interaction method and device and storage medium
US20030165145A1 (en) Apparatus and method for compulsively receiving multi-calls over internet protocol phones in internet protocol telephony system
KR101519600B1 (en) method and apparatus for security communication in VoIP system
CN114124906A (en) Gateway apparatus, method for gateway apparatus, computer-readable medium, and apparatus
WO2016095527A1 (en) Voice call method, intelligent mobile terminal, fixed-line telephone and intelligent telephone system
KR100409139B1 (en) Method and System for Calling using Bluetooth Internet Phone
TW201611567A (en) System of providing function of capturing keyswitch activation service messages during a telephony and the method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant