CN105264962B - A kind of method and relevant device of ip voice exchange - Google Patents
A kind of method and relevant device of ip voice exchange Download PDFInfo
- Publication number
- CN105264962B CN105264962B CN201480020973.XA CN201480020973A CN105264962B CN 105264962 B CN105264962 B CN 105264962B CN 201480020973 A CN201480020973 A CN 201480020973A CN 105264962 B CN105264962 B CN 105264962B
- Authority
- CN
- China
- Prior art keywords
- base station
- calling terminal
- terminal
- called terminal
- global
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 98
- 238000004891 communication Methods 0.000 claims description 95
- 238000013519 translation Methods 0.000 claims description 71
- 238000006243 chemical reaction Methods 0.000 claims description 18
- 238000012544 monitoring process Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 10
- 239000013589 supplement Substances 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 22
- 238000012986 modification Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the present invention discloses the method and relevant device of a kind of ip voice exchange, which comprises obtains the first global id information or the second global id information;When getting the first global id information, the base station where the described first global id information to called terminal and gateway are sent, so that the base station and gateway where the called terminal are carrying out local exchange to the calling terminal and the called terminal according to the described first global id information;When getting the second global id information, the base station where notifying the calling terminal or the called terminal according to the described second global id information carries out local exchange to the calling terminal and the called terminal.Using the present invention, path redundancy phenomenon existing for VOIP in mobile network can solve, to reduce network flow and network investment.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for IP voice exchange and a related device.
Background
VOIP (Voice over Internet Protocol) is a method of transmitting Voice through an IP (Internet Protocol) network. The terminals negotiate VOIP user plane information through SIP (Session Initiation Protocol) signaling, and a VOIP call can be performed after negotiation, where the user plane information may include: IP address ports, voice codecs, and so on.
In the prior art, if both users are mobile users, the complete switch path for them in making a VOIP call may be: the calling terminal sequentially passes through the base station, the service gateway and the packet switching gateway where the calling terminal is located, sequentially passes through the packet switching gateway, the service gateway and the base station where the called terminal is located, and finally reaches the called terminal. Although two user terminals still need to go through the complete switching path when carrying out the VOIP call when they are both on the same base station or the same service gateway, path redundancy is inevitably caused, and network traffic and network investment are increased.
Disclosure of Invention
The embodiment of the invention provides an IP voice exchange method and related equipment, which can solve the path redundancy phenomenon existing in VOIP in a mobile network so as to reduce network flow and network investment.
The first aspect of the present invention provides a method for voice over IP switching, including:
acquiring first global ID information or second global ID information;
when first global ID information is acquired, sending the first global ID information to a base station and a service gateway where a called terminal is located, so that the base station and the service gateway where the called terminal is located perform local exchange on the calling terminal and the called terminal when judging that a relation between the base station and the service gateway where the calling terminal is located and the service gateway meets a local exchange condition according to the first global ID information;
and when second global ID information is acquired, notifying a base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal according to the second global ID information.
In a first possible implementation manner, the obtaining the first global ID information or the second global ID information includes:
a notification Policy and Charging Rules Function (PCRF) entity reports the global IDs of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and takes the received global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information; or,
and informing the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located and the global ID of the serving gateway where the called terminal is located as second global ID information.
With reference to the first aspect, or the first possible implementation manner of the first aspect, in a second possible implementation manner,
the local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the sending the first global ID information to a base station and a serving gateway where a called terminal is located includes:
creating a local exchange request and adding the first global ID information to the local exchange request;
and sending the local exchange request to a base station and a service gateway where the called terminal is located.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the notifying, according to the second global ID information, the base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal includes:
judging whether the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located according to the second global ID information;
if the local exchange is judged to be the same, informing the same base station where the calling terminal and the called terminal are located to carry out local exchange on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity;
if the network communication capacity is judged to be available, the base station where the calling terminal or the called terminal is located is informed to establish a local exchange channel with an opposite terminal base station, so that the base station where the calling terminal or the called terminal is located carries out local exchange on the calling terminal and the called terminal through the local exchange channel.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, or the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the method further includes:
and sending the address translation relation of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway to a base station where the calling terminal or the called terminal is located so as to perform local exchange on the calling terminal and the called terminal.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, or the fourth possible implementation manner of the first aspect, or the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the method further includes:
and when the service needs to be supplemented or legal monitoring is required, informing the base station where the calling terminal or the called terminal is located to stop local exchange between the calling terminal and the called terminal.
The second aspect of the present invention provides a method for voice over IP switching, including:
receiving first global ID information or an exchange judgment result sent by an exchange control device, wherein the exchange judgment result is judged by the exchange control device according to second global ID information;
when the first global ID information is received, the calling terminal and the called terminal are locally exchanged according to the first global ID information;
and when the exchange judgment result is received, locally exchanging the calling terminal and the called terminal according to the exchange judgment result.
In a first possible implementation form of the method,
the first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located;
the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the locally exchanging the calling terminal and the called terminal according to the first global ID information includes:
judging whether the base station and the service gateway where the calling terminal is located are the same as a local base station and a local service gateway or not according to the first global ID information;
if the two are judged to be the same, local exchange is carried out on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the local base station have network communication capacity;
if the network communication capability is judged to be available, a local exchange channel is established with a base station where the calling terminal is located, so that the calling terminal and the called terminal are locally exchanged through the local exchange channel.
With reference to the first possible implementation manner of the second aspect or the second possible implementation manner of the second aspect, in a third possible implementation manner, the performing local switching on the calling terminal and the called terminal according to the switching determination result includes:
when the received switching judgment result is that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, local switching is performed on the calling terminal and the called terminal;
and when the received switching judgment result shows that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity, establishing a local switching channel with the base station where the calling terminal is located so as to perform local switching on the calling terminal and the called terminal through the local switching channel.
With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the method further includes:
receiving an address translation relationship, sent by the switching control device, of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway, so as to perform local switching on the calling terminal and the called terminal; or,
and presetting an address translation relation of the calling terminal or the called terminal on an NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal.
With reference to the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, or the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, the method further includes:
when the base station where the calling terminal is located is switched to a target base station, switching a local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station;
and when the base station where the called terminal is located is switched to a target base station, switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located.
A third aspect of the present invention provides a switching control apparatus, including:
the acquisition module is used for acquiring the first global ID information or the second global ID information;
the sending module is used for sending the first global ID information to a base station and a service gateway where a called terminal is located when the obtaining module obtains the first global ID information, so that the base station and the service gateway where the called terminal is located can carry out local exchange on the calling terminal and the called terminal when judging that the relation between the base station and the service gateway where the calling terminal is located meets a local exchange condition according to the first global ID information;
and the notification module is used for notifying a base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal according to the second global ID information when the acquisition module acquires the second global ID information.
In a first possible implementation manner, the obtaining module includes:
a first notification reporting unit, configured to notify a Policy and Charging Rules Function (PCRF) entity to report a global ID of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and use the received global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information;
and the second notification reporting unit is used for notifying the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located and the global ID of the serving gateway where the called terminal is located as second global ID information.
With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner,
the local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner, the sending module includes:
the creating and adding unit is used for creating a local exchange request and adding the first global ID information to the local exchange request;
and the request sending unit is used for sending the local exchange request to the base station and the service gateway where the called terminal is located.
With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the notification module includes:
a first judging unit, configured to judge, according to the second global ID information, whether a base station and a serving gateway where the calling terminal is located are the same as a base station and a serving gateway where the called terminal is located;
a notification switching unit, configured to notify the same base station where the calling terminal and the called terminal are located to perform local switching on the calling terminal and the called terminal if the first determination unit determines that the two terminals are the same;
a second judging unit, configured to further judge whether a network communication capability exists between the base station where the calling terminal is located and the base station where the called terminal is located if the first judging unit judges that the base stations are different;
and a notification establishing unit, configured to notify a base station where the calling terminal or the called terminal is located to establish a local exchange channel with an opposite-end base station if the second determining unit determines that the second determining unit has the network communication capability, so that the base station where the calling terminal or the called terminal is located performs local exchange on the calling terminal and the called terminal through the local exchange channel.
With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, or the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner, the method further includes:
a translation relation sending module, configured to send an address translation relation of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway to a base station where the calling terminal or the called terminal is located, so as to perform local exchange between the calling terminal and the called terminal.
With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, or the fourth possible implementation manner of the third aspect, or the fifth possible implementation manner of the third aspect, in a sixth possible implementation manner, the method further includes:
and the notification stop switching module is used for notifying the base station where the calling terminal or the called terminal is located to stop local switching between the calling terminal and the called terminal when service supplement is needed or legal monitoring is needed.
A fourth aspect of the present invention provides a base station, including:
the receiving module is used for receiving first global ID information or an exchange judgment result sent by the exchange control device, and the exchange judgment result is judged by the exchange control device according to second global ID information;
the first local exchange module is used for carrying out local exchange on the calling terminal and the called terminal according to the first global ID information when the first global ID information is received;
and the second local exchange module is used for carrying out local exchange on the calling terminal and the called terminal according to the exchange judgment result when receiving the exchange judgment result.
In a first possible implementation form of the method,
the first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located;
the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the first local exchange module includes:
the first local judgment unit is used for judging whether the base station and the service gateway where the calling terminal is located are the same as the local base station and the local service gateway or not according to the first global ID information;
the first switching unit is used for carrying out local switching on the calling terminal and the called terminal if the first local judgment unit judges that the two terminals are the same;
a second local judging unit, configured to further judge whether a network communication capability exists between the local base station and a base station where the calling terminal is located if the first local judging unit judges that the base stations are different;
and the first establishing unit is used for establishing a local exchange channel with the base station where the calling terminal is located if the second local judging unit judges that the second local judging unit has the network communication capability, so as to carry out local exchange on the calling terminal and the called terminal through the local exchange channel.
With reference to the first possible implementation manner of the fourth aspect or the second possible implementation manner of the fourth aspect, in a third possible implementation manner, the second local exchange module includes:
a second switching unit, configured to perform local switching on the calling terminal and the called terminal when the received switching determination result indicates that the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located;
and the second establishing unit is used for establishing a local exchange channel with the base station where the calling terminal is located when the received exchange judgment result indicates that the network communication capacity exists between the base station where the calling terminal is located and the base station where the called terminal is located, so as to perform local exchange on the calling terminal and the called terminal through the local exchange channel.
With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, or the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the method further includes:
a translation relation receiving module, configured to receive an address translation relation, sent by the switching control device, of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway, so as to perform local switching between the calling terminal and the called terminal;
and the presetting module is used for presetting the address translation relation of the calling terminal or the called terminal on the NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal.
With reference to the second possible implementation manner of the fourth aspect, or the third possible implementation manner of the fourth aspect, or the fourth possible implementation manner of the fourth aspect, in a fifth possible implementation manner, the method further includes:
a first switching module, configured to switch a local switching relationship between the calling terminal and the called terminal to a target base station and a local base station when a base station where the calling terminal is located is switched to the target base station;
and the second switching module is used for switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located when the base station where the called terminal is located is switched to the target base station.
A fifth aspect of the invention provides a computer storage medium,
the computer storage medium may store a program that, when executed, includes some or all of the steps of a method of voice over IP provided by the first aspect.
A sixth aspect of the invention provides a computer storage medium,
the computer storage medium may store a program that, when executed, includes some or all of the steps of a method of voice over IP provided by the second aspect.
A seventh aspect of the present invention provides a switching control apparatus, including: a processor, a communication interface, and a memory, wherein,
the communication interface is used for communicating with a base station and a service gateway;
the memory is used for storing programs;
the processor is used for executing the program to realize
Acquiring first global ID information or second global ID information;
when first global ID information is acquired, sending the first global ID information to a base station and a service gateway where a called terminal is located, so that the base station and the service gateway where the called terminal is located perform local exchange on the calling terminal and the called terminal when judging that a relation between the base station and the service gateway where the calling terminal is located and the service gateway meets a local exchange condition according to the first global ID information;
and when second global ID information is acquired, notifying a base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal according to the second global ID information.
In a first possible implementation manner, the processor is specifically configured to:
a notification Policy and Charging Rules Function (PCRF) entity reports the global IDs of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and takes the received global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information; or,
and informing the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located and the global ID of the serving gateway where the called terminal is located as second global ID information.
With reference to the seventh aspect or the first possible implementation manner of the seventh aspect, in a second possible implementation manner,
the local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, or the second possible implementation manner of the seventh aspect, in a third possible implementation manner, the processor is specifically configured to:
creating a local exchange request and adding the first global ID information to the local exchange request;
and sending the local exchange request to a base station and a service gateway where the called terminal is located.
With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, or the second possible implementation manner of the seventh aspect, or the third possible implementation manner of the seventh aspect, in a fourth possible implementation manner, the processor is specifically configured to:
judging whether the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located according to the second global ID information;
if the local exchange is judged to be the same, informing the same base station where the calling terminal and the called terminal are located to carry out local exchange on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity;
if the network communication capacity is judged to be available, the base station where the calling terminal or the called terminal is located is informed to establish a local exchange channel with an opposite terminal base station, so that the base station where the calling terminal or the called terminal is located carries out local exchange on the calling terminal and the called terminal through the local exchange channel.
With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, or the second possible implementation manner of the seventh aspect, or the third possible implementation manner of the seventh aspect, or the fourth possible implementation manner of the seventh aspect, in a fifth possible implementation manner, the processor is further configured to:
and sending the address translation relation of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway to a base station where the calling terminal or the called terminal is located so as to perform local exchange on the calling terminal and the called terminal.
With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, or the second possible implementation manner of the seventh aspect, or the third possible implementation manner of the seventh aspect, or the fourth possible implementation manner of the seventh aspect, or the fifth possible implementation manner of the seventh aspect, in a sixth possible implementation manner, the processor is further configured to:
and when the service needs to be supplemented or legal monitoring is required, informing the base station where the calling terminal or the called terminal is located to stop local exchange between the calling terminal and the called terminal.
An eighth aspect of the present invention provides a base station, including: a processor, a communication interface, and a memory, wherein,
the communication interface is used for communicating with the exchange control device;
the memory is used for storing programs;
the processor is used for executing the program to realize
Receiving first global ID information or an exchange judgment result sent by an exchange control device, wherein the exchange judgment result is judged by the exchange control device according to second global ID information;
when the first global ID information is received, the calling terminal and the called terminal are locally exchanged according to the first global ID information;
and when the exchange judgment result is received, locally exchanging the calling terminal and the called terminal according to the exchange judgment result.
In a first possible implementation form of the method,
the first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located;
the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
With reference to the first possible implementation manner of the eighth aspect, in a second possible implementation manner, the processor is specifically configured to:
judging whether the base station and the service gateway where the calling terminal is located are the same as a local base station and a local service gateway or not according to the first global ID information;
if the two are judged to be the same, local exchange is carried out on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the local base station have network communication capacity;
if the network communication capability is judged to be available, a local exchange channel is established with a base station where the calling terminal is located, so that the calling terminal and the called terminal are locally exchanged through the local exchange channel.
With reference to the first possible implementation manner of the eighth aspect or the second possible implementation manner of the eighth aspect, in a third possible implementation manner, the processor is specifically configured to:
when the received switching judgment result is that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, local switching is performed on the calling terminal and the called terminal;
and when the received switching judgment result shows that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity, establishing a local switching channel with the base station where the calling terminal is located so as to perform local switching on the calling terminal and the called terminal through the local switching channel.
With reference to the eighth aspect, or the first possible implementation manner of the eighth aspect, or the second possible implementation manner of the eighth aspect, or the third possible implementation manner of the eighth aspect, in a fourth possible implementation manner, the processor is further configured to:
receiving an address translation relationship, sent by the switching control device, of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway, so as to perform local switching on the calling terminal and the called terminal; or,
and presetting an address translation relation of the calling terminal or the called terminal on an NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal.
With reference to the second possible implementation manner of the eighth aspect, or the third possible implementation manner of the eighth aspect, or the fourth possible implementation manner of the eighth aspect, in a fifth possible implementation manner, the processor is further configured to:
when the base station where the calling terminal is located is switched to a target base station, switching a local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station;
and when the base station where the called terminal is located is switched to a target base station, switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located.
Therefore, the embodiment of the invention can ensure that the base station and the service gateway where the called terminal is located can carry out local exchange on the calling terminal and the called terminal according to the first global ID information by sending the first global ID information to the base station and the service gateway where the called terminal is located, or can also inform the base station where the calling terminal or the called terminal is located to carry out local exchange on the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for voice over IP switching according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method of local switching according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another method for voice over IP switching according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating another method for local switching according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a switching control apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an obtaining module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a sending module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a notification module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another switching control apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a base station according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a first local switching module according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a second local switching module according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another base station according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of another switching control apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of another base station 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.
Referring to fig. 1, a schematic flow chart of a method for IP voice exchange according to an embodiment of the present invention is shown, where the method includes:
s101, acquiring first global ID information or second global ID information;
specifically, the switching control device may obtain the first global ID information or the second global ID information, and the switching control device may be a CSCF (call session control function) entity in an IMS (IP Multimedia Subsystem) network.
When a calling terminal initiates a VOIP call in an IMS network, the switching control apparatus may initiate an acquisition request for acquiring first global ID information or second global ID information to a PCRF (Policy and Charging rules function) entity, and the specific process may be as follows: informing a PCRF entity to report the global ID of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information; or, notifying the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located and the global ID of the serving gateway where the called terminal is located as the second global ID information. The global ID can uniquely identify the network element where the global ID is located and the context of the terminal in the network element. The specific process of reporting the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located by the PCRF entity may be: the PCRF Entity initiates an IP-CAN (IP-Connectivity Access Network, IP connection Access Network) session modification process for the calling terminal, notifies a packet switching gateway to report the global ID of a base station where the calling terminal is located and the serving gateway in the process, notifies the serving gateway to notify an MME (Mobility Management Entity), notifies the MME to notify the base station, reports the global ID of the base station where the calling terminal is located to the MME at the moment, forwards the MME to the serving gateway, reports the global ID of the base station where the calling terminal is located and the global ID of the serving gateway where the calling terminal is located (namely first global ID information) to the packet switching gateway by the serving gateway, reports the first global ID information to the PCRF Entity by the packet switching gateway, and reports the first global ID information to the PCRF Entity finally. The specific process of reporting the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the specific process of reporting the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located by the PCRF entity are substantially the same as the specific process of reporting the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located by the PCRF entity, that is, the PCRF entity respectively initiates an IP-CAN session modification process for the calling terminal and an IP-CAN session modification process for the called terminal to respectively obtain the global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located, and the global ID of the base station where the called.
S102, when first global ID information is obtained, the first global ID information is sent to a base station and a service gateway where a called terminal is located;
specifically, when the switching control device acquires the first global ID information, the switching control device may send the first global ID information to a base station and a serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located perform local switching between the calling terminal and the called terminal when determining, according to the first global ID information, that a relationship between the base station and the serving gateway where the calling terminal is located and the serving gateway meets a local switching condition. The local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or, the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability. When the local exchange condition is satisfied that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, the base station directly performs local exchange on the calling terminal and the called terminal, and the exchange path of the local exchange is as follows: the calling terminal goes to the base station and then to the called terminal. When the local exchange condition is satisfied that the network communication capacity exists between the base station where the calling terminal is located and the base station where the called terminal is located, the base station where the called terminal is located establishes a local exchange channel with the base station where the calling terminal is located, so as to perform local exchange on the calling terminal and the called terminal through the local exchange channel, wherein the exchange path of the local exchange is as follows: and the calling terminal arrives at the base station where the calling terminal is located, then arrives at the base station where the called terminal is located through the local exchange channel, and finally arrives at the called terminal.
The process of sending the first global ID information to the base station and the serving gateway where the called terminal is located may specifically be: creating a local exchange request and adding the first global ID information to the local exchange request; and sending the local exchange request to a base station and a service gateway where the called terminal is located. The specific process of sending the local exchange request to the base station and the serving gateway where the called terminal is located may be: the exchange control device informs a PCRF entity to initiate an IP-CAN session modification process for the called terminal, and in the process, a local exchange request is sent to a packet switching gateway where the called terminal is located, the packet switching gateway forwards the local exchange request to a serving gateway where the called terminal is located, the serving gateway forwards the local exchange request to an MME, the MME forwards the serving gateway to a base station where the called terminal is located, and at the moment, the base station where the called terminal is located and the serving gateway respectively obtain the local exchange request. And the base station and the service gateway where the called terminal is located acquire the first global ID information from the local exchange request, and perform local exchange on the calling terminal and the called terminal when judging that the relationship between the base station and the service gateway where the calling terminal is located meets the local exchange condition according to the first global ID information.
S103, when second global ID information is acquired, notifying a base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal according to the second global ID information;
specifically, when the second global ID information is acquired, the switching control device may notify the base station where the calling terminal or the called terminal is located to perform local switching between the calling terminal and the called terminal according to the second global ID information. And the switching control device informs the same base station where the calling terminal and the called terminal are located of carrying out local switching on the calling terminal and the called terminal when judging that the base station where the calling terminal is located and the service gateway are the same as the base station where the called terminal is located and the service gateway according to the second global ID information. Or, when the switching control device judges that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability according to the second global ID information, the switching control device informs the calling terminal or the base station where the called terminal is located to perform local switching on the calling terminal and the called terminal.
The switching control device provided by the embodiment of the invention can also send the address translation relation of the calling terminal or the called terminal on the NAT gateway to the base station where the calling terminal or the called terminal is located, so as to carry out local switching on the calling terminal and the called terminal;
specifically, an interface between the PCRF entity and the IMS is provided with a NAT (Network Address Translation) gateway, and the NAT gateway is responsible for converting a private Network IP Address and a port of the terminal into a public Network IP Address and a port. The switching control device may notify the NAT gateway to insert the IP/PORT translation relationship of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, and notify the NAT gateway to insert the IP/PORT translation relationship of the called terminal when the IMS sends the local switching request to the called terminal, so that the switching control device may send the obtained IP/PORT translation relationship of the calling terminal and the called terminal to the base station where the calling terminal or the called terminal is located, so as to perform local switching between the calling terminal and the called terminal. After local exchange, the IP flow does not pass through the NAT gateway any more, so the base station can convert the IP address and the PORT of the terminal through the received IP/PORT conversion relation of the calling terminal and the called terminal, so as to successfully complete the local exchange of the calling terminal and the called terminal.
The switching control device provided by the embodiment of the invention can also inform the base station where the calling terminal or the called terminal is located to stop local switching between the calling terminal and the called terminal when service needs to be supplemented or legal monitoring is required;
specifically, when supplementary service or lawful monitoring occurs, the switching control device may send a local switching stop instruction to the PCRF entity, so that the PCRF entity notifies the packet switching gateway where the calling terminal or the called terminal is located to forward the local switching stop instruction to the corresponding serving gateway, and then the serving gateway notifies the MME, and the MME notifies the corresponding base station, so that the base station where the calling terminal or the called terminal is located may stop performing local switching on the calling terminal and the called terminal.
Therefore, the embodiment of the invention can ensure that the base station and the service gateway where the called terminal is located can carry out local exchange on the calling terminal and the called terminal according to the first global ID information by sending the first global ID information to the base station and the service gateway where the called terminal is located, or can also inform the base station where the calling terminal or the called terminal is located to carry out local exchange on the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Further, please refer to fig. 2, which is a flowchart illustrating a local switching method according to an embodiment of the present invention. The method of the embodiment of the present invention may correspond to S103 in the corresponding embodiment of fig. 1 described above. The method of the embodiment of the invention specifically comprises the following steps:
s201, judging whether the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located according to the second global ID information;
specifically, since the second global ID information includes the global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global IDs of the base station where the called terminal is located and the serving gateway where the called terminal is located, it can be determined whether the base station where the calling terminal is located and the serving gateway where the calling terminal is located are the same as the base station where the called terminal is located and the serving gateway where the calling terminal is located by determining whether the global IDs of the base station where the calling terminal is located and the serving gateway are the same as the global IDs of the base station where the. When the global ID of the base station where the calling terminal is located and the global ID of the serving gateway where the calling terminal is located are the same as the global ID of the base station where the called terminal is located and the global ID of the serving gateway where the calling terminal is located, it is stated that the base station where the calling terminal is located and the serving gateway where the calling terminal is located are the same as the base station where the called terminal is located and the serving gateway where the called terminal is located.
S202, informing the same base station where the calling terminal and the called terminal are located to perform local exchange on the calling terminal and the called terminal;
specifically, in S201, when it is determined that the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located, the switching control device may notify the same base station where the calling terminal and the called terminal are located to perform local switching on the calling terminal and the called terminal, where a switching path of the local switching is: the calling terminal goes to the base station and then to the called terminal.
S203, judging whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity;
specifically, in S201, it is determined that the base station and the serving gateway where the calling terminal is located are not the same as the base station and the serving gateway where the called terminal is located, the switching control device may further determine whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability, that is, whether IP interworking between the two base stations is possible.
S204, informing the base station where the calling terminal or the called terminal is located and an opposite terminal base station to establish a local exchange channel;
specifically, when it is determined in S203 that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability, the switching control device may notify the base station where the calling terminal or the called terminal is located and an opposite base station to establish a local switching channel, so that the base station where the calling terminal or the called terminal is located performs local switching on the calling terminal and the called terminal through the local switching channel, where a switching path of the local switching is: and the calling terminal arrives at the base station where the calling terminal is located, then arrives at the base station where the called terminal is located through the local exchange channel, and finally arrives at the called terminal.
The embodiment of the invention judges whether the local exchange can be carried out between the calling terminal and the called terminal at the IMS side, and informs the base station to carry out the local exchange on the calling terminal and the called terminal when the local exchange can be carried out, so as to solve the path redundancy phenomenon of VOIP in the mobile network, thereby reducing the network flow and the network investment.
Referring to fig. 3, a flow chart of another method for voice over IP switching according to an embodiment of the present invention is shown, where the method includes:
s301, receiving first global ID information or an exchange judgment result sent by an exchange control device;
specifically, the base station may receive the first global ID information or the switching determination result sent by the switching control device, where the base station refers to a base station where the called terminal is located. Wherein the switching determination result is determined by the switching control means based on the second global ID information. The first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located; the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
Before a base station where a called terminal is located receives first global ID information or an exchange determination result sent by an exchange control device, the exchange control device needs to first acquire the first global ID information or the second global ID information, and a specific process of the exchange control device acquiring the first global ID information or the second global ID information may refer to S101 in the embodiment corresponding to fig. 1, which is not described herein again.
S302, when the first global ID information is received, the calling terminal and the called terminal are locally exchanged according to the first global ID information;
specifically, when the base station where the called terminal is located receives the first global ID information, the base station where the called terminal is located may perform local exchange between the calling terminal and the called terminal according to the first global ID information. When the calling terminal and the called terminal are judged to be in the same base station and the same service gateway according to the first global ID information, the base station directly carries out local exchange on the calling terminal and the called terminal; and when the fact that the base station where the calling terminal is located and the local base station have network communication capacity is judged according to the first global ID information, the local base station can also carry out local exchange on the calling terminal and the called terminal through the base station where the calling terminal is located.
S303, when receiving the switching judgment result, locally switching the calling terminal and the called terminal according to the switching judgment result;
specifically, when receiving the switching determination result, the base station where the called terminal is located may perform local switching between the calling terminal and the called terminal according to the switching determination result. When the received switching judgment result is that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, local switching is performed on the calling terminal and the called terminal, where a path of the local switching is: the calling terminal goes to the base station and then to the called terminal. When the received switching judgment result shows that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity, establishing a local switching channel with the base station where the calling terminal is located so as to perform local switching on the calling terminal and the called terminal through the local switching channel, wherein the local switching path is as follows: and the calling terminal arrives at the base station where the calling terminal is located, then arrives at the base station where the called terminal is located through the local exchange channel, and finally arrives at the called terminal.
In addition, the switching control device may also send the switching determination result to the base station where the calling terminal is located, so that the base station where the calling terminal is located may also perform local switching on the calling terminal and the called terminal according to the switching determination result.
The base station provided by the embodiment of the invention can also receive the address translation relation of the calling terminal or the called terminal on the NAT gateway, which is sent by the switching control device, so as to carry out local switching on the calling terminal and the called terminal; or presetting an address translation relationship of the calling terminal or the called terminal on an NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal;
specifically, an NAT gateway is provided on an interface between the PCRF entity and the IMS, and the NAT gateway is responsible for converting a private network IP address and a port of the terminal into a public network IP address and a port. The switching control device can inform the NAT gateway to insert the IP/PORT conversion relation of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, and inform the NAT gateway to insert the IP/PORT conversion relation of the called terminal when the IMS sends a local switching request to the called terminal so as to obtain the address conversion relation of the calling terminal or the called terminal on the NAT gateway.
Of course, the base station may also preset an address translation relationship of the calling terminal or the called terminal on the NAT gateway, so as to perform local exchange between the calling terminal and the called terminal. Taking the calling terminal and the called terminal are located in a base station as an example, if a source IP/source PORT (assumed to be IP1/PORT1) of a data packet sent by the calling terminal corresponds to a destination IP/destination PORT (assumed to be IP2/PORT2) of a data packet sent by the called terminal, and the destination IP/destination PORT (assumed to be IP3/PORT3) of the data packet sent by the calling terminal corresponds to a destination IP/destination PORT (assumed to be IP4/PORT4) of the data packet sent by the called terminal, the base station and the service gateway convert IP1/PORT1 into IP2/PORT2, convert IP3/PORT3 into IP4/PORT4, and then send the data packet to the called terminal; or, when receiving the data packet sent by the called terminal, the base station and the service gateway convert the IP2/PORT2 into the IP1/PORT1, convert the IP4/PORT4 into the IP3/PORT3, and then send the data packet to the calling terminal.
The base station provided by the embodiment of the invention can also switch the local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station when the base station where the calling terminal is located is switched to the target base station; when the base station where the called terminal is located is switched to a target base station, switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located;
specifically, under the condition that the base station where the calling terminal is located and the base station where the called terminal is located exchange the calling terminal and the called terminal locally, when the base station where the calling terminal is located is switched to a target base station, the base station where the called terminal is located can switch the local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station, that is, when the base station where the calling terminal is located is switched to the target base station, the global ID of the base station where the called terminal is located and the serving gateway is sent to the target base station, so that the target base station judges whether the base station where the target base station and the called terminal are located has network communication capability according to the global ID of the base station where the called terminal is located and the serving gateway, if so, then the target base station and the base station where the called terminal is located establish a local exchange channel to perform local exchange between the calling terminal and the called terminal.
When the base station where the called terminal is located is switched to a target base station, the base station where the called terminal is located can also switch the local exchange relationship between the calling terminal and the called terminal to the base station where the target base station and the calling terminal are located, namely when the base station where the called terminal is located is switched to the target base station, the global IDs of the base station where the calling terminal is located and the service gateway are sent to the target base station, so that the target base station judges whether the target base station and the base station where the calling terminal is located have network communication capability according to the global IDs of the base station where the calling terminal is located and the service gateway, and if the target base station and the base station where the calling terminal is located have the network communication capability, a local exchange channel is established between the target base station and the base station where the calling terminal is located, so that.
The base station provided by the embodiment of the invention can enable the base station to locally exchange the calling terminal and the called terminal according to the first global ID information or the exchange judgment result by receiving the first global ID information or the exchange judgment result sent by the exchange control device, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Further, please refer to fig. 4, which is a flowchart illustrating another local switching method according to an embodiment of the present invention. The method of the embodiment of the present invention may correspond to S302 in the corresponding embodiment of fig. 3 described above. The method of the embodiment of the invention specifically comprises the following steps:
s401, judging whether the base station and the service gateway where the calling terminal is located are the same as a local base station and a local service gateway or not according to the first global ID information;
specifically, when the base station where the called terminal is located receives the first global ID information, the base station where the called terminal is located may determine, according to the first global ID information, whether the base station where the calling terminal is located and the serving gateway are both the same as the local base station and the local serving gateway.
S402, carrying out local exchange on the calling terminal and the called terminal;
specifically, in S401, when it is determined that the base station and the serving gateway where the calling terminal is located are the same as the local base station and the local serving gateway, it indicates that the calling terminal and the called terminal are located on the same base station, and the base station may determine the context of the calling terminal according to the first global ID information, so as to perform local exchange between the calling terminal and the called terminal, where an exchange path of the local exchange is: the calling terminal goes to the base station and then to the called terminal.
S403, judging whether the base station where the calling terminal is located and the local base station have network communication capability;
specifically, in S401, it is determined that the base station and the serving gateway where the calling terminal is located are not the same as the local base station and the local serving gateway, and the base station where the called terminal is located may further determine whether the base station where the calling terminal is located and the local base station have network communication capability. The judging process may specifically be: a base station where a called terminal is located sends a request for establishing a local exchange channel to a base station where a calling terminal is located, and the first global ID information is added in the request for establishing the local exchange channel, so that the base station where the calling terminal is located can judge whether local exchange needs to be carried out on the calling terminal according to the first global ID information, if the local exchange needs to be carried out, the base station where the called terminal is located can respond to the fact that the calling terminal and the called terminal can carry out local exchange, and therefore the base station where the called terminal is located can judge that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity; otherwise, the base station where the called terminal is located may determine that the base station where the calling terminal is located and the base station where the called terminal is located do not have network communication capability.
S404, establishing a local exchange channel with a base station where the calling terminal is located, so as to perform local exchange on the calling terminal and the called terminal through the local exchange channel;
specifically, when it is determined in S403 that the base station where the calling terminal is located and the local base station have network communication capability, it indicates that the base station where the calling terminal is located responds that the base station where the called terminal is located can perform local exchange between the calling terminal and the called terminal, at this time, the base station where the called terminal is located can establish a local exchange channel with the base station where the calling terminal is located, so as to perform local exchange between the calling terminal and the called terminal through the local exchange channel, where the exchange path of the local exchange is: and the calling terminal arrives at the base station where the calling terminal is located, then arrives at the base station where the called terminal is located through the local exchange channel, and finally arrives at the called terminal. When it is determined that the base station where the calling terminal is located and the local base station do not have network communication capability, S403 may not perform local switching.
When the base station where the called terminal is located sends a request for establishing a local exchange channel to the base station where the calling terminal is located, the base station where the called terminal is located can also add the obtained address conversion relationship between the calling terminal and the called terminal to the local exchange channel request, so that both the base station where the calling terminal is located and the base station where the called terminal is located can smoothly complete local exchange between the calling terminal and the called terminal according to the address conversion relationship.
The base station provided by the embodiment of the invention can perform local exchange on the calling terminal and the called terminal according to the received first global ID information so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Referring to fig. 5, which is a schematic structural diagram of an exchange control device 1 according to an embodiment of the present invention, the exchange control device 1 may include: the device comprises an acquisition module 11, a sending module 12 and a notification module 13;
the obtaining module 11 is configured to obtain first global ID information or second global ID information;
specifically, the obtaining module 11 may obtain first global ID information or second global ID information, where the switching control apparatus 1 may be a CSCF entity in an IMS network. When a calling terminal initiates a VOIP call in an IMS network, the obtaining module 11 may initiate an obtaining request for obtaining first global ID information or second global ID information to a PCRF entity, so that the PCRF entity obtains the first global ID information or the second global ID information from a relevant base station and a service gateway, and sends the first global ID information or the second global ID information to the obtaining module 11.
The sending module 12 is configured to send the first global ID information to a base station and a serving gateway where a called terminal is located when the obtaining module 11 obtains the first global ID information, so that the base station and the serving gateway where the called terminal is located perform local exchange between the calling terminal and the called terminal when determining, according to the first global ID information, that a relationship between the base station and the serving gateway where the calling terminal is located and the serving gateway meets a local exchange condition;
specifically, when the obtaining module 11 obtains the first global ID information, the sending module 12 may send the first global ID information to a base station and a serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located perform local exchange between the calling terminal and the called terminal when determining, according to the first global ID information, that a relationship between the base station and the serving gateway where the calling terminal is located and the serving gateway meets a local exchange condition. The local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or, the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability. When the local exchange condition is satisfied that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, the base station directly performs local exchange on the calling terminal and the called terminal, and the exchange path of the local exchange is as follows: the calling terminal goes to the base station and then to the called terminal. When the local exchange condition is satisfied that the network communication capacity exists between the base station where the calling terminal is located and the base station where the called terminal is located, the base station where the called terminal is located establishes a local exchange channel with the base station where the calling terminal is located, so as to perform local exchange on the calling terminal and the called terminal through the local exchange channel, wherein the exchange path of the local exchange is as follows: and the calling terminal arrives at the base station where the calling terminal is located, then arrives at the base station where the called terminal is located through the local exchange channel, and finally arrives at the called terminal.
The notification module 13 is configured to notify, when the obtaining module 11 obtains second global ID information, a base station where the calling terminal or the called terminal is located to perform local exchange between the calling terminal and the called terminal according to the second global ID information;
specifically, when the obtaining module 11 obtains the second global ID information, the notifying module 13 may notify, according to the second global ID information, a base station where the calling terminal or the called terminal is located to perform local exchange between the calling terminal and the called terminal. And the notification module 13 notifies the same base station where the calling terminal and the called terminal are located to perform local exchange with the calling terminal and the called terminal when judging that the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located according to the second global ID information. Or, when determining that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability according to the second global ID information, the notification module 13 notifies the calling terminal or the base station where the called terminal is located to perform local exchange between the calling terminal and the called terminal.
Further, referring to fig. 6 again, which is a schematic structural diagram of the obtaining module 11 in fig. 5, the obtaining module 11 may include: a first notification reporting unit 111 and a second notification reporting unit 112;
the first notification reporting unit 111 is configured to notify a Policy and Charging Rules Function (PCRF) entity to report a global ID of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and use the received global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information;
specifically, the first notification reporting unit 111 may notify the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located. The global ID can uniquely identify the network element where the global ID is located and the context of the terminal in the network element. The specific process of reporting the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located by the PCRF entity may be: the PCRF entity initiates an IP-CAN session modification process for the calling terminal, during which the packet switching gateway is notified to report the global ID of the base station where the calling terminal is located and the serving gateway, the packet switching gateway notifies the serving gateway, the serving gateway notifies the MME, and the MME notifies the base station, at this time, the base station reports the global ID of the base station where the calling terminal is located to the MME, and the MME forwards the global ID to the serving gateway, and the serving gateway reports the global ID of the base station where the calling terminal is located and the global ID of the serving gateway where the calling terminal is located (i.e., the first global ID information) to the packet switching gateway, and the packet switching gateway reports the first global ID information to the PCRF entity, and finally, the PCRF entity reports the first global ID information to the first notification reporting unit 111.
The second notification reporting unit 112 is configured to notify the PCRF entity to report the global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global IDs of the base station where the called terminal is located and the serving gateway where the called terminal is located, and use the received global IDs of the base station where the calling terminal is located and the serving gateway where the called terminal is located, and the received global IDs of the base station where the called terminal is located and the serving gateway where the called terminal is located as second global ID information;
specifically, the second notification reporting unit 112 may notify the PCRF entity to report the global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global IDs of the base station where the called terminal is located and the serving gateway where the called terminal is located. The specific process of reporting the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the specific process of reporting the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located by the PCRF entity are substantially the same as the specific process of reporting the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located by the PCRF entity, that is, the PCRF entity respectively initiates an IP-CAN session modification process for the calling terminal and an IP-CAN session modification process for the called terminal to respectively obtain the global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located, and the global ID of the base station where the called.
Further, referring to fig. 7 again, which is a schematic structural diagram of the sending module 12 in fig. 5, the sending module 12 may include: a creation adding unit 121, a request transmitting unit 122;
the creating and adding unit 121 is configured to create a local exchange request, and add the first global ID information to the local exchange request;
the request sending unit 122 is configured to send the local switching request to a base station and a serving gateway where the called terminal is located;
specifically, after the creation adding unit 121 creates a local exchange request, the request sending unit 122 may send the local exchange request to a base station and a serving gateway where the called terminal is located. The specific process of sending the local exchange request to the base station and the serving gateway where the called terminal is located may be: the request sending unit 122 notifies the PCRF entity to initiate an IP-CAN session modification process for the called terminal, and in the process, sends the local exchange request to the packet switching gateway where the called terminal is located, the packet switching gateway forwards the local exchange request to the serving gateway where the called terminal is located, the serving gateway forwards the local exchange request to the MME, and the MME forwards the local exchange request to the base station where the called terminal is located, at this time, the base station where the called terminal is located and the serving gateway respectively obtain the local exchange request. And the base station and the service gateway where the called terminal is located acquire the first global ID information from the local exchange request, and perform local exchange on the calling terminal and the called terminal when judging that the relationship between the base station and the service gateway where the calling terminal is located meets the local exchange condition according to the first global ID information.
Further, referring to fig. 8, which is a schematic structural diagram of the notification module 13 in fig. 5, the notification module 13 may include: a first judgment unit 131, a notification exchange unit 132, a second judgment unit 133, and a notification establishment unit 134;
the first determining unit 131 is configured to determine, according to the second global ID information, whether the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located;
specifically, since the second global ID information includes the global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global IDs of the base station where the called terminal is located and the serving gateway where the called terminal is located, the first determining unit 131 may determine whether the base station where the calling terminal is located and the serving gateway where the calling terminal is located are the same as the base station where the called terminal is located and the serving gateway where the calling terminal is located by determining whether the global IDs of the base station where the calling terminal is located and the serving gateway are the same as the global IDs of the base station where the called terminal is. When the first determining unit 131 determines that the global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located are the same as the global IDs of the base station where the called terminal is located and the serving gateway where the calling terminal is located, it is indicated that the base station where the calling terminal is located and the serving gateway are the same as the base station where the called terminal is located and the serving gateway.
The notification switching unit 132 is configured to notify the same base station where the calling terminal and the called terminal are located to perform local switching on the calling terminal and the called terminal if the first determining unit 131 determines that the two terminals are the same;
specifically, when the first determining unit 131 determines that the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located, the notification exchanging unit 132 may notify the same base station where the calling terminal and the called terminal are located to perform local exchange on the calling terminal and the called terminal, where an exchange path of the local exchange is: the calling terminal goes to the base station and then to the called terminal.
The second determining unit 133 is configured to, if the first determining unit 131 determines that the base stations are different, further determine whether a network communication capability exists between the base station where the calling terminal is located and the base station where the called terminal is located;
specifically, when the first determining unit 131 determines that the base station and the serving gateway where the calling terminal is located are not the same as the base station and the serving gateway where the called terminal is located, the second determining unit 133 may further determine whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability, that is, whether IP interworking between the two base stations is possible.
The notification establishing unit 134 is configured to notify a base station where the calling terminal or the called terminal is located to establish a local exchange channel with an opposite-end base station if the second determining unit 133 determines that the network communication capability is available, so that the base station where the calling terminal or the called terminal is located performs local exchange on the calling terminal and the called terminal through the local exchange channel;
specifically, when the second determining unit 133 determines that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability, the notification establishing unit 134 may notify the base station where the calling terminal or the called terminal is located and an opposite-end base station to establish a local exchange channel, so that the base station where the calling terminal or the called terminal is located performs local exchange on the calling terminal and the called terminal through the local exchange channel, where an exchange path of the local exchange is: and the calling terminal arrives at the base station where the calling terminal is located, then arrives at the base station where the called terminal is located through the local exchange channel, and finally arrives at the called terminal.
Therefore, the embodiment of the invention can ensure that the base station and the service gateway where the called terminal is located can carry out local exchange on the calling terminal and the called terminal according to the first global ID information by sending the first global ID information to the base station and the service gateway where the called terminal is located, or can also inform the base station where the calling terminal or the called terminal is located to carry out local exchange on the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Referring to fig. 9 again, for a schematic structural diagram of another switching control apparatus 1 according to an embodiment of the present invention, the switching control apparatus 1 may include the obtaining module 11, the sending module 12, and the notifying module 13 in fig. 5, and further, the switching control apparatus 1 may further include: a conversion relation sending module 14 and a notification stop exchanging module 15;
the translation relation sending module 14 is configured to send an address translation relation of the calling terminal or the called terminal on an NAT gateway to a base station where the calling terminal or the called terminal is located, so as to perform local exchange between the calling terminal and the called terminal;
specifically, an NAT gateway is provided on an interface between the PCRF entity and the IMS, and the NAT gateway is responsible for converting a private network IP address and a port of the terminal into a public network IP address and a port. The translation relationship sending module 14 may notify the NAT gateway to insert the IP/PORT translation relationship of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, and notify the NAT gateway to insert the IP/PORT translation relationship of the called terminal when the IMS sends the local exchange request to the called terminal, so that the translation relationship sending module 14 may send the obtained IP/PORT translation relationship of the calling terminal and the called terminal to the calling terminal or the base station where the called terminal is located, so as to perform local exchange between the calling terminal and the called terminal. After local exchange, the IP flow does not pass through the NAT gateway any more, so the base station can convert the IP address and the PORT of the terminal through the received IP/PORT conversion relation of the calling terminal and the called terminal, so as to successfully complete the local exchange of the calling terminal and the called terminal.
The notification stop switching module 15 is configured to notify a base station where the calling terminal or the called terminal is located to stop local switching between the calling terminal and the called terminal when a supplementary service is needed or lawful monitoring is needed;
specifically, when a supplementary service or lawful monitoring occurs, the notification stop switching module 15 may send a local switching stop instruction to the PCRF entity, so that the PCRF entity notifies the packet switching gateway where the calling terminal or the called terminal is located to forward the local switching stop instruction to the corresponding serving gateway, and then the serving gateway notifies the MME, and the MME notifies the corresponding base station, so that the base station where the calling terminal or the called terminal is located may stop performing local switching on the calling terminal and the called terminal.
Therefore, the embodiment of the invention can ensure that the base station and the service gateway where the called terminal is located can carry out local exchange on the calling terminal and the called terminal according to the first global ID information by sending the first global ID information to the base station and the service gateway where the called terminal is located, or can also inform the base station where the calling terminal or the called terminal is located to carry out local exchange on the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Referring to fig. 10, a schematic structural diagram of a base station 2 according to an embodiment of the present invention is provided, where the base station 2 refers specifically to a base station where a called terminal is located, and the base station 2 may include: a receiving module 21, a first local exchange module 22, and a second local exchange module 23;
the receiving module 21 is configured to receive first global ID information or an exchange determination result sent by an exchange control device, where the exchange determination result is determined by the exchange control device according to second global ID information;
specifically, the receiving module 21 may receive the first global ID information or the switching determination result sent by the switching control apparatus. Wherein the switching determination result is determined by the switching control means based on the second global ID information. The first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located; the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
Before the receiving module 21 receives the first global ID information or the exchange determination result sent by the exchange control device, the exchange control device needs to acquire the first global ID information or the second global ID information, and a specific process of the exchange control device acquiring the first global ID information or the second global ID information may refer to the function implemented by the acquiring module 11 in fig. 5, which is not described herein again.
The first local exchange module 22 is configured to, when receiving the first global ID information, perform local exchange between the calling terminal and the called terminal according to the first global ID information;
specifically, when the receiving module 21 receives the first global ID information, the first local exchange module 22 may perform local exchange between the calling terminal and the called terminal according to the first global ID information. When the calling terminal and the called terminal are judged to be in the same base station and the same service gateway according to the first global ID information, the first local exchange module 22 directly performs local exchange on the calling terminal and the called terminal; when it is determined that the base station where the calling terminal is located and the local base station have network communication capability according to the first global ID information, the first local exchange module 22 may also perform local exchange between the calling terminal and the called terminal through the base station where the calling terminal is located.
The second local exchange module 23 is configured to, when receiving the exchange determination result, perform local exchange between the calling terminal and the called terminal according to the exchange determination result;
specifically, when the receiving module 21 receives the switching judgment result, the second local switching module 23 may perform local switching between the calling terminal and the called terminal according to the switching judgment result.
Further, referring to fig. 11 again, which is a schematic structural diagram of the first local switching module 22 in fig. 10, the first local switching module 22 may include: a first local judgment unit 221, a first switching unit 222, a second local judgment unit 223, and a first establishment unit 224;
the first local determining unit 221 is configured to determine, according to the first global ID information, whether the base station and the serving gateway where the calling terminal is located are the same as a local base station and a local serving gateway;
specifically, when the receiving module 21 receives the first global ID information, the first local determining unit 221 may determine, according to the first global ID information, whether the base station and the serving gateway where the calling terminal is located are the same as a local base station and a local serving gateway.
The first switching unit 222 is configured to, if the first local determining unit 221 determines that the two terminals are the same, perform local switching between the calling terminal and the called terminal;
specifically, when the first local determining unit 221 determines that the base station and the serving gateway where the calling terminal is located are the same as the local base station and the local serving gateway, which indicates that the calling terminal and the called terminal are located on the same base station, the first switching unit 222 may determine the context of the calling terminal according to the first global ID information, so as to perform local switching on the calling terminal and the called terminal, where a switching path of the local switching is: the calling terminal goes to the base station and then to the called terminal.
The second local determining unit 223 is configured to, if the first local determining unit 221 determines that the base stations are different, further determine whether the base station where the calling terminal is located and the local base station have network communication capability;
specifically, when the first local determining unit 221 determines that the base station and the serving gateway where the calling terminal is located are not the same as the local base station and the local serving gateway, the second local determining unit 223 may further determine whether the base station where the calling terminal is located and the local base station have network communication capability. The judging process of the second local judging unit 223 may specifically be: the second local judging unit 223 sends a request for establishing a local exchange channel to the base station where the calling terminal is located, and adds the first global ID information in the request for establishing the local exchange channel, so that the base station where the calling terminal is located can judge whether to perform local exchange on the calling terminal according to the first global ID information, and if the local exchange is judged to be performed, the second local judging unit 223 is responded to perform local exchange on the calling terminal and the called terminal, so that the second local judging unit 223 can judge that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability; otherwise, the second local determining unit 223 may determine that the base station where the calling terminal is located and the base station where the called terminal is located do not have network communication capability.
The first establishing unit 224 is configured to, if the second local determining unit 223 determines that the network communication capability exists, establish a local exchange channel with a base station where the calling terminal is located, so as to perform local exchange on the calling terminal and the called terminal through the local exchange channel;
specifically, when the second local determining unit 223 determines that the base station where the calling terminal is located and the local base station have network communication capability, it indicates that the base station where the calling terminal is located responds that the base station 2 can perform local exchange between the calling terminal and the called terminal, at this time, the first establishing unit 224 may establish a local exchange channel with the base station where the calling terminal is located, so as to perform local exchange between the calling terminal and the called terminal through the local exchange channel, where an exchange path of the local exchange is: and the calling terminal arrives at the base station where the calling terminal is located, then arrives at the base station where the called terminal is located through the local exchange channel, and finally arrives at the called terminal. When the second local determining unit 223 determines that the base station where the calling terminal is located and the local base station do not have network communication capability, local switching cannot be performed.
When the first establishing unit 224 sends a request for establishing a local exchange channel to the base station where the calling terminal is located, the first establishing unit 224 may further add the obtained address translation relationship between the calling terminal and the called terminal to the local exchange channel request, so that both the base station where the calling terminal is located and the local base station can smoothly complete local exchange between the calling terminal and the called terminal according to the address translation relationship.
Further, referring to fig. 12 again, which is a schematic structural diagram of the second local switching module 23 in fig. 10, the second local switching module 23 may include: a second exchanging unit 231, a second establishing unit 232;
the second switching unit 231 is configured to, when the received switching determination result is that the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located, perform local switching on the calling terminal and the called terminal;
the second establishing unit 232 is configured to establish a local switching channel with the base station where the calling terminal is located when the received switching determination result indicates that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability, so as to perform local switching on the calling terminal and the called terminal through the local switching channel.
The base station 2 provided by the embodiment of the invention can enable the base station 2 to locally switch the calling terminal and the called terminal according to the first global ID information or the switching judgment result by receiving the first global ID information or the switching judgment result sent by the switching control device, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Referring to fig. 13 again, for a schematic structural diagram of another base station 2 provided in the embodiment of the present invention, the base station 2 may include the receiving module 21, the first local exchange module 22, and the second local exchange module 23 in the embodiment corresponding to fig. 10, and further, the base station 2 may further include: a conversion relation receiving module 24, a presetting module 25, a first switching module 26, and a second switching module 27;
the translation relation receiving module 24 is configured to receive an address translation relation, on the NAT gateway, of the calling terminal or the called terminal sent by the switching control apparatus, so as to perform local switching between the calling terminal and the called terminal;
specifically, an NAT gateway is provided on an interface between the PCRF entity and the IMS, and the NAT gateway is responsible for converting a private network IP address and a port of the terminal into a public network IP address and a port. The switching control device may notify the NAT gateway to insert the IP/PORT translation relationship of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, and notify the NAT gateway to insert the IP/PORT translation relationship of the called terminal when the IMS sends the local switching request to the called terminal, so as to obtain the address translation relationship of the calling terminal or the called terminal on the NAT gateway, at this time, the translation relationship receiving module 24 may receive the address translation relationship of the calling terminal or the called terminal on the NAT gateway, which is sent by the switching control device, so as to translate the IP address and the PORT of the terminal, thereby smoothly completing the local switching between the calling terminal and the called terminal.
The preset module 25 is configured to preset an address translation relationship of the calling terminal or the called terminal on an NAT gateway, so as to perform local exchange between the calling terminal and the called terminal;
specifically, the presetting module 25 may preset an address translation relationship of the calling terminal or the called terminal on an NAT gateway, so as to perform local exchange between the calling terminal and the called terminal. Taking the calling terminal and the called terminal as an example, both located in the base station 2, if the preset module 25 presets that a source IP/source PORT (assume to be IP1/PORT1) of a data packet sent by the calling terminal corresponds to a destination IP/destination PORT (assume to be IP2/PORT2) of a data packet sent by the called terminal, and a destination IP/destination PORT (assume to be IP3/PORT3) of a data packet sent by the calling terminal corresponds to a destination IP/destination PORT (assume to be IP4/PORT4) of a data packet sent by the called terminal, the base station 2 and the service gateway convert IP1/PORT1 into IP2/PORT2, convert IP3/PORT3 into IP4/PORT4, and then send the data packet to the called terminal when receiving the data packet sent by the calling terminal; or, when receiving the data packet sent by the called terminal, the base station 2 and the service gateway convert the IP2/PORT2 into the IP1/PORT1, convert the IP4/PORT4 into the IP3/PORT3, and then send the data packet to the calling terminal.
The base station 2 may obtain the address translation relationship of the calling terminal or the called terminal on the NAT gateway through the translation relationship receiving module 24 or the preset module 25.
The first switching module 26 is configured to switch a local switching relationship between the calling terminal and the called terminal to a target base station and a local base station when a base station where the calling terminal is located is switched to the target base station;
specifically, under the condition that the base station where the calling terminal is located and the base station where the called terminal is located exchange the calling terminal and the called terminal locally, when the base station where the calling terminal is located is switched to a target base station, the first switching module 26 may switch the local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station, that is, when the base station where the calling terminal is located is switched to the target base station, the global ID of the base station where the called terminal is located and the serving gateway is sent to the target base station, so that the target base station judges whether the base station where the target base station and the called terminal are located has network communication capability according to the global ID of the base station where the called terminal is located and the serving gateway, if so, then the target base station and the base station where the called terminal is located establish a local exchange channel to perform local exchange between the calling terminal and the called terminal.
The second switching module 27 is configured to switch the local exchange relationship between the calling terminal and the called terminal to a target base station and a base station where the calling terminal is located when the base station where the called terminal is located is switched to the target base station;
specifically, when the base station where the called terminal is located is switched to the target base station, the second switching module 27 sends the global IDs of the base station where the calling terminal is located and the serving gateway to the target base station, so that the target base station determines whether the base station where the target base station and the calling terminal are located has the network communication capability according to the global IDs of the base station where the calling terminal is located and the serving gateway, and if the base station has the network communication capability, the target base station and the base station where the calling terminal is located establish a local switching channel to perform local switching on the calling terminal and the called terminal.
The base station 2 provided by the embodiment of the invention can enable the base station 2 to locally switch the calling terminal and the called terminal according to the first global ID information or the switching judgment result by receiving the first global ID information or the switching judgment result sent by the switching control device, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of the voice over IP switching method described in the method embodiments of fig. 1 to fig. 2.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of the voice over IP switching method described in the method embodiments of fig. 3 to fig. 4.
Referring to fig. 14 again, for a schematic structural diagram of another switching control device 1 according to an embodiment of the present invention, the switching control device 1 may include a processor 1001, a communication interface 1002, and a memory 1003 (the number of the processors 1001 in the switching control device 1 may be one or more, and one processor 1001 is taken as an example in fig. 14). In some embodiments of the present invention, the processor 1001, the communication interface 1002 and the memory 1003 may be connected by a communication bus or other methods, wherein fig. 14 is taken as an example of the connection by the communication bus.
Wherein, the communication interface 1002 is used for communicating with a base station and a service gateway;
the memory 1003 is used for storing programs;
the processor 1001 is configured to execute the program to implement
Acquiring first global ID information or second global ID information;
when first global ID information is acquired, sending the first global ID information to a base station and a service gateway where a called terminal is located, so that the base station and the service gateway where the called terminal is located perform local exchange on the calling terminal and the called terminal when judging that a relation between the base station and the service gateway where the calling terminal is located and the service gateway meets a local exchange condition according to the first global ID information;
and when second global ID information is acquired, notifying a base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal according to the second global ID information.
The processor 1001 is specifically configured to:
a notification Policy and Charging Rules Function (PCRF) entity reports the global IDs of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and takes the received global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information; or,
and informing the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located and the global ID of the serving gateway where the called terminal is located as second global ID information.
The local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
When the processor 1001 executes the sending of the first global ID information to the base station and the serving gateway where the called terminal is located when the first global ID information is obtained, specifically, the processor is configured to:
creating a local exchange request and adding the first global ID information to the local exchange request;
and sending the local exchange request to a base station and a service gateway where the called terminal is located.
When the processor 1001 executes the local exchange between the calling terminal and the called terminal according to the second global ID information, and when the base station where the calling terminal or the called terminal is located is notified to perform the local exchange between the calling terminal and the called terminal according to the second global ID information, the processor is specifically configured to:
judging whether the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located according to the second global ID information;
if the local exchange is judged to be the same, informing the same base station where the calling terminal and the called terminal are located to carry out local exchange on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity;
if the network communication capacity is judged to be available, the base station where the calling terminal or the called terminal is located is informed to establish a local exchange channel with an opposite terminal base station, so that the base station where the calling terminal or the called terminal is located carries out local exchange on the calling terminal and the called terminal through the local exchange channel.
Wherein the processor 1001 is further configured to:
and sending the address translation relation of the calling terminal or the called terminal on the NAT gateway to a base station where the calling terminal or the called terminal is located so as to carry out local exchange on the calling terminal and the called terminal.
Wherein the processor 1001 is further configured to:
and when the service needs to be supplemented or legal monitoring is required, informing the base station where the calling terminal or the called terminal is located to stop local exchange between the calling terminal and the called terminal.
Therefore, the embodiment of the invention can ensure that the base station and the service gateway where the called terminal is located can carry out local exchange on the calling terminal and the called terminal according to the first global ID information by sending the first global ID information to the base station and the service gateway where the called terminal is located, or can also inform the base station where the calling terminal or the called terminal is located to carry out local exchange on the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
Referring to fig. 15, a schematic structural diagram of another base station 2 according to an embodiment of the present invention is shown, where the base station 2 refers specifically to a base station where a called terminal is located. The base station 2 may include a processor 2001, a communication interface 2002, and a memory 2003 (the number of the processors 2001 in the base station 2 may be one or more, and one processor 2001 is taken as an example in fig. 15). In some embodiments of the invention, the processor 2001, the communication interface 2002 and the memory 2003 may be connected by a communication bus or other means, wherein fig. 15 is exemplified by being connected by a communication bus.
The communication interface 2002 is configured to communicate with a switching control apparatus;
the memory 2003 is used for storing programs;
the processor 2001 is used to execute the program to realize
Receiving first global ID information or an exchange judgment result sent by an exchange control device, wherein the exchange judgment result is judged by the exchange control device according to second global ID information;
when the first global ID information is received, the calling terminal and the called terminal are locally exchanged according to the first global ID information;
and when the exchange judgment result is received, locally exchanging the calling terminal and the called terminal according to the exchange judgment result.
The first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located;
the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
When the processor 2001 performs the local exchange between the calling terminal and the called terminal according to the first global ID information when receiving the first global ID information, the processor is specifically configured to:
judging whether the base station and the service gateway where the calling terminal is located are the same as a local base station and a local service gateway or not according to the first global ID information;
if the two are judged to be the same, local exchange is carried out on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the local base station have network communication capacity;
if the network communication capability is judged to be available, a local exchange channel is established with a base station where the calling terminal is located, so that the calling terminal and the called terminal are locally exchanged through the local exchange channel.
When the processor 2001 executes the local exchange between the calling terminal and the called terminal according to the exchange determination result when the exchange determination result is received, the processor is specifically configured to:
when the received switching judgment result is that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, local switching is performed on the calling terminal and the called terminal;
and when the received switching judgment result shows that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity, establishing a local switching channel with the base station where the calling terminal is located so as to perform local switching on the calling terminal and the called terminal through the local switching channel.
Wherein the processor 2001 is further configured to:
receiving the address translation relationship of the calling terminal or the called terminal on the NAT gateway, which is sent by the switching control device, so as to perform local switching on the calling terminal and the called terminal; or,
and presetting an address translation relation of the calling terminal or the called terminal on an NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal.
Wherein the processor 2001 is further configured to:
when the base station where the calling terminal is located is switched to a target base station, switching a local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station;
and when the base station where the called terminal is located is switched to a target base station, switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located.
The base station 2 provided by the embodiment of the invention can enable the base station 2 to locally switch the calling terminal and the called terminal according to the first global ID information or the switching judgment result by receiving the first global ID information or the switching judgment result sent by the switching control device, so as to solve the path redundancy phenomenon existing in the VOIP in the mobile network, thereby reducing the network flow and the network investment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can 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.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (53)
1. A method of voice over IP switching, comprising:
acquiring first global ID information or second global ID information;
when first global ID information is acquired, sending the first global ID information to a base station and a service gateway where a called terminal is located, so that the base station and the service gateway where the called terminal is located perform local exchange on the calling terminal and the called terminal when judging that a relation between the base station and the service gateway where the calling terminal is located and the service gateway meets a local exchange condition according to the first global ID information;
when second global ID information is acquired, notifying a base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal according to the second global ID information;
when the base station where the called terminal is located is switched to a target base station, the global ID of the base station where the calling terminal is located and the service gateway is sent to the target base station by the base station where the called terminal is located, so that the target base station can perform local exchange with the calling terminal according to the global ID of the base station where the calling terminal is located and the service gateway;
the switching control device informs the NAT gateway to insert the IP/PORT conversion relation of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, and informs the NAT gateway to insert the IP/PORT conversion relation of the called terminal when the IMS sends a local switching request to the called terminal, and the switching control device sends the obtained IP/PORT conversion relation of the calling terminal and the called terminal to a base station where the calling terminal or the called terminal is located so as to carry out local switching on the calling terminal and the called terminal.
2. The method of claim 1, wherein the obtaining the first global ID information or the second global ID information comprises:
a notification Policy and Charging Rules Function (PCRF) entity reports the global IDs of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and takes the received global IDs of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information; or,
and informing the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located and the global ID of the serving gateway where the called terminal is located as second global ID information.
3. The method of claim 1,
the local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
4. The method of claim 2,
the local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
5. The method of claim 1, wherein the sending the first global ID information to a base station and a serving gateway where the called terminal is located comprises:
creating a local exchange request and adding the first global ID information to the local exchange request;
and sending the local exchange request to a base station and a service gateway where the called terminal is located.
6. The method of claim 2, wherein the sending the first global ID information to the base station and the serving gateway where the called terminal is located comprises:
creating a local exchange request and adding the first global ID information to the local exchange request;
and sending the local exchange request to a base station and a service gateway where the called terminal is located.
7. The method as claimed in claim 3, wherein said sending said first global ID information to the base station and serving gateway where the called terminal is located comprises:
creating a local exchange request and adding the first global ID information to the local exchange request;
and sending the local exchange request to a base station and a service gateway where the called terminal is located.
8. The method as claimed in claim 4, wherein said sending said first global ID information to the base station and serving gateway where the called terminal is located comprises:
creating a local exchange request and adding the first global ID information to the local exchange request;
and sending the local exchange request to a base station and a service gateway where the called terminal is located.
9. The method according to any one of claims 1 to 8, wherein said notifying, according to the second global ID information, a base station where the calling terminal or the called terminal is located to perform local switching between the calling terminal and the called terminal includes:
judging whether the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located according to the second global ID information;
if the local exchange is judged to be the same, informing the same base station where the calling terminal and the called terminal are located to carry out local exchange on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity;
if the network communication capacity is judged to be available, the base station where the calling terminal or the called terminal is located is informed to establish a local exchange channel with an opposite terminal base station, so that the base station where the calling terminal or the called terminal is located carries out local exchange on the calling terminal and the called terminal through the local exchange channel.
10. The method of any of claims 1 to 8, further comprising:
and sending the address translation relation of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway to a base station where the calling terminal or the called terminal is located so as to perform local exchange on the calling terminal and the called terminal.
11. The method of claim 9, further comprising:
and sending the address translation relation of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway to a base station where the calling terminal or the called terminal is located so as to perform local exchange on the calling terminal and the called terminal.
12. The method of any of claims 1 to 8, further comprising:
and when the service needs to be supplemented or legal monitoring is required, informing the base station where the calling terminal or the called terminal is located to stop local exchange between the calling terminal and the called terminal.
13. The method of claim 9, further comprising:
and when the service needs to be supplemented or legal monitoring is required, informing the base station where the calling terminal or the called terminal is located to stop local exchange between the calling terminal and the called terminal.
14. The method of claim 10, further comprising:
and when the service needs to be supplemented or legal monitoring is required, informing the base station where the calling terminal or the called terminal is located to stop local exchange between the calling terminal and the called terminal.
15. The method of claim 11, further comprising:
and when the service needs to be supplemented or legal monitoring is required, informing the base station where the calling terminal or the called terminal is located to stop local exchange between the calling terminal and the called terminal.
16. A method of voice over IP switching, comprising:
receiving first global ID information or an exchange judgment result sent by an exchange control device, wherein the exchange judgment result is judged by the exchange control device according to second global ID information;
when the first global ID information is received, local exchange is carried out on a calling terminal and a called terminal according to the first global ID information;
when receiving the switching judgment result, locally switching the calling terminal and the called terminal according to the switching judgment result;
when the base station where the called terminal is located is switched to a target base station, the global ID of the base station where the calling terminal is located and the service gateway is sent to the target base station by the base station where the called terminal is located, so that the target base station can perform local exchange with the calling terminal according to the global ID of the base station where the calling terminal is located and the service gateway;
the switching control device informs the NAT gateway to insert the IP/PORT conversion relation of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, and informs the NAT gateway to insert the IP/PORT conversion relation of the called terminal when the IMS sends a local switching request to the called terminal, and the switching control device sends the obtained IP/PORT conversion relation of the calling terminal and the called terminal to the base station where the calling terminal or the called terminal is located so as to carry out local switching on the calling terminal and the called terminal.
17. The method of claim 16,
the first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located;
the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
18. The method of claim 17, wherein said locally switching said calling terminal and said called terminal according to said first global ID information comprises:
judging whether the base station and the service gateway where the calling terminal is located are the same as a local base station and a local service gateway or not according to the first global ID information;
if the two are judged to be the same, local exchange is carried out on the calling terminal and the called terminal;
if the two base stations are different, further judging whether the base station where the calling terminal is located and the local base station have network communication capacity;
if the network communication capability is judged to be available, a local exchange channel is established with a base station where the calling terminal is located, so that the calling terminal and the called terminal are locally exchanged through the local exchange channel.
19. The method of claim 17, wherein the locally switching the calling terminal and the called terminal according to the switching determination result comprises:
when the received switching judgment result is that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, local switching is performed on the calling terminal and the called terminal;
and when the received switching judgment result shows that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity, establishing a local switching channel with the base station where the calling terminal is located so as to perform local switching on the calling terminal and the called terminal through the local switching channel.
20. The method of claim 18, wherein the locally switching the calling terminal and the called terminal according to the switching determination result comprises:
when the received switching judgment result is that the base station and the service gateway where the calling terminal is located are the same as the base station and the service gateway where the called terminal is located, local switching is performed on the calling terminal and the called terminal;
and when the received switching judgment result shows that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity, establishing a local switching channel with the base station where the calling terminal is located so as to perform local switching on the calling terminal and the called terminal through the local switching channel.
21. The method of any of claims 16 to 20, further comprising:
receiving an address translation relationship, sent by the switching control device, of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway, so as to perform local switching on the calling terminal and the called terminal; or,
and presetting an address translation relation of the calling terminal or the called terminal on an NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal.
22. The method of claim 21, further comprising:
receiving an address translation relationship, sent by the switching control device, of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway, so as to perform local switching on the calling terminal and the called terminal; or,
and presetting an address translation relation of the calling terminal or the called terminal on an NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal.
23. The method of any of claims 18 to 20, further comprising:
when the base station where the calling terminal is located is switched to a target base station, switching a local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station;
and when the base station where the called terminal is located is switched to a target base station, switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located.
24. The method of claim 21, further comprising:
when the base station where the calling terminal is located is switched to a target base station, switching a local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station;
and when the base station where the called terminal is located is switched to a target base station, switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located.
25. The method of claim 22, further comprising:
when the base station where the calling terminal is located is switched to a target base station, switching a local exchange relationship between the calling terminal and the called terminal to the target base station and the local base station;
and when the base station where the called terminal is located is switched to a target base station, switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located.
26. A switching control apparatus, comprising:
the acquisition module is used for acquiring the first global ID information or the second global ID information;
the sending module is used for sending the first global ID information to a base station and a service gateway where a called terminal is located when the obtaining module obtains the first global ID information, so that the base station and the service gateway where the called terminal is located can carry out local exchange on the calling terminal and the called terminal when judging that the relation between the base station and the service gateway where the calling terminal is located meets a local exchange condition according to the first global ID information;
the notification module is used for notifying a base station where the calling terminal or the called terminal is located to perform local exchange on the calling terminal and the called terminal according to the second global ID information when the acquisition module acquires the second global ID information;
when the base station where the called terminal is located is switched to a target base station, the global ID of the base station where the calling terminal is located and the global ID of the service gateway are sent to the target base station by the base station where the called terminal is located, so that the target base station can perform local exchange with the calling terminal according to the global ID of the base station where the calling terminal is located and the global ID of the service gateway;
the notification module is further configured to notify the NAT gateway to insert the IP/PORT translation relationship of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, notify the NAT gateway to insert the IP/PORT translation relationship of the called terminal when the IMS sends the local exchange request to the called terminal, and send the obtained IP/PORT translation relationship of the calling terminal and the called terminal to the calling terminal or the base station where the called terminal is located, so as to perform local exchange between the calling terminal and the called terminal.
27. The apparatus of claim 26, wherein the acquisition module comprises:
a first notification reporting unit, configured to notify a Policy and Charging Rules Function (PCRF) entity to report a global ID of a base station where a calling terminal is located and a serving gateway where the calling terminal is located, and use the received global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located as first global ID information;
and the second notification reporting unit is used for notifying the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located, and taking the received global ID of the base station where the calling terminal is located and the serving gateway where the called terminal is located and the global ID of the serving gateway where the called terminal is located as second global ID information.
28. The apparatus of claim 26,
the local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
29. The apparatus of claim 27,
the local exchange condition is that a base station and a service gateway where the calling terminal is located are the same as those where the called terminal is located; or,
and the local exchange condition is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capacity.
30. The apparatus of claim 26, wherein the sending module comprises:
the creating and adding unit is used for creating a local exchange request and adding the first global ID information to the local exchange request;
and the request sending unit is used for sending the local exchange request to the base station and the service gateway where the called terminal is located.
31. The apparatus of claim 27, wherein the sending module comprises:
the creating and adding unit is used for creating a local exchange request and adding the first global ID information to the local exchange request;
and the request sending unit is used for sending the local exchange request to the base station and the service gateway where the called terminal is located.
32. The apparatus of claim 28, wherein the transmitting module comprises:
the creating and adding unit is used for creating a local exchange request and adding the first global ID information to the local exchange request;
and the request sending unit is used for sending the local exchange request to the base station and the service gateway where the called terminal is located.
33. The apparatus of claim 29, wherein the transmitting module comprises:
the creating and adding unit is used for creating a local exchange request and adding the first global ID information to the local exchange request;
and the request sending unit is used for sending the local exchange request to the base station and the service gateway where the called terminal is located.
34. The apparatus of any of claims 26 to 33, wherein the notification module comprises:
a first judging unit, configured to judge, according to the second global ID information, whether a base station and a serving gateway where the calling terminal is located are the same as a base station and a serving gateway where the called terminal is located;
a notification switching unit, configured to notify the same base station where the calling terminal and the called terminal are located to perform local switching on the calling terminal and the called terminal if the first determination unit determines that the two terminals are the same;
a second judging unit, configured to further judge whether a network communication capability exists between the base station where the calling terminal is located and the base station where the called terminal is located if the first judging unit judges that the base stations are different;
and a notification establishing unit, configured to notify a base station where the calling terminal or the called terminal is located to establish a local exchange channel with an opposite-end base station if the second determining unit determines that the second determining unit has the network communication capability, so that the base station where the calling terminal or the called terminal is located performs local exchange on the calling terminal and the called terminal through the local exchange channel.
35. The apparatus of any one of claims 26 to 33, further comprising:
a translation relation sending module, configured to send an address translation relation of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway to a base station where the calling terminal or the called terminal is located, so as to perform local exchange between the calling terminal and the called terminal.
36. The apparatus of claim 34, further comprising:
a translation relation sending module, configured to send an address translation relation of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway to a base station where the calling terminal or the called terminal is located, so as to perform local exchange between the calling terminal and the called terminal.
37. The apparatus of any one of claims 26 to 33, further comprising:
and the notification stop switching module is used for notifying the base station where the calling terminal or the called terminal is located to stop local switching between the calling terminal and the called terminal when service supplement is needed or legal monitoring is needed.
38. The apparatus of claim 34, further comprising:
and the notification stop switching module is used for notifying the base station where the calling terminal or the called terminal is located to stop local switching between the calling terminal and the called terminal when service supplement is needed or legal monitoring is needed.
39. The apparatus of claim 35, further comprising: and the notification stop switching module is used for notifying the base station where the calling terminal or the called terminal is located to stop local switching between the calling terminal and the called terminal when service supplement is needed or legal monitoring is needed.
40. The apparatus of claim 36, further comprising: and the notification stop switching module is used for notifying the base station where the calling terminal or the called terminal is located to stop local switching between the calling terminal and the called terminal when service supplement is needed or legal monitoring is needed.
41. A base station, comprising:
the receiving module is used for receiving first global ID information or an exchange judgment result sent by the exchange control device, and the exchange judgment result is judged by the exchange control device according to second global ID information;
the first local exchange module is used for locally exchanging the calling terminal and the called terminal according to the first global ID information when the first global ID information is received;
the second local exchange module is used for carrying out local exchange on the calling terminal and the called terminal according to the exchange judgment result when the exchange judgment result is received;
when the base station where the called terminal is located is switched to a target base station, the global ID of the base station where the calling terminal is located and the global ID of the service gateway are sent to the target base station by the base station where the called terminal is located, so that the target base station can perform local exchange with the calling terminal according to the global ID of the base station where the calling terminal is located and the global ID of the service gateway;
the switching control device informs the NAT gateway to insert the IP/PORT conversion relation of the calling terminal when the PCRF entity reports the first global ID information or the second global ID information to the IMS, and informs the NAT gateway to insert the IP/PORT conversion relation of the called terminal when the IMS sends a local switching request to the called terminal, and the switching control device sends the obtained IP/PORT conversion relation of the calling terminal and the called terminal to the base station where the calling terminal or the called terminal is located so as to carry out local switching on the calling terminal and the called terminal.
42. The base station of claim 41,
the first global ID information comprises the global ID of a base station where the calling terminal is located and a serving gateway where the calling terminal is located;
the second global ID information comprises the global ID of the base station where the calling terminal is located and the serving gateway where the calling terminal is located, and the global ID of the base station where the called terminal is located and the serving gateway where the called terminal is located.
43. The base station of claim 42, wherein the first local switching module comprises:
the first local judgment unit is used for judging whether the base station and the service gateway where the calling terminal is located are the same as the local base station and the local service gateway or not according to the first global ID information;
the first switching unit is used for carrying out local switching on the calling terminal and the called terminal if the first local judgment unit judges that the two terminals are the same;
a second local judging unit, configured to further judge whether a network communication capability exists between the local base station and a base station where the calling terminal is located if the first local judging unit judges that the base stations are different;
and the first establishing unit is used for establishing a local exchange channel with the base station where the calling terminal is located if the second local judging unit judges that the second local judging unit has the network communication capability, so as to carry out local exchange on the calling terminal and the called terminal through the local exchange channel.
44. The base station of claim 42, wherein the second local switching module comprises:
a second switching unit, configured to perform local switching on the calling terminal and the called terminal when the received switching determination result indicates that the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located;
and the second establishing unit is used for establishing a local exchange channel with the base station where the calling terminal is located when the received exchange judgment result indicates that the network communication capacity exists between the base station where the calling terminal is located and the base station where the called terminal is located, so as to perform local exchange on the calling terminal and the called terminal through the local exchange channel.
45. The base station of claim 43, wherein the second local switching module comprises:
a second switching unit, configured to perform local switching on the calling terminal and the called terminal when the received switching determination result indicates that the base station and the serving gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located;
and the second establishing unit is used for establishing a local exchange channel with the base station where the calling terminal is located when the received exchange judgment result indicates that the network communication capacity exists between the base station where the calling terminal is located and the base station where the called terminal is located, so as to perform local exchange on the calling terminal and the called terminal through the local exchange channel.
46. The base station of any of claims 41 to 45, further comprising:
a translation relation receiving module, configured to receive an address translation relation, sent by the switching control device, of the calling terminal or the called terminal on a Network Address Translation (NAT) gateway, so as to perform local switching between the calling terminal and the called terminal;
and the presetting module is used for presetting the address translation relation of the calling terminal or the called terminal on the NAT gateway so as to facilitate local exchange between the calling terminal and the called terminal.
47. The base station of any one of claims 43 to 44, further comprising:
a first switching module, configured to switch a local switching relationship between the calling terminal and the called terminal to a target base station and a local base station when a base station where the calling terminal is located is switched to the target base station;
and the second switching module is used for switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located when the base station where the called terminal is located is switched to the target base station.
48. The base station of claim 45, further comprising:
a first switching module, configured to switch a local switching relationship between the calling terminal and the called terminal to a target base station and a local base station when a base station where the calling terminal is located is switched to the target base station;
and the second switching module is used for switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located when the base station where the called terminal is located is switched to the target base station.
49. The base station of claim 46, further comprising:
a first switching module, configured to switch a local switching relationship between the calling terminal and the called terminal to a target base station and a local base station when a base station where the calling terminal is located is switched to the target base station;
and the second switching module is used for switching the local exchange relationship between the calling terminal and the called terminal to the target base station and the base station where the calling terminal is located when the base station where the called terminal is located is switched to the target base station.
50. A computer storage medium comprising, in combination,
the computer storage medium may have a program stored thereon that, when executed, includes the steps of any of claims 1-15.
51. A computer storage medium comprising, in combination,
the computer storage medium may have a program stored thereon which when executed includes the steps of any of claims 16 to 25.
52. A switching control apparatus, comprising: a processor, a communication interface, and a memory, wherein,
the communication interface is used for communicating with a base station and a service gateway;
the memory is used for storing programs;
the processor is configured to execute the program to implement the method of any one of claims 1 to 15.
53. A base station, comprising: a processor, a communication interface, and a memory, wherein,
the communication interface is used for communicating with the exchange control device;
the memory is used for storing programs;
the processor is configured to execute the program to implement the method of any one of claims 16 to 25.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/076998 WO2015168890A1 (en) | 2014-05-08 | 2014-05-08 | Voip exchange method and relevant device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105264962A CN105264962A (en) | 2016-01-20 |
CN105264962B true CN105264962B (en) | 2019-06-28 |
Family
ID=54391978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201480020973.XA Active CN105264962B (en) | 2014-05-08 | 2014-05-08 | A kind of method and relevant device of ip voice exchange |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105264962B (en) |
WO (1) | WO2015168890A1 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1884091B1 (en) * | 2005-05-25 | 2015-01-28 | Telefonaktiebolaget LM Ericsson (publ) | Local switching of calls setup by multimedia core network |
CN101873574B (en) * | 2009-04-22 | 2015-03-25 | 华为技术有限公司 | Point-to-point data exchange method and wireless access device and system for wireless network |
WO2011113210A1 (en) * | 2010-03-19 | 2011-09-22 | 上海贝尔股份有限公司 | Method and device for local switching among multiple base stations |
WO2011113207A1 (en) * | 2010-03-19 | 2011-09-22 | 上海贝尔股份有限公司 | Method and device for service switch |
-
2014
- 2014-05-08 CN CN201480020973.XA patent/CN105264962B/en active Active
- 2014-05-08 WO PCT/CN2014/076998 patent/WO2015168890A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2015168890A1 (en) | 2015-11-12 |
CN105264962A (en) | 2016-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9648051B2 (en) | System and method for transitioning a communication session between networks that are not commonly controlled | |
CN101420669B (en) | Method, system and apparatus for call forwarding | |
CN102780675B (en) | Transmission method, device and system for streaming media service | |
US8693464B2 (en) | Method and apparatus for processing calls | |
CN105873241B (en) | Method and device for establishing call connection | |
US20130070737A1 (en) | Method and apparatus for managing calls | |
CN106454977B (en) | Call service switching method and device for terminal | |
WO2015050574A1 (en) | Call handoff between different networks for hybrid mobile device | |
EP3157224A1 (en) | Method, system, and device for converting session control signaling | |
CN101742589A (en) | A method for multimedia session transfer, user equipment and server | |
US8483182B1 (en) | Single radio voice call continuity handover of calls with video media from a circuit switched access network | |
CN101527894B (en) | A method, device and mobile communication system for realizing explicit call transfer | |
EP3515108A1 (en) | Service communication method and device | |
CN106658450B (en) | Remote heterogeneous network mobile real-time communication method | |
CN105264962B (en) | A kind of method and relevant device of ip voice exchange | |
CN102255980B (en) | Method and apparatus for managing calling information of session initiation protocol | |
US10575343B2 (en) | Communication method and apparatus | |
CN103079242B (en) | Call handover method, device and system | |
CN105556921A (en) | A mobile-device based proxy for browser-originated procedures | |
CN105451289B (en) | A kind of method for processing business and system, equipment | |
CN102546644A (en) | Method, equipment and system for implementing SIP (Session Initiation Protocol) calling | |
KR101417648B1 (en) | Call processing system and control method thereof | |
CN104854905B (en) | The continuity switching method and equipment of voice service | |
WO2017097031A1 (en) | Access recovery method, mobile switching server, mobility management entity, and system | |
EP3619902A1 (en) | Method for an improved handling of an internet protocol multimedia subsystem conversational service of a user equipment, system, public land mobile network, call state control function node, program and computer program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |