WO2015168890A1 - Voip exchange method and relevant device - Google Patents

Voip exchange method and relevant device Download PDF

Info

Publication number
WO2015168890A1
WO2015168890A1 PCT/CN2014/076998 CN2014076998W WO2015168890A1 WO 2015168890 A1 WO2015168890 A1 WO 2015168890A1 CN 2014076998 W CN2014076998 W CN 2014076998W WO 2015168890 A1 WO2015168890 A1 WO 2015168890A1
Authority
WO
WIPO (PCT)
Prior art keywords
base station
calling terminal
terminal
global
called terminal
Prior art date
Application number
PCT/CN2014/076998
Other languages
French (fr)
Chinese (zh)
Inventor
刘海
崇卫微
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480020973.XA priority Critical patent/CN105264962B/en
Priority to PCT/CN2014/076998 priority patent/WO2015168890A1/en
Publication of WO2015168890A1 publication Critical patent/WO2015168890A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing

Definitions

  • the calling terminal or the base station where the called terminal is located is notified to stop local exchange between the calling terminal and the called terminal.
  • a sending module configured to: when the acquiring module acquires the first global ID information, 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 service where the called terminal is located
  • the gateway performs local exchange between the calling terminal and the called terminal when determining, according to the first global ID information, that the relationship between the base station and the serving gateway where the calling terminal is located meets the local switching condition;
  • a second determining unit configured to determine, if the first determining unit is different, whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability; And if the second determining unit determines that the network communication capability is Knowing that the calling terminal or the base station where the called terminal is located establishes a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located passes the local switching channel to the main The calling terminal and the called terminal perform local exchange.
  • the PCRF entity reports the global ID of the base station where the calling terminal is located and the global ID of the serving gateway, and the specific process of the base station where the called terminal is located and the global ID of the serving gateway, and the PCRF entity reports the base station where the calling terminal is located and
  • the specific process of the global ID of the serving gateway is substantially the same, that is, the PCRF entity separately initiates an IP-CAN session modification process for the calling terminal and an IP-CAN session modification process for the called terminal to obtain the calling terminal respectively.
  • the switching control device may send the first global ID information to the base station and the serving gateway where the called terminal is located, so that the called terminal
  • the base station and the serving gateway determine that the relationship between the base station and the serving gateway where the calling terminal is located satisfies the local switching condition according to the first global ID information, perform the calling terminal and the called terminal.
  • the local exchange condition 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; or
  • the local exchange condition is that the base station where the calling terminal is located has network communication capability with the base station where the called terminal is located.
  • the switching control apparatus may notify the calling terminal or the called terminal
  • the base station establishes a local switching channel with the peer base station, so that the calling terminal or the base station where the called terminal is located performs local exchange between the calling terminal and the called terminal through the local switching channel.
  • the switching path of the local exchange is: the calling terminal to the base station where the calling terminal is located, and then the local switching channel to the base station where the called terminal is located, and finally to the called terminal.
  • the switching control device may also send the exchange judgment result to the base station where the calling terminal is located, so that the base station where the calling terminal is located may also refer to the calling terminal and the The called terminal performs local exchange.
  • S401 Determine, according to the first global ID information, 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 serving gateway.
  • S402. Perform local exchange between the calling terminal and the called terminal.
  • the base station where the called terminal is located When the local exchange condition is satisfied that 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 will establish a local switching channel with the base station where the calling terminal is located, Performing local exchange between the calling terminal and the called terminal by using the local switching channel, where the switching path of the local switching is: the calling terminal to the base station where the calling terminal is located, and then through the local switching channel to the called party The base station where the terminal is located, and finally the called terminal.
  • the notification module 13 may include: a first determining unit 131, a notification switching unit 132, a second determining unit 133, and a notification establishing unit. 134;
  • 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 connectivity between the two base stations can be determined.
  • the notification establishing unit 134 may notify the calling terminal. Or the base station where the called terminal is located establishes a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located to the calling party through the local switching channel. The terminal and the called terminal perform local exchange, and the switching path of the local exchange is: the calling terminal to the base station where the calling terminal is located, and then the local switching channel to the base station where the called terminal is located, and finally to the called terminal.
  • FIG. 9 is 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 notification module 13 in FIG. 5, and further
  • the switching control device 1 may further include: a conversion relationship sending module 14, and a notification stopping switching module 15;
  • the receiving module 21 may receive the first global ID information sent by the switching control device or exchange the determination result.
  • the exchange judgment result is determined by the exchange control device according to the second global ID information.
  • the first global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway;
  • the second global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway, and a base station where the called terminal is located.
  • the global ID of the service gateway includes a global ID of the base station where the calling terminal is located and the serving gateway.
  • the conversion relationship receiving module 24 is configured to receive an address translation relationship between the calling terminal or the called terminal sent by the switching control device on a NAT gateway, so as to facilitate the calling terminal Local exchange with the called terminal;
  • the second switching module when the base station where the called terminal is located is switched to the target base station, the second switching module
  • the calling terminal and the same base station where the called terminal is located are notified to perform local exchange between the calling terminal and the called terminal;

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a VOIP exchange method and a relevant device. The method comprises: acquiring first global ID information or second global ID information; when the first global ID information is acquired, sending the first global ID information to a base station and a serving gateway where a called terminal is located, in order that the base station and the serving gateway where the called terminal is located perform local exchange for a calling terminal and the called terminal according to the first global ID information; and when the second global ID information is acquired, informing the base station where the calling terminal and the called terminal are located to perform local exchange for the calling terminal and the called terminal according to the second global ID information. The present invention can be used to solve the path redundancy phenomenon existing in VOIP of a mobile network, so as to reduce network traffic and network investment.

Description

一种 IP语音交换的方法以及相关设备 技术领域  Method for IP voice exchange and related equipment
本发明涉及通信技术领域, 尤其涉及一种 IP语音交换的方法以及相关设 备。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method for IP voice exchange and related devices. Background technique
VOIP ( Voice over Iiiternei Protocol , IP语音 )是通过 IP ( Intemet Protocol , 网络协议) 网络来传输语音的方式。 终端之间通过 SIP ( Session Initiation Protocol 会话发起协议)信令协商 VOIP用户面信息, 并在协商之后即可进 行 VOIP通话, 其中, 用户面信息可以包括: IP地址端口、 语音编解码等等。  VOIP (Voice over Iiiternei Protocol) is a method of transmitting voice over an IP (Intemet Protocol) network. The VOIP user plane information is negotiated between the terminals through the SIP (Session Initiation Protocol), and the VOIP call can be performed after the negotiation. The user plane information may include: an IP address port, a voice codec, and the like.
在现有技术中, 如果两个用户都是移动用户, 那么它们在进行 VOIP通话 时的完整的交换路径可以为: 主叫终端依次经过主叫终端所在的基站、服务网 关以及包交换网关,再依次经过被叫终端所在的包交换网关、服务网关以及基 站, 最后到达被叫终端。尽管当两个用户终端都在同一个基站或同一个服务网 关上时,它们在进行 VOIP通话时仍然需要经历上述的完整的交换路径,此时, 必然导致了路径冗余, 增加了网络流量和网络投资。 发明内容  In the prior art, if two users are mobile users, the complete switching path when they perform VOIP calls may be: The calling terminal sequentially passes through the base station where the calling terminal is located, the serving gateway, and the packet switching gateway, and then It passes through the packet switching gateway, the serving gateway, and the base station where the called terminal is located, and finally reaches the called terminal. Although when both user terminals are on the same base station or the same service gateway, they still need to go through the above complete switching path when making VOIP calls, which inevitably leads to path redundancy, increased network traffic and Network investment. Summary of the invention
本发明实施例提供一种 IP语音交换的方法以及相关设备, 可以解决移动 网络里 VOIP存在的路径冗余现象, 以减少网络流量和网络投资。  The embodiments of the present invention provide a method for IP voice exchange and related equipment, which can solve the path redundancy phenomenon of VOIP in a mobile network, so as to reduce network traffic and network investment.
本发明第一方面提供了一种 IP语音交换的方法, 包括:  A first aspect of the present invention provides a method for IP voice exchange, including:
获取第一全局 ID信息或第二全局 ID信息;  Obtaining the first global ID information or the second global ID information;
当获取到第一全局 ID信息时,发送所述第一全局 ID信息到被叫终端所在 的基站和服务网关,以使所述被叫终端所在的基站和服务网关在根据所述第一 全局 ID信息判断出与主叫终端所在的基站和服务网关之间的关系满足本地交 换条件时, 对所述主叫终端和所述被叫终端进行本地交换; 当获取到第二全局 ID信息时,根据所述第二全局 ID信息通知所述主叫终 端或所述被叫终端所在的基站对所述主叫终端和所述被叫终端进行本地交换。 When the first global ID information is obtained, the first global ID information is sent to the base station and the serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located are according to the first global ID. The information is determined to be locally exchanged between the calling terminal and the called terminal when the relationship between the base station and the serving gateway where the calling terminal is located satisfies the local switching condition; When the second global ID information is obtained, the calling terminal or the base station where the called terminal is located is notified to perform local exchange between the calling terminal and the called terminal according to the second global ID information.
在第一种可能的实现方式中, 所述获取第一全局 ID信息或第二全局 ID 信息, 包括:  In the first possible implementation, the acquiring the first global ID information or the second global ID information includes:
通知策略与计费规则功能单元(PCRF ) 实体上报主叫终端所在基站和所 在服务网关的全局 ID, 并将接收到的所述主叫终端所在基站和所在服务网关 的全局 ID作为第一全局 ID信息; 或者,  The notification policy and charging rule function unit (PCRF) entity reports the global ID of the base station where the calling terminal is located and the serving gateway, and receives the received global ID of the base station where the calling terminal is located and the serving gateway as the first global ID. Information; or,
通知 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID、 以及 被叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端所 在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的 全局 ID作为第二全局 ID信息。  Notifying the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway, and the received global ID of the base station where the calling terminal is located and the serving gateway And the global ID of the base station where the called terminal is located and the serving gateway is used as the second global ID information.
结合第一方面, 或第一方面的第一种可能的实现方式,在第二种可能的实 现方式中,  In combination with the first aspect, or the first possible implementation of the first aspect, in a second possible implementation,
所述本地交换条件为所述主叫终端所在的基站和服务网关均与所述被叫 终端所在的基站和服务网关相同; 或者,  The local exchange condition 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; or
所述本地交换条件为所述主叫终端所在的基站与所述被叫终端所在的基 站之间具有网络通信能力。  The local exchange condition is that the base station where the calling terminal is located has network communication capability with the base station where the called terminal is located.
结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二 种可能的实现方式, 在第三种可能的实现方式中, 所述发送所述第一全局 ID 信息到被叫终端所在的基站和服务网关, 包括:  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 the base station and service gateway where the called terminal is located, including:
创建本地交换请求,并将所述第一全局 ID信息添加至所述本地交换请求; 发送所述本地交换请求到所述被叫终端所在的基站和服务网关。  Creating a local exchange request, and adding the first global ID information to the local exchange request; sending the local exchange request to a base station and a serving gateway where the called terminal is located.
结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二 种可能的实现方式, 或第一方面的第三种可能的实现方式,在第四种可能的实 现方式中, 所述才艮据所述第二全局 ID信息通知所述主叫终端或所述被叫终端 所在的基站对所述主叫终端和所述被叫终端进行本地交换, 包括:  With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible In an implementation manner, the notifying the base station or the base station where the called terminal is located to locally exchange the calling terminal and the called terminal according to the second global ID information, including:
根据所述第二全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与所述被叫终端所在的基站和服务网关相同; Determining, according to the second global ID information, whether the base station and the serving gateway where the calling terminal is located Both are the same as the base station and the serving gateway where the called terminal is located;
若判断为相同,则通知所述主叫终端和所述被叫终端所在的相同的基站对 所述主叫终端和所述被叫终端进行本地交换;  If it is determined to be the same, the calling terminal and the same base station where the called terminal is located are notified to perform local exchange between the calling terminal and the called terminal;
若判断为不同,则进一步判断所述主叫终端所在的基站与所述被叫终端所 在的基站之间是否具有网络通信能力;  If it is determined to be different, further determining whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability;
若判断为具有网络通信能力,则通知所述主叫终端或所述被叫终端所在的 基站与对端基站建立本地交换通道,以使所述主叫终端或所述被叫终端所在的 基站通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交换。  If it is determined that the network communication capability is determined, the base station where the calling terminal or the called terminal is located is notified to establish a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located passes The local switching channel performs local exchange between the calling terminal and the called terminal.
结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二 种可能的实现方式, 或第一方面的第三种可能的实现方式, 或第一方面的第四 种可能的实现方式, 在第五种可能的实现方式中, 还包括:  With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, or the first aspect The four possible implementations, in the fifth possible implementation, also include:
发送所述主叫终端或所述被叫终端在网络地址转换(NAT )网关上的地址 转换关系到所述主叫终端或所述被叫终端所在的基站,以便于对所述主叫终端 和所述被叫终端进行本地交换。  Transmitting, by the calling terminal or the called terminal, an address translation relationship on a network address translation (NAT) gateway to a base station where the calling terminal or the called terminal is located, so as to facilitate the calling terminal and The called terminal performs local exchange.
结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二 种可能的实现方式, 或第一方面的第三种可能的实现方式, 或第一方面的第四 种可能的实现方式, 或第一方面的第五种可能的实现方式,在第六种可能的实 现方式中, 还包括:  With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, or the first aspect The four possible implementation manners, or the fifth possible implementation manner of the first aspect, in the sixth possible implementation manner, the method further includes:
当需要补充业务或合法监听时,通知所述主叫终端或所述被叫终端所在的 基站停止对所述主叫终端和所述被叫终端进行本地交换。  When the supplementary service or the lawful interception is required, the calling terminal or the base station where the called terminal is located is notified to stop local exchange between the calling terminal and the called terminal.
本发明第二方面提供了一种 IP语音交换的方法, 包括:  A second aspect of the present invention provides a method for IP voice exchange, including:
接收交换控制装置发送的第一全局 ID信息或交换判断结果, 所述交换判 断结果是由所述交换控制装置根据第二全局 ID信息所判断出的;  Receiving, by the exchange control device, first global ID information or exchanging a determination result, where the exchange determination result is determined by the exchange control device according to the second global ID information;
当接收到所述第一全局 ID信息时,根据所述第一全局 ID信息对所述主叫 终端和所述被叫终端进行本地交换;  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, the calling terminal and the called terminal are locally exchanged according to the exchange judgment result. In the first possible implementation,
所述第一全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID; 所述第二全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。  The first global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway. The second global ID information includes the global ID of the base station where the calling terminal is located and the serving gateway, and the base station where the called terminal is located. The global ID of the service gateway.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中, 所 述根据所述第一全局 ID信息对所述主叫终端和所述被叫终端进行本地交换, 包括:  With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the local exchange between the calling terminal and the called terminal according to the first global ID information, including :
根据所述第一全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与本地基站和本地服务网关相同;  Determining, 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 the local base station and the local serving gateway;
若判断为相同, 则对所述主叫终端和所述被叫终端进行本地交换; 若判断为不同,则进一步判断所述主叫终端所在的基站与所述本地基站之 间是否具有网络通信能力;  If it is determined to be the same, the calling terminal and the called terminal are locally exchanged; if it is determined to be different, further determining whether the base station where the calling terminal is located and the local base station have network communication capability ;
若判断为具有网络通信能力,则与所述主叫终端所在的基站建立本地交换 通道, 以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交 换。  If it is determined that the network communication capability is available, a local switching channel is established with the base station where the calling terminal is located, to locally exchange the calling terminal and the called terminal through the local switching channel.
结合第二方面的第一种可能的实现方式,或第二方面的第二种可能的实现 方式,在第三种可能的实现方式中, 所述根据所述交换判断结果对所述主叫终 端和所述被叫终端进行本地交换, 包括:  With reference to the first possible implementation of the second aspect, or the second possible implementation of the second aspect, in a third possible implementation manner, the Local exchange with the called terminal, including:
当接收到的所述交换判断结果为所述主叫终端所在的基站和服务网关均 与所述被叫终端所在的基站和服务网关相同时,对所述主叫终端和所述被叫终 端进行本地交换;  When the received handover judgment 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, performing the calling terminal and the called terminal. Local exchange
当接收到的所述交换判断结果为所述主叫终端所在的基站与所述被叫终 端所在的基站之间具有网络通信能力时,与所述主叫终端所在的基站建立本地 交换通道,以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地 交换。  When the exchange judgment result is that the base station where the calling terminal is located and the base station where the called terminal is located has a network communication capability, establish a local switching channel with the base station where the calling terminal is located, Locally exchanging the calling terminal and the called terminal through the local switching channel.
结合第二方面, 或第二方面的第一种可能的实现方式, 或第二方面的第二 种可能的实现方式, 或第二方面的第三种可能的实现方式,在第四种可能的实 现方式中, 还包括: With reference to the second aspect, or the first possible implementation of the second aspect, or the second possible implementation of the second aspect, or the third possible implementation of the second aspect, in the fourth possible Real In the current mode, it also includes:
接收所述交换控制装置发送的所述主叫终端或所述被叫终端在网络地址 转换(NAT )网关上的地址转换关系, 以便于对所述主叫终端和所述被叫终端 进行本地交换; 或者,  Receiving, by the switching control device, an address translation relationship between the calling terminal or the called terminal on a network address translation (NAT) gateway, so as to perform local exchange between the calling terminal and the called terminal Or,
预设所述主叫终端或所述被叫终端在 NAT网关上的地址转换关系, 以便 于对所述主叫终端和所述被叫终端进行本地交换。  Presetting the address translation relationship between 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.
结合第二方面的第二种可能的实现方式,或第二方面的第三种可能的实现 方式, 或第二方面的第四种可能的实现方式, 在第五种可能的实现方式中, 还 包括:  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 the fifth possible implementation manner, Includes:
当所述主叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述本地基站;  When the base station where the calling terminal is located is handed over to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the local base station;
当所述被叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述主叫终端所在的基站。  When the base station where the called terminal is located switches to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the base station where the calling terminal is located.
本发明第三方面提供了一种交换控制装置, 包括:  A third aspect of the present invention provides an exchange control apparatus, including:
获取模块, 用于获取第一全局 ID信息或第二全局 ID信息;  An obtaining module, configured to acquire first global ID information or second global ID information;
发送模块, 用于当所述获取模块获取到第一全局 ID信息时, 发送所述第 一全局 ID信息到被叫终端所在的基站和服务网关, 以使所述被叫终端所在的 基站和服务网关在根据所述第一全局 ID信息判断出与主叫终端所在的基站和 服务网关之间的关系满足本地交换条件时,对所述主叫终端和所述被叫终端进 行本地交换;  a sending module, configured to: when the acquiring module acquires the first global ID information, 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 service where the called terminal is located The gateway performs local exchange between the calling terminal and the called terminal when determining, according to the first global ID information, that the relationship between the base station and the serving gateway where the calling terminal is located meets the local switching condition;
通知模块, 用于当所述获取模块获取到第二全局 ID信息时, 根据所述第 二全局 ID信息通知所述主叫终端或所述被叫终端所在的基站对所述主叫终端 和所述被叫终端进行本地交换。  a notification module, configured to: when the acquiring module acquires the second global ID information, notify the calling terminal or the base station where the called terminal is located according to the second global ID information to the calling terminal and the The called terminal performs local exchange.
在第一种可能的实现方式中, 所述获取模块包括:  In a first possible implementation manner, the acquiring module includes:
第一通知上报单元, 用于通知策略与计费规則功能单元(PCRF ) 实体上 报主叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端 所在基站和所在服务网关的全局 ID作为第一全局 ID信息; 第二通知上报单元,用于通知 PCRF实体上报主叫终端所在基站和所在服 务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID, 并将接 收到的所述主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在 基站和所在服务网关的全局 ID作为第二全局 ID信息。 a first notification reporting unit, configured to notify a policy and charging rule function unit (PCRF) entity to report a global ID of a base station where the calling terminal is located and a serving gateway, and receive the received base station and the serving gateway of the calling terminal Global ID as the first global ID information; a second notification reporting unit, configured to notify the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway, and the received calling terminal is located The global ID of the base station and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway are used as the second global ID information.
结合第三方面, 或第三方面的第一种可能的实现方式,在第二种可能的实 现方式中,  With reference to the third aspect, or the first possible implementation of the third aspect, in a second possible implementation manner,
所述本地交换条件为所述主叫终端所在的基站和服务网关均与所述被叫 终端所在的基站和服务网关相同; 或者,  The local exchange condition 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; or
所述本地交换条件为所述主叫终端所在的基站与所述被叫终端所在的基 站之间具有网络通信能力。  The local exchange condition is that the base station where the calling terminal is located has network communication capability with the base station where the called terminal is located.
结合第三方面, 或第三方面的第一种可能的实现方式, 或第三方面的第二 种可能的实现方式, 在第三种可能的实现方式中, 所述发送模块包括:  With 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:
创建添加单元, 用于创建本地交换请求, 并将所述第一全局 ID信息添加 至所述本地交换请求;  Creating an adding unit, configured to create a local exchange request, and adding the first global ID information to the local exchange request;
请求发送单元,用于发送所述本地交换请求到所述被叫终端所在的基站和 服务网关。  And a request sending unit, configured to send the local exchange request to a base station and a serving gateway where the called terminal is located.
结合第三方面, 或第三方面的第一种可能的实现方式, 或第三方面的第二 种可能的实现方式, 或第三方面的第三种可能的实现方式,在第四种可能的实 现方式中, 所述通知模块包括:  With reference to the third aspect, or the first possible implementation of the third aspect, or the second possible implementation of the third aspect, or the third possible implementation of the third aspect, in the fourth possible In an implementation manner, the notification module includes:
第一判断单元, 用于根据所述第二全局 ID信息判断所述主叫终端所在的 基站和服务网关是否均与所述被叫终端所在的基站和服务网关相同;  a first determining unit, 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;
通知交换单元, 用于若所述第一判断单元判断为相同, 则通知所述主叫终 端和所述被叫终端所在的相同的基站对所述主叫终端和所述被叫终端进行本 地交换;  a notification exchange unit, configured to notify the calling terminal and the same base station where the called terminal is located to perform local exchange between the calling terminal and the called terminal, if the first determining unit determines that the same is the same ;
第二判断单元, 用于若所述第一判断单元判断为不同, 则进一步判断所述 主叫终端所在的基站与所述被叫终端所在的基站之间是否具有网络通信能力; 通知建立单元, 用于若所述第二判断单元判断为具有网络通信能力, 则通 知所述主叫终端或所述被叫终端所在的基站与对端基站建立本地交换通道,以 使所述主叫终端或所述被叫终端所在的基站通过所述本地交换通道对所述主 叫终端和所述被叫终端进行本地交换。 a second determining unit, configured to determine, if the first determining unit is different, whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability; And if the second determining unit determines that the network communication capability is Knowing that the calling terminal or the base station where the called terminal is located establishes a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located passes the local switching channel to the main The calling terminal and the called terminal perform local exchange.
结合第三方面, 或第三方面的第一种可能的实现方式, 或第三方面的第二 种可能的实现方式, 或第三方面的第三种可能的实现方式, 或第三方面的第四 种可能的实现方式, 在第五种可能的实现方式中, 还包括:  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 third aspect The four possible implementations, in the fifth possible implementation, also include:
转换关系发送模块,用于发送所述主叫终端或所述被叫终端在网络地址转 换( NAT )网关上的地址转换关系到所述主叫终端或所述被叫终端所在的基站, 以便于对所述主叫终端和所述被叫终端进行本地交换。  a conversion relationship sending module, configured to send, by the calling terminal or the called terminal, an address translation relationship on a network address translation (NAT) gateway to a base station where the calling terminal or the called terminal is located, so as to facilitate Local exchange is performed 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 third aspect The four possible implementation manners, or the fifth possible implementation manner of the third aspect, in the sixth possible implementation manner, the method further includes:
通知停止交换模块,用于当需要补充业务或合法监听时,通知所述主叫终 端或所述被叫终端所在的基站停止对所述主叫终端和所述被叫终端进行本地 交换。  The notification stopping the switching module is configured to notify the calling terminal or the base station where the called terminal is located to stop local exchange between the calling terminal and the called terminal when supplementary service or lawful interception is required.
本发明第四方面提供了一种基站, 包括:  A fourth aspect of the present invention provides a base station, including:
接收模块, 用于接收交换控制装置发送的第一全局 ID信息或交换判断结 果, 所述交换判断结果是由所述交换控制装置根据第二全局 ID信息所判断出 的;  a receiving module, configured to receive first global ID information sent by the switching control device, or exchange a determination result, where the exchange determination result is determined by the switching control device according to the second global ID information;
第一本地交换模块, 用于当接收到所述第一全局 ID信息时, 根据所述第 一全局 ID信息对所述主叫终端和所述被叫终端进行本地交换;  a first local switching module, configured to perform local exchange between the calling terminal and the called terminal according to the first global ID information when receiving the first global ID information;
第二本地交换模块,用于当接收到所述交换判断结果时,根据所述交换判 断结果对所述主叫终端和所述被叫终端进行本地交换。  And a second local switching module, configured to perform local exchange between the calling terminal and the called terminal according to the exchange judgment result when receiving the exchange judgment result.
在第一种可能的实现方式中,  In the first possible implementation,
所述第一全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID; 所述第二全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。 The first global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway; the second global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway, And the global ID of the base station where the called terminal is located and the serving gateway.
结合第四方面的第一种可能的实现方式,在第二种可能的实现方式中, 所 述第一本地交换模块包括:  In conjunction with the first possible implementation of the fourth aspect, in a second possible implementation, the first local switching module includes:
第一本地判断单元, 用于根据所述第一全局 ID信息判断所述主叫终端所 在的基站和服务网关是否均与本地基站和本地服务网关相同;  a first local determining unit, 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 the local base station and the local serving gateway;
第一交换单元, 用于若所述第一本地判断单元判断为相同, 则对所述主叫 终端和所述被叫终端进行本地交换;  a first switching unit, configured to perform local exchange between the calling terminal and the called terminal if the first local determining unit determines that the same is the same;
第二本地判断单元,用于若所述第一本地判断单元判断为不同, 则进一步 判断所述主叫终端所在的基站与所述本地基站之间是否具有网络通信能力; 第一建立单元, 用于若所述第二本地判断单元判断为具有网络通信能力, 则与所述主叫终端所在的基站建立本地交换通道,以通过所述本地交换通道对 所述主叫终端和所述被叫终端进行本地交换。  a second local determining unit, configured to determine, if the first local determining unit is different, whether the base station where the calling terminal is located and the local base station have network communication capability; If the second local determining unit determines that the network communication capability is available, establishing a local switching channel with the base station where the calling terminal is located, to access the calling terminal and the called terminal by using the local switching channel. Perform local exchange.
结合第四方面的第一种可能的实现方式,或第四方面的第二种可能的实现 方式, 在第三种可能的实现方式中, 所述第二本地交换模块包括:  With the first possible implementation of the fourth aspect, or the second possible implementation of the fourth aspect, in a third possible implementation, the second local switching module includes:
第二交换单元,用于当接收到的所述交换判断结果为所述主叫终端所在的 基站和服务网关均与所述被叫终端所在的基站和服务网关相同时,对所述主叫 终端和所述被叫终端进行本地交换;  a second switching unit, configured to: when the received handover judgment 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, to the calling terminal Local exchange with the called terminal;
第二建立单元,用于当接收到的所述交换判断结果为所述主叫终端所在的 基站与所述被叫终端所在的基站之间具有网络通信能力时,与所述主叫终端所 在的基站建立本地交换通道,以通过所述本地交换通道对所述主叫终端和所述 被叫终端进行本地交换。  a second establishing unit, configured to: when the received handover judgment result 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, where the calling terminal is located The base station establishes a local switching channel to locally exchange the calling terminal and the called terminal through the local switching channel.
结合第四方面, 或第四方面的第一种可能的实现方式,或第四方面的第二 种可能的实现方式, 或第四方面的第三种可能的实现方式,在第四种可能的实 现方式中, 还包括:  With reference to the fourth aspect, or the first possible implementation of the fourth aspect, or the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, in a fourth possible In the implementation, it also includes:
转换关系接收模块,用于接收所述交换控制装置发送的所述主叫终端或所 述被叫终端在网络地址转换( NAT )网关上的地址转换关系, 以便于对所述主 叫终端和所述被叫终端进行本地交换; 预设模块, 用于预设所述主叫终端或所述被叫终端在 NAT网关上的地址 转换关系, 以便于对所述主叫终端和所述被叫终端进行本地交换。 a conversion relationship receiving module, configured to receive an address translation relationship between the calling terminal or the called terminal on a network address translation (NAT) gateway sent by the switching control device, so as to facilitate the calling terminal and the Said called terminal for local exchange; And a preset module, configured to preset an address translation relationship between the calling terminal or the called terminal on a NAT gateway, so as to perform 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 the fifth possible implementation manner, Includes:
第一切换模块, 用于当所述主叫终端所在的基站切换至目标基站时,将所 述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站和所述 本地基站;  a first switching module, configured to switch, when the base station where the calling terminal is located, to a target base station, to switch the local exchange relationship between the calling terminal and the called terminal to the target base station and the local Base station
第二切换模块, 用于当所述被叫终端所在的基站切换至目标基站时,将所 述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站和所述 主叫终端所在的基站。  a second switching module, configured to switch a local switching relationship between the calling terminal and the called terminal to the target base station and the primary when the base station where the called terminal is located to switch to a target base station Call the base station where the terminal is located.
本发明第五方面提供了一种计算机存储介质,  A fifth aspect of the present invention provides a computer storage medium,
所述计算机存储介质可存储有程序,该程序执行时包括第一方面提供的一 种 IP语音交换的方法的部分或全部步骤。  The computer storage medium can store a program that, when executed, includes some or all of the steps of a method of IP voice exchange provided by the first aspect.
本发明第六方面提供了一种计算机存储介质,  A sixth aspect of the invention provides a computer storage medium,
所述计算机存储介质可存储有程序,该程序执行时包括第二方面提供的一 种 IP语音交换的方法的部分或全部步骤。  The computer storage medium can store a program that, when executed, includes some or all of the steps of a method of IP voice exchange provided by the second aspect.
本发明第七方面提供了一种交换控制装置, 包括: 处理器、 通信接口和存 储器, 其中,  A seventh aspect of the present invention provides an exchange control apparatus, including: a processor, a communication interface, and a memory, wherein
所述通信接口, 用于与基站和服务网关通信;  The communication interface is configured to communicate with a base station and a service gateway;
所述存储器用于存储程序;  The memory is used to store a program;
所述处理器用于执行所述程序, 以实现  The processor is configured to execute the program to implement
获取第一全局 ID信息或第二全局 ID信息;  Obtaining the first global ID information or the second global ID information;
当获取到第一全局 ID信息时,发送所述第一全局 ID信息到被叫终端所在 的基站和服务网关,以使所述被叫终端所在的基站和服务网关在根据所述第一 全局 ID信息判断出与主叫终端所在的基站和服务网关之间的关系满足本地交 换条件时, 对所述主叫终端和所述被叫终端进行本地交换;  When the first global ID information is obtained, the first global ID information is sent to the base station and the serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located are according to the first global ID. The information is determined to be locally exchanged between the calling terminal and the called terminal when the relationship between the base station and the serving gateway where the calling terminal is located satisfies the local switching condition;
当获取到第二全局 ID信息时,根据所述第二全局 ID信息通知所述主叫终 端或所述被叫终端所在的基站对所述主叫终端和所述被叫终端进行本地交换。 在第一种可能的实现方式中, 所述处理器具体用于: When the second global ID information is acquired, the calling terminal is notified according to the second global ID information. The base station or the base station where the called terminal is located performs local exchange between the calling terminal and the called terminal. In a first possible implementation manner, the processor is specifically configured to:
通知策略与计费规则功能单元(PCRF ) 实体上报主叫终端所在基站和所 在服务网关的全局 ID, 并将接收到的所述主叫终端所在基站和所在服务网关 的全局 ID作为第一全局 ID信息; 或者,  The notification policy and charging rule function unit (PCRF) entity reports the global ID of the base station where the calling terminal is located and the serving gateway, and receives the received global ID of the base station where the calling terminal is located and the serving gateway as the first global ID. Information; or,
通知 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID、 以及 被叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端所 在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的 全局 ID作为第二全局 ID信息。  Notifying the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway, and the received global ID of the base station where the calling terminal is located and the serving gateway And the global ID of the base station where the called terminal is located and the serving gateway is used as the second global ID information.
结合第七方面, 或第七方面的第一种可能的实现方式,在第二种可能的实 现方式中,  With reference to the seventh aspect, or the first possible implementation of the seventh aspect, in a second possible implementation manner,
所述本地交换条件为所述主叫终端所在的基站和服务网关均与所述被叫 终端所在的基站和服务网关相同; 或者,  The local exchange condition 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; or
所述本地交换条件为所述主叫终端所在的基站与所述被叫终端所在的基 站之间具有网络通信能力。  The local exchange condition is that the base station where the calling terminal is located has network communication capability with the base station 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, in a third possible implementation manner, the processor is specifically configured to:
创建本地交换请求,并将所述第一全局 ID信息添加至所述本地交换请求; 发送所述本地交换请求到所述被叫终端所在的基站和服务网关。  Creating a local exchange request, and adding the first global ID information to the local exchange request; sending the local exchange request to a base station and a serving gateway where the called terminal is located.
结合第七方面, 或第七方面的第一种可能的实现方式, 或第七方面的第二 种可能的实现方式, 或第七方面的第三种可能的实现方式,在第四种可能的实 现方式中, 所述处理器具体用于:  In conjunction with the seventh aspect, or the first possible implementation of the seventh aspect, or the second possible implementation of the seventh aspect, or the third possible implementation of the seventh aspect, in a fourth possible In an implementation manner, the processor is specifically configured to:
根据所述第二全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与所述被叫终端所在的基站和服务网关相同;  Determining, 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;
若判断为相同,则通知所述主叫终端和所述被叫终端所在的相同的基站对 所述主叫终端和所述被叫终端进行本地交换;  If it is determined to be the same, the calling terminal and the same base station where the called terminal is located are notified to perform local exchange between the calling terminal and the called terminal;
若判断为不同,则进一步判断所述主叫终端所在的基站与所述被叫终端所 在的基站之间是否具有网络通信能力; If it is determined to be different, further determining, by the base station where the calling terminal is located, and the called terminal Whether there is network communication capability between the base stations;
若判断为具有网络通信能力,则通知所述主叫终端或所述被叫终端所在的 基站与对端基站建立本地交换通道,以使所述主叫终端或所述被叫终端所在的 基站通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交换。  If it is determined that the network communication capability is determined, the base station where the calling terminal or the called terminal is located is notified to establish a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located passes The local switching channel performs local exchange between 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 seventh aspect In a fifth possible implementation manner, the processor is further configured to:
发送所述主叫终端或所述被叫终端在网络地址转换(NAT )网关上的地址 转换关系到所述主叫终端或所述被叫终端所在的基站,以便于对所述主叫终端 和所述被叫终端进行本地交换。  Transmitting, by the calling terminal or the called terminal, an address translation relationship on a network address translation (NAT) gateway to a base station where the calling terminal or the called terminal is located, so as to facilitate the calling terminal and The called terminal performs local exchange.
结合第七方面, 或第七方面的第一种可能的实现方式, 或第七方面的第二 种可能的实现方式, 或第七方面的第三种可能的实现方式, 或第七方面的第四 种可能的实现方式, 或第七方面的第五种可能的实现方式,在第六种可能的实 现方式中, 所述处理器还用于:  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 seventh aspect The fourth possible implementation manner, or the fifth possible implementation manner of the seventh aspect, in the sixth possible implementation manner, the processor is further configured to:
当需要补充业务或合法监听时,通知所述主叫终端或所述被叫终端所在的 基站停止对所述主叫终端和所述被叫终端进行本地交换。  When the supplementary service or the lawful interception is required, the calling terminal or the base station where the called terminal is located is notified 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 configured to communicate with an exchange control device;
所述存储器用于存储程序;  The memory is used to store a program;
所述处理器用于执行所述程序, 以实现  The processor is configured to execute the program to implement
接收交换控制装置发送的第一全局 ID信息或交换判断结果, 所述交换判 断结果是由所述交换控制装置根据第二全局 ID信息所判断出的;  Receiving, by the exchange control device, first global ID information or exchanging a determination result, where the exchange determination result is determined by the exchange control device according to the second global ID information;
当接收到所述第一全局 ID信息时,根据所述第一全局 ID信息对所述主叫 终端和所述被叫终端进行本地交换;  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;
当接收到所述交换判断结果时,根据所述交换判断结果对所述主叫终端和 所述被叫终端进行本地交换。  When receiving the exchange judgment result, the calling terminal and the called terminal perform local exchange according to the exchange judgment result.
在第一种可能的实现方式中, 所述第一全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID; 所述第二全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。 In the first possible implementation, The first global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway. The second global ID information includes the global ID of the base station where the calling terminal is located and the serving gateway, and the base station where the called terminal is located. The global ID of the service gateway.
结合第八方面的第一种可能的实现方式,在第二种可能的实现方式中, 所 述处理器具体用于:  In conjunction with the first possible implementation of the eighth aspect, in a second possible implementation, the processor is specifically configured to:
根据所述第一全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与本地基站和本地服务网关相同;  Determining, 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 the local base station and the local serving gateway;
若判断为相同, 则对所述主叫终端和所述被叫终端进行本地交换; 若判断为不同,则进一步判断所述主叫终端所在的基站与所述本地基站之 间是否具有网络通信能力;  If it is determined to be the same, the calling terminal and the called terminal are locally exchanged; if it is determined to be different, further determining whether the base station where the calling terminal is located and the local base station have network communication capability ;
若判断为具有网络通信能力,则与所述主叫终端所在的基站建立本地交换 通道, 以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交 换。  If it is determined that the network communication capability is available, a local switching channel is established with the base station where the calling terminal is located, to locally exchange the calling terminal and the called terminal through the local switching channel.
结合第八方面的第一种可能的实现方式,或第八方面的第二种可能的实现 方式, 在第三种可能的实现方式中, 所述处理器具体用于:  With reference to the first possible implementation of the eighth aspect, or the second possible implementation of the eighth aspect, in a third possible implementation, the processor is specifically configured to:
当接收到的所述交换判断结果为所述主叫终端所在的基站和服务网关均 与所述被叫终端所在的基站和服务网关相同时,对所述主叫终端和所述被叫终 端进行本地交换;  When the received handover judgment 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, performing the calling terminal and the called terminal. Local exchange
当接收到的所述交换判断结果为所述主叫终端所在的基站与所述被叫终 端所在的基站之间具有网络通信能力时,与所述主叫终端所在的基站建立本地 交换通道,以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地 交换。  When the exchange judgment result is that the base station where the calling terminal is located and the base station where the called terminal is located has a network communication capability, establish a local switching channel with the base station where the calling terminal is located, Locally exchanging 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 the fourth possible In an implementation manner, the processor is further configured to:
接收所述交换控制装置发送的所述主叫终端或所述被叫终端在网络地址 转换(NAT )网关上的地址转换关系, 以便于对所述主叫终端和所述被叫终端 进行本地交换; 或者, Receiving, by the switching control device, an address translation relationship between the calling terminal or the called terminal on a network address translation (NAT) gateway, so as to facilitate the calling terminal and the called terminal Perform local exchange; or,
预设所述主叫终端或所述被叫终端在 NAT网关上的地址转换关系, 以便 于对所述主叫终端和所述被叫终端进行本地交换。  Presetting the address translation relationship between 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.
结合第八方面的第二种可能的实现方式,或第八方面的第三种可能的实现 方式, 或第八方面的第四种可能的实现方式, 在第五种可能的实现方式中, 所 述处理器还用于:  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 the fifth possible implementation manner, The processor is also used to:
当所述主叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述本地基站;  When the base station where the calling terminal is located is handed over to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the local base station;
当所述被叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述主叫终端所在的基站。  When the base station where the called terminal is located switches to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the base station where the calling terminal is located.
由上可见, 本发明实施例通过将第一全局 ID信息发送给被叫终端所在的 基站和服务网关, 可以使被叫终端所在的基站和服务网关根据第一全局 ID信 息对主叫终端和被叫终端进行本地交换, 或者, 也可以根据第二全局 ID信息 通知主叫终端或被叫终端所在的基站对主叫终端和被叫终端进行本地交换,以 解决移动网络里 VOIP存在的路径冗余现象,从而减少了网络流量和网络投资。 附图说明  It can be seen that, by sending the first global ID information to the base station and the serving gateway where the called terminal is located, the base station and the serving gateway where the called terminal is located can make the calling terminal and the called terminal according to the first global ID information. The terminal is called to perform local exchange, or the base station where the called terminal or the called terminal is located may be locally exchanged between the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy of the VOIP in the mobile network. Phenomenon, which reduces network traffic and 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 to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图 1为本发明实施例提供的一种 IP语音交换的方法的流程示意图; 图 2为本发明实施例提供的其中一种本地交换的方法的流程示意图; 图 3为本发明实施例提供的另一种 IP语音交换的方法的流程示意图; 图 4为本发明实施例提供的其中另一种本地交换的方法的流程示意图; 图 5为本发明实施例提供的一种交换控制装置的结构示意图;  1 is a schematic flowchart of a method for IP voice exchange according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of a method for local switching according to an embodiment of the present invention; A schematic flowchart of a method for IP voice exchange; FIG. 4 is a schematic flowchart of another method for local switching according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a switching control device according to an embodiment of the present invention;
图 6为本发明实施例提供的一种获取模块的结构示意图; 图 7为本发明实施例提供的一种发送模块的结构示意图; FIG. 6 is a schematic structural diagram of an acquiring module according to an embodiment of the present disclosure; FIG. 7 is a schematic structural diagram of a sending module according to an embodiment of the present disclosure;
图 8为本发明实施例提供的一种通知模块的结构示意图;  FIG. 8 is a schematic structural diagram of a notification module according to an embodiment of the present disclosure;
图 9为本发明实施例提供的另一种交换控制装置的结构示意图;  FIG. 9 is a schematic structural diagram of another exchange control apparatus according to an embodiment of the present invention;
图 10为本发明实施例提供的一种基站的结构示意图;  FIG. 10 is a schematic structural diagram of a base station according to an embodiment of the present disclosure;
图 11为本发明实施例提供的一种第一本地交换模块的结构示意图; 图 12为本发明实施例提供的一种第二本地交换模块的结构示意图; 图 13为本发明实施例提供的另一种基站的结构示意图;  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; A schematic structural diagram of a base station;
图 14为本发明实施例提供的又一种交换控制装置的结构示意图; 图 15为本发明实施例提供的又一种基站的结构示意图。 具体实施方式  FIG. 14 is a schematic structural diagram of still 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
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
请参见图 1, 为本发明实施例提供的一种 IP语音交换的方法的流程示意 图, 所述方法包括:  FIG. 1 is a schematic flowchart diagram of a method for IP voice exchange according to an embodiment of the present invention, where the method includes:
S101 , 获取第一全局 ID信息或第二全局 ID信息;  S101. Acquire first global ID information or second global ID information.
具体的,交换控制装置可以获取第一全局 ID信息或第二全局 ID信息,所 述交换控制装置可以为 IMS ( IP Multimedia Subsystem , IP多媒体子系统 ) 网 络中的 CSCF ( CailSessionControlFimctio 呼叫控制实体) 实体。  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 (CailSessionControlFimctio Call Control Entity) entity in an IMS (IP Multimedia Subsystem) network.
当主叫终端在 IMS网络里发起 VOIP呼叫时,所述交换控制装置可以发起 获取第一全局 ID信息或第二全局 ID信息的获取请求到 PCRF ( Policy and Charging Rules Function,策略与计费规则功能单元)实体,其具体过程可以为: 通知 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID, 并将接收 到的所述主叫终端所在基站和所在服务网关的全局 ID作为第一全局 ID信息; 或者, 通知 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID、 以 及被叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端 所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关 的全局 ID作为第二全局 ID信息。 其中, 全局 ID可以唯一标识其所在的网元 和该网元中终端的上下文。 其中, 所述 PCRF实体上报主叫终端所在基站和所 在服务网关的全局 ID 的具体过程可以为: PCRF 实体发起对主叫终端的 IP -CAN ( IP-Connectivity Access Network, IP连接访问网絡)会话修改过程, 在 此过程里通知包交换网关上报主叫终端所在基站和服务网关的全局 ID, 包交 换网关通知服务网关, 服务网关通知 MME ( Mobility Management Entity, 移 动管理实体), MME通知基站, 此时, 基站上报主叫终端所在基站的全局 ID 到 MME, MME再转发给服务网关, 服务网关将主叫终端所在基站的全局 ID 以及主叫终端所在服务网关的全局 ID (即第一全局 ID信息)一并上报给包交 换网关, 包交换网关再将第一全局 ID信息上报给 PCRF实体, 最后 PCRF实 体将第一全局 ID信息上报给所述交换控制装置。 其中, 所述 PCRF实体上报 主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在 服务网关的全局 ID的具体过程与上述的所述 PCRF实体上报主叫终端所在基 站和所在服务网关的全局 ID的具体过程大致相同, 即所述 PCRF实体分别发 起对主叫终端的 IP-CAN会话修改过程以及对被叫终端的 IP -CAN会话修改过 程, 以分别获取主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端 所在基站和所在服务网关的全局 ID, 从而得到第二全局 ID信息。 When the calling terminal initiates a VOIP call in the IMS network, the switching control device may initiate an acquisition request to obtain the first global ID information or the second global ID information to the PCRF (Policy and Charging Rules Function). a unit, the specific process may be: informing the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway, and the received global ID of the base station where the calling terminal is located and the serving gateway as the first global ID information; or, the PCRF entity is notified to report the global ID of the base station where the calling terminal is located and the serving gateway, And the global ID of the base station where the called terminal is located and the serving gateway, and the received global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway are used as the second Global ID information. The global ID can uniquely identify the network element where the network element is located and the context of the terminal in the network element. The specific process of the PCRF entity reporting the global ID of the base station where the calling terminal is located and the serving gateway may be: The PCRF entity initiates an IP-CAN (IP-Connectivity Access Network) session modification of the calling terminal. In the process, the packet switching gateway is notified to report the global ID of the base station and the serving gateway where the calling terminal is located, the packet switching gateway notifies the serving gateway, the serving gateway notifies the MME (Mobility Management Entity), and the MME notifies the base station. 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 MME to the serving gateway. The serving gateway sets 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 (ie, the first global ID information). The packet is sent 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 switching control device. The PCRF entity reports the global ID of the base station where the calling terminal is located and the global ID of the serving gateway, and the specific process of the base station where the called terminal is located and the global ID of the serving gateway, and the PCRF entity reports the base station where the calling terminal is located and The specific process of the global ID of the serving gateway is substantially the same, that is, the PCRF entity separately initiates an IP-CAN session modification process for the calling terminal and an IP-CAN session modification process for the called terminal to obtain the calling terminal respectively. The global ID of the base station and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway, thereby obtaining the second global ID information.
S102, 当获取到第一全局 ID信息时, 发送所述第一全局 ID信息到被叫 终端所在的基站和服务网关;  S102, when acquiring the first global ID information, sending the first global ID information to the base station and the serving gateway where the called terminal is located;
具体的, 当所述交换控制装置获取到第一全局 ID信息时, 所述交换控制 装置可以发送所述第一全局 ID信息到被叫终端所在的基站和服务网关, 以使 所述被叫终端所在的基站和服务网关在根据所述第一全局 ID信息判断出与主 叫终端所在的基站和服务网关之间的关系满足本地交换条件时,对所述主叫终 端和所述被叫终端进行本地交换。其中, 所述本地交换条件为所述主叫终端所 在的基站和服务网关均与所述被叫终端所在的基站和服务网关相同; 或者, 所 述本地交换条件为所述主叫终端所在的基站与所述被叫终端所在的基站之间 具有网络通信能力。当满足的本地交换条件为所述主叫终端所在的基站和服务 网关均与所述被叫终端所在的基站和服务网关相同时,基站将直接对所述主叫 终端和所述被叫终端进行本地交换, 该本地交换的交换路径为: 主叫终端到基 站,再到被叫终端。 当满足的本地交换条件为所述主叫终端所在的基站与所述 被叫终端所在的基站之间具有网络通信能力时,被叫终端所在基站将与主叫终 端所在基站建立本地交换通道,以通过所述本地交换通道对所述主叫终端和所 述被叫终端进行本地交换, 该本地交换的交换路径为: 主叫终端到主叫终端所 在基站, 再通过所述本地交换通道到被叫终端所在基站, 最后到被叫终端。 Specifically, when the switching control device acquires the first global ID information, the switching control device may send the first global ID information to the base station and the serving gateway where the called terminal is located, so that the called terminal When the base station and the serving gateway determine that the relationship between the base station and the serving gateway where the calling terminal is located satisfies the local switching condition according to the first global ID information, perform the calling terminal and the called terminal. Local exchange. The local exchange condition 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; or The local exchange condition is that the base station where the calling terminal is located has network communication capability with the base station where the called terminal is located. When the local exchange condition is satisfied 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 base station directly performs the calling terminal and the called terminal. Local exchange, the exchange path of the local exchange is: the calling terminal to the base station, and then to the called terminal. When the local exchange condition is satisfied that 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 will establish a local switching channel with the base station where the calling terminal is located, Performing local exchange between the calling terminal and the called terminal by using the local switching channel, where the switching path of the local switching is: the calling terminal to the base station where the calling terminal is located, and then through the local switching channel to the called party The base station where the terminal is located, and finally the called terminal.
其中, 所述发送所述第一全局 ID信息到被叫终端所在的基站和服务网关 的过程具体可以为: 创建本地交换请求, 并将所述第一全局 ID信息添加至所 述本地交换请求;发送所述本地交换请求到所述被叫终端所在的基站和服务网 关。其中, 所述发送所述本地交换请求到所述被叫终端所在的基站和服务网关 的具体过程可以为: 所述交换控制装置通知 PCRF 实体发起对被叫终端的 IP-CAN会话修改过程, 并在该过程中将本地交换请求发送到被叫终端所在的 包交换网关, 该包交换网关转发到被叫终端所在的服务网关, 该服务网关转发 至 MME, MME再转发至被叫终端所在基站, 此时, 被叫终端所在的基站和 服务网关将分别获得所述本地交换请求。所述被叫终端所在的基站和服务网关 将从所述本地交换请求中获得所述第一全局 ID信息, 并在根据所述第一全局 ID信息判断出与主叫终端所在的基站和服务网关之间的关系满足本地交换条 件时, 对所述主叫终端和所述被叫终端进行本地交换。  The process of sending the first global ID information to the base station and the serving gateway where the called terminal is located may be: creating a local exchange request, and adding the first global ID information to the local exchange request; Sending the local exchange request to the base station and the 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 switching control apparatus notifying the PCRF entity to initiate an IP-CAN session modification process on the called terminal, and In the process, the local exchange request is sent to the packet switching gateway where the called terminal is located, and the packet switching gateway forwards to the serving gateway where the called terminal is located, and the serving gateway forwards to the MME, and the MME forwards the packet to the base station where the called terminal is located. At this time, the base station and the serving gateway where the called terminal is located will respectively obtain the local exchange request. The base station and the serving gateway where the called terminal is located will obtain the first global ID information from the local exchange request, and determine, according to the first global ID information, a base station and a serving gateway where the calling terminal is located. When the relationship between the two meets the local exchange condition, the calling terminal and the called terminal are locally exchanged.
S103, 当获取到第二全局 ID信息时, 根据所述第二全局 ID信息通知所 述主叫终端或所述被叫终端所在的基站对所述主叫终端和所述被叫终端进行 本地交换;  S103. When the second global ID information is obtained, notify the calling terminal or the base station where the called terminal is located to locally exchange the calling terminal and the called terminal according to the second global ID information. ;
具体的, 当获取到第二全局 ID信息时, 所述交换控制装置可以根据所述 第二全局 ID信息通知所述主叫终端或所述被叫终端所在的基站对所述主叫终 端和所述被叫终端进行本地交换。 所述交换控制装置在根据所述第二全局 ID 信息判断出主叫终端所在的基站和服务网关均与被叫终端所在的基站和服务 网关相同时,通知所述主叫终端和所述被叫终端所在的同一基站对所述主叫终 端和所述被叫终端进行本地交换。或者, 所述交换控制装置在根据所述第二全 局 ID信息判断出所述主叫终端所在的基站与所述被叫终端所在的基站之间具 有网络通信能力时,通知所述主叫终端或所述被叫终端所在的基站对所述主叫 终端和所述被叫终端进行本地交换。 Specifically, when the second global ID information is obtained, the switching control device may notify, according to the second global ID information, the calling terminal or the base station where the called terminal is located, to the calling terminal and the The called terminal performs local exchange. The switching control device is in accordance with the second global ID The information 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, and notify the calling terminal and the same base station where the called terminal is located to the calling terminal and the The called terminal performs local exchange. Alternatively, the switching control device notifies the calling terminal or the network communication capability when the base station where the calling terminal is located and the base station where the called terminal is located according to the second global ID information The base station where the called terminal is located performs local exchange between the calling terminal and the called terminal.
本发明实施例所提供的交换控制装置还可以发送所述主叫终端或所述被 叫终端在 NAT网关上的地址转换关系到所述主叫终端或所述被叫终端所在的 基站, 以便于对所述主叫终端和所述被叫终端进行本地交换;  The switching control apparatus provided by the embodiment of the present invention may further send an address translation relationship between 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 facilitate Performing local exchange between the calling terminal and the called terminal;
具体的, 在 PCRF实体和 IMS之间的接口上有 NAT ( Network Address Specifically, there is a NAT on the interface between the PCRF entity and the IMS (Network Address
Translation, 网络地址转换) 网关, 所述 NAT网关负责将终端的私网 IP地址 和端口转换成公网 ip地址和端口。 所述交换控制装置可以通知 NAT 网关在 PCRF实体上报第一全局 ID信息或第二全局 ID信息到 IMS时插入主叫终端的 IP/PORT转换关系, 并通知 NAT网关在 IMS向被叫终端发送本地交换请求时 插入被叫终端的 IP/PORT转换关系, 从而所述交换控制装置可以将获得的主 叫终端和被叫终端的 IP/PORT转换关系发送到所述主叫终端或所述被叫终端 所在的基站, 以便于对所述主叫终端和所述被叫终端进行本地交换。 由于在本 地交换后, IP流不再经过 NAT网关, 所以基站通过接收到的主叫终端和被叫 终端的 IP/PORT转换关系可以对终端的 IP地址和端口进行转换, 以顺利完成 对所述主叫终端和所述被叫终端的本地交换。 Translation, network address translation) Gateway, which is responsible for converting the private IP address and port of the terminal into a public network ip address and port. The switching control device may notify the NAT gateway to insert the IP/PORT conversion 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 send the locality to the called terminal at the IMS. Transmitting a request to insert an IP/PORT conversion relationship of the called terminal, so that the switching control device can transmit the obtained IP/PORT conversion relationship between the calling terminal and the called terminal to the calling terminal or the called terminal. The base station is located to facilitate local exchange between the calling terminal and the called terminal. After the local exchange, the IP flow no longer passes through the NAT gateway, so the base station can convert the IP address and port of the terminal through the received IP/PORT conversion relationship between the calling terminal and the called terminal, so as to successfully complete the Local exchange between the calling terminal and the called terminal.
本发明实施例所提供的交换控制装置还可以当需要补充业务或合法监听 时,通知所述主叫终端或所述被叫终端所在的基站停止对所述主叫终端和所述 被叫终端进行本地交换;  The switching control apparatus provided by the embodiment of the present invention may further notify the calling terminal or the base station where the called terminal is located to stop performing on the calling terminal and the called terminal when a supplementary service or lawful interception is required. Local exchange
具体的, 当补充业务或者合法监听等发生时, 所述交换控制装置可以向 PCRF实体发送停止本地交换指令, 使得 PCRF实体通知主叫终端或被叫终端 所在的包交换网关转发所述停止本地交换指令到对应的服务网关,再由该服务 网关通知 MME, MME再通知对应基站, 从而所述主叫终端或所述被叫终端 所在的基站可以停止对所述主叫终端和所述被叫终端进行本地交换。 由上可见, 本发明实施例通过将第一全局 ID信息发送给被叫终端所在的 基站和服务网关, 可以使被叫终端所在的基站和服务网关根据第一全局 ID信 息对主叫终端和被叫终端进行本地交换, 或者, 也可以根据第二全局 ID信息 通知主叫终端或被叫终端所在的基站对主叫终端和被叫终端进行本地交换,以 解决移动网络里 VOIP存在的路径冗余现象,从而减少了网络流量和网络投资。 Specifically, when supplementary service or lawful interception occurs, the switching control apparatus may send a stop local exchange instruction to the PCRF entity, so that the PCRF entity notifies the calling terminal or the packet switching gateway where the called terminal is located to forward the stop local exchange. Directing to the corresponding service gateway, and then notifying the MME by the serving gateway, the MME notifying the corresponding base station, so that the calling terminal or the called terminal The base station where the base station is located may stop local exchange between the calling terminal and the called terminal. It can be seen that, by sending the first global ID information to the base station and the serving gateway where the called terminal is located, the base station and the serving gateway where the called terminal is located can make the calling terminal and the called terminal according to the first global ID information. The terminal is called to perform local exchange, or the base station where the called terminal or the called terminal is located may be locally exchanged between the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy of the VOIP in the mobile network. Phenomenon, which reduces network traffic and network investment.
进一步的, 再请参见图 2, 为本发明实施例提供的其中一种本地交换的方 法的流程示意图。本发明实施例的所述方法可对应于上述图 1对应实施例中的 S103。 本发明实施例的所述方法具体包括:  Further, referring to FIG. 2, FIG. 2 is a schematic flowchart of a local exchange 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 present invention specifically includes:
S201 , 根据所述第二全局 ID信息判断所述主叫终端所在的基站和服务网 关是否均与所述被叫终端所在的基站和服务网关相同;  S201, determining, according to the second global ID information, whether the base station and the service gateway where the calling terminal is located are the same as the base station and the serving gateway where the called terminal is located;
具体的, 由于所述第二全局 ID信息包含主叫终端所在基站和所在服务网 关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID, 所以通过判 断主叫终端所在基站和所在服务网关的全局 ID是否均与被叫终端所在基站和 所在服务网关的全局 ID相同, 即可判断出所述主叫终端所在的基站和服务网 关是否均与所述被叫终端所在的基站和服务网关相同。当判断出主叫终端所在 基站和所在服务网关的全局 ID均与被叫终端所在基站和所在服务网关的全局 ID相同时, 即说明所述主叫终端所在的基站和服务网关均与所述被叫终端所 在的基站和服务网关相同。  Specifically, the second global ID information includes the global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway, so the base station and the service where the calling terminal is located are determined. Whether the global ID of the gateway is the same as the global ID of the base station where the called terminal is located and the serving gateway, and the base station and the serving gateway where the calling terminal is located are both the base station and the serving gateway where the called terminal is located. the same. When it is determined that the global IDs of the base station where the calling terminal is located and the serving gateway are the same as the global ID of the base station where the called terminal is located and the serving gateway, the base station and the serving gateway where the calling terminal is located are both The base station where the terminal is called is the same as the serving gateway.
S202,通知所述主叫终端和所述被叫终端所在的相同的基站对所述主叫终 端和所述被叫终端进行本地交换;  S202, notifying that the calling terminal and the same base station where the called terminal is located perform local exchange between the calling terminal and the called terminal;
具体的, 在 S201判断所述主叫终端所在的基站和服务网关均与所述被叫 终端所在的基站和服务网关相同时,所述交换控制装置可以通知所述主叫终端 和所述被叫终端所在的相同的基站对所述主叫终端和所述被叫终端进行本地 交换, 该本地交换的交换路径为: 主叫终端到基站, 再到被叫终端。  Specifically, when it is determined in S201 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 apparatus may notify the calling terminal and the called party The same base station where the terminal is located performs local exchange between the calling terminal and the called terminal, and the switching path of the local exchange is: the calling terminal to the base station, and then to the called terminal.
S203,判断所述主叫终端所在的基站与所述被叫终端所在的基站之间是否 具有网络通信能力; 具体的, 在 S201判断所述主叫终端所在的基站和服务网关不是均与所述 被叫终端所在的基站和服务网关相同时,所述交换控制装置可以进一步判断所 述主叫终端所在的基站与所述被叫终端所在的基站之间是否具有网络通信能 力, 即判断两个基站之间是否可以 IP互通。 S203. 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. Specifically, when it is determined in S201 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 apparatus may further determine the base station where the calling terminal is located. Whether there is network communication capability between the base station where the called terminal is located, that is, whether IP interworking between the two base stations is possible.
S204,通知所述主叫终端或所述被叫终端所在的基站与对端基站建立本地 交换通道;  S204, notifying the calling terminal or the base station where the called terminal is located to establish a local switching channel with the opposite base station;
具体的, 在 S203判断所述主叫终端所在的基站与所述被叫终端所在的基 站之间具有网络通信能力时,所述交换控制装置可以通知所述主叫终端或所述 被叫终端所在的基站与对端基站建立本地交换通道,以使所述主叫终端或所述 被叫终端所在的基站通过所述本地交换通道对所述主叫终端和所述被叫终端 进行本地交换, 该本地交换的交换路径为: 主叫终端到主叫终端所在基站, 再 通过所述本地交换通道到被叫终端所在基站, 最后到被叫终端。  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 apparatus may notify the calling terminal or the called terminal The base station establishes a local switching channel with the peer base station, so that the calling terminal or the base station where the called terminal is located performs local exchange between the calling terminal and the called terminal through the local switching channel. The switching path of the local exchange is: the calling terminal to the base station where the calling terminal is located, and then the local switching channel to the base station where the called terminal is located, and finally to the called terminal.
本发明实施例通过在 IMS侧判断出主叫终端和被叫终端之间是否可以进 行本地交换,并在判断出可以进行本地交换时通知基站对主叫终端和被叫终端 进行本地交换, 以解决移动网络里 VOIP存在的路径冗余现象, 从而减少了网 络流量和网络投资。  The embodiment of the present invention determines whether the local exchange can be performed between the calling terminal and the called terminal on the IMS side, and notifies the base station to locally exchange the calling terminal and the called terminal when it is determined that the local exchange can be performed. Path redundancy exists in VOIP in mobile networks, thereby reducing network traffic and network investment.
请参见图 3, 为本发明实施例提供的另一种 IP语音交换的方法的流程示 意图, 所述方法包括:  Referring to FIG. 3, it is a schematic flowchart of another method for IP voice exchange according to an embodiment of the present invention, where the method includes:
S301 , 接收交换控制装置发送的第一全局 ID信息或交换判断结果; 具体的, 基站可以接收交换控制装置发送的第一全局 ID信息或交换判断 结果, 此处的基站特指被叫终端所在的基站。 其中, 所述交换判断结果是由所 述交换控制装置根据第二全局 ID信息所判断出的。 其中, 所述第一全局 ID 信息包括主叫终端所在基站和所在服务网关的全局 ID; 所述第二全局 ID信息 包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和 所在服务网关的全局 ID。  S301. Receive the first global ID information sent by the switching control device or exchange the determination result. Specifically, the base station may receive the first global ID information sent by the switching control device or exchange the determination result, where the base station specifically refers to the location of the called terminal. Base station. The exchange judgment result is determined by the exchange control device according to the second global ID information. The first global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway. The second global ID information includes the global ID of the base station where the calling terminal is located and the serving gateway, and the base station where the called terminal is located. And the global ID of the service gateway.
被叫终端所在的基站在接收交换控制装置发送的第一全局 ID信息或交换 判断结果之前,所述交换控制装置需要先获取第一全局 ID信息或第二全局 ID 信息,所述交换控制装置获取第一全局 ID信息或第二全局 ID信息的具体过程 可以参见上述图 1对应实施例中的 S101, 这里不再进行赞述。 Before the base station where the called terminal is located receives the first global ID information sent by the switching control device or exchanges the determination result, the switching control device needs to acquire the first global ID information or the second global ID first. For the specific process of the first global ID information or the second global ID information, the switch control device may refer to S101 in the corresponding embodiment of FIG. 1 , and no further description is provided herein.
5302, 当接收到所述第一全局 ID信息时, 根据所述第一全局 ID信息对 所述主叫终端和所述被叫终端进行本地交换;  5302. 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.
具体的, 当被叫终端所在的基站接收到所述第一全局 ID信息时, 所述被 叫终端所在的基站可以根据所述第一全局 ID信息对所述主叫终端和所述被叫 终端进行本地交换。 当根据所述第一全局 ID信息判断出主叫终端和被叫终端 处于相同的基站和相同的服务网关,基站将直接对所述主叫终端和所述被叫终 端进行本地交换; 当根据所述第一全局 ID信息判断出所述主叫终端所在的基 站与所述本地基站之间具有网络通信能力时,所述本地基站也可以通过所述主 叫终端所在的基站对所述主叫终端和所述被叫终端进行本地交换。  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 refer to the calling terminal and the called terminal according to the first global ID information. Perform local exchange. When it is determined that the calling terminal and the called terminal are in the same base station and the same serving gateway according to the first global ID information, the base station directly performs local exchange between the calling terminal and the called terminal; When the first global ID information determines that the base station where the calling terminal is located has network communication capability with the local base station, the local base station may also use the base station where the calling terminal is located to the calling terminal. Local exchange with the called terminal.
5303, 当接收到所述交换判断结果时,根据所述交换判断结果对所述主叫 终端和所述被叫终端进行本地交换;  S303, when receiving the exchange judgment result, performing local exchange on the calling terminal and the called terminal according to the exchange judgment result;
具体的, 当接收到所述交换判断结果时, 所述被叫终端所在的基站可以根 据所述交换判断结果对所述主叫终端和所述被叫终端进行本地交换。其中, 当 接收到的所述交换判断结果为所述主叫终端所在的基站和服务网关均与所述 被叫终端所在的基站和服务网关相同时,对所述主叫终端和所述被叫终端进行 本地交换, 此处的本地交换的路径为: 主叫终端到基站, 再到被叫终端。 当接 收到的所述交换判断结果为所述主叫终端所在的基站与所述被叫终端所在的 基站之间具有网络通信能力时, 与所述主叫终端所在的基站建立本地交换通 道, 以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交换, 此处的本地交换的路径为: 主叫终端到主叫终端所在基站,再通过所述本地交 换通道到被叫终端所在基站, 最后到被叫终端。  Specifically, when receiving the exchange judgment result, the base station where the called terminal is located may locally exchange the calling terminal and the called terminal according to the exchange judgment result. When the received handover judgment 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, the calling terminal and the called party are The terminal performs local exchange, where the local exchange path is: the calling terminal to the base station, and then to the called terminal. When the received exchange judgment result is that the base station where the calling terminal is located and the base station where the called terminal is located has a network communication capability, establish a local switching channel with the base station where the calling terminal is located, to Locally switching between the calling terminal and the called terminal by using the local switching channel, where the local switching path is: the calling terminal to the base station where the calling terminal is located, and then through the local switching channel to the Call the base station where the terminal is located, and finally the called terminal.
另外,所述交换控制装置也可以将所述交换判断结果发送给主叫终端所在 的基站,使得所述主叫终端所在的基站也可以根据所述交换判断结果对所述主 叫终端和所述被叫终端进行本地交换。  In addition, the switching control device may also send the exchange judgment result to the base station where the calling terminal is located, so that the base station where the calling terminal is located may also refer to the calling terminal and the The called terminal performs local exchange.
本发明实施例所提供的基站还可以接收所述交换控制装置发送的所述主 叫终端或所述被叫终端在 NAT网关上的地址转换关系, 以便于对所述主叫终 端和所述被叫终端进行本地交换; 或者,预设所述主叫终端或所述被叫终端在 NAT 网关上的地址转换关系, 以便于对所述主叫终端和所述被叫终端进行本 地交换; The base station provided by the embodiment of the present invention may further receive the primary sent by the switching control apparatus. Calling the terminal or the address translation relationship of the called terminal on the NAT gateway, so as to facilitate local exchange between the calling terminal and the called terminal; or preset the calling terminal or the called terminal An address translation relationship on the NAT gateway to facilitate local exchange between the calling terminal and the called terminal;
具体的,在 PCRF实体和 IMS之间的接口上有 NAT网关,所述 NAT网关 负责将终端的私网 IP地址和端口转换成公网 IP地址和端口。 所述交换控制装 置可以通知 NAT网关在 PCRF实体上报第一全局 ID信息或第二全局 ID信息 到 IMS时插入主叫终端的 IP/PORT转换关系, 并通知 NAT网关在 IMS向被 叫终端发送本地交换请求时插入被叫终端的 IP/PORT转换关系, 以得到所述 主叫终端或所述被叫终端在 NAT网关上的地址转换关系, 此时, 基站可以接 收所述交换控制装置发送的所述主叫终端或所述被叫终端在 NAT网关上的地 址转换关系, 以对终端的 IP地址和端口进行转换, 从而可以顺利完成对所述 主叫终端和所述被叫终端的本地交换。  Specifically, there is a NAT gateway on the interface between the PCRF entity and the IMS, and the NAT gateway is responsible for converting the private IP address and port of the terminal into a public network IP address and port. The switching control device may notify the NAT gateway to insert the IP/PORT conversion relationship of the calling terminal when the first global ID information or the second global ID information is reported to the IMS by the PCRF entity, and notify the NAT gateway to send the locality to the called terminal at the IMS. Inserting an IP/PORT conversion relationship of the called terminal when the request is exchanged, to obtain an address translation relationship between the calling terminal or the called terminal on the NAT gateway, and at this time, the base station may receive the information sent by the switching control device. The address translation relationship between the calling terminal or the called terminal on the NAT gateway is used to convert the IP address and port of the terminal, so that the local exchange between the calling terminal and the called terminal can be successfully completed.
当然, 基站也可以预设所述主叫终端或所述被叫终端在 NAT网关上的地 址转换关系, 以便于对所述主叫终端和所述被叫终端进行本地交换。 以主叫终 端和被叫终端同处于一个基站中为例, 若主叫终端发送的数据包的源 IP/源端 口(假设是 IP1/PORT1 )就对应被叫终端发送的数据包的目的 IP/目的端口(假 设是 IP2/PORT2 ), 且主叫终端发送的数据包的目的 IP/目的端口 (假设是 IP3/PORT3 ) 就对应被叫终端发送的数据包的目的 IP/目的端口 (假设是 IP4/PORT4 ) , 则基站与服务网关在收到主叫终端发送的数据包时, 将 IP1/PORT1转换为 IP2/PORT2, 将 IP3/PORT3转换为 IP4/PORT4, 然后发送给 被叫终端; 或者, 基站与服务网关在收到被叫终端发送的数据包时, 将 IP2/PORT2转换为 IP1/PORT1 , 将 IP4/PORT4转换为 IP3/PORT3, 然后发送给 主叫终端。  Certainly, the base station may also preset an address translation relationship between 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. For example, if the calling terminal and the called terminal are in the same base station, if the source IP/source port of the data packet sent by the calling terminal (assumed to be IP1/PORT1) corresponds to the destination IP address of the data packet sent by the called terminal. Destination port (assumed to be IP2/PORT2), and the destination IP/destination port of the packet sent by the calling terminal (assumed to be IP3/PORT3) corresponds to the destination IP/destination port of the packet sent by the called terminal (assuming IP4) /PORT4), when the base station and the serving gateway receive the data packet sent by the calling terminal, convert IP1/PORT1 to IP2/PORT2, convert IP3/PORT3 to IP4/PORT4, and then send it to the called terminal; or When receiving the data packet sent by the called terminal, the base station and the serving gateway convert IP2/PORT2 to IP1/PORT1, convert IP4/PORT4 to IP3/PORT3, and then send it to the calling terminal.
本发明实施例所提供的基站还可以当所述主叫终端所在的基站切换至目 标基站时,将所述主叫终端和所述被叫终端之间的本地交换关系切换至所述目 标基站和所述本地基站; 当所述被叫终端所在的基站切换至目标基站时,将所 述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站和所述 主叫终端所在的基站; The base station provided by the embodiment of the present invention may further switch the local switching relationship between the calling terminal and the called terminal to the target base station when the base station where the calling terminal is located is handed over to the target base station. The local base station; when the base station where the called terminal is located switches to the target base station, The local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the base station where the calling terminal is located;
具体的,在主叫终端所在的基站与被叫终端所在的基站对主叫终端和被叫 终端进行本地交换的情况下, 当所述主叫终端所在的基站切换至目标基站时, 被叫终端所在的基站可以将所述主叫终端和所述被叫终端之间的本地交换关 系切换至所述目标基站和所述本地基站,即主叫终端所在的基站在切换至目标 基站时, 将被叫终端所在的基站和服务网关的全局 ID发送到目标基站, 使目 标基站根据被叫终端所在的基站和服务网关的全局 ID判断目标基站与被叫终 端所在基站是否具有网络通信能力,若具有网络通信能力, 则目标基站与被叫 终端所在基站建立本地交换通道, 以对主叫终端和被叫终端进行本地交换。  Specifically, in a case where the base station where the calling terminal is located and the base station where the called terminal is located perform local exchange between the calling terminal and the called terminal, when the base station where the calling terminal is located switches to the target base station, the called terminal The base station in which the base station is located 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, the base station where the calling terminal is located when switching to the target base station, The global ID of the base station and the serving gateway where the terminal is located is sent to the target base station, so that the target base station determines whether the target base station and the base station where the called terminal has the network communication capability according to the global ID of the base station and the serving gateway where the called terminal is located, if the network has the network For communication capability, the target base station establishes a local switching channel with the base station where the called terminal is located to perform local exchange between the calling terminal and the called terminal.
当所述被叫终端所在的基站切换至目标基站时,被叫终端所在基站还可以 将所述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站和 所述主叫终端所在的基站, 即被叫终端所在的基站在切换至目标基站时,将主 叫终端所在的基站和服务网关的全局 ID发送到目标基站, 使目标基站根据主 叫终端所在的基站和服务网关的全局 ID判断目标基站与主叫终端所在基站是 否具有网络通信能力, 若具有网络通信能力, 则目标基站与主叫终端所在基站 建立本地交换通道, 以对主叫终端和被叫终端进行本地交换。  The base station where the called terminal is located may also switch the local exchange relationship between the calling terminal and the called terminal to the target base station and the primary The base station where the terminal is located, that is, the base station where the called terminal is located, when switching to the target base station, transmits the global ID of the base station and the serving gateway where the calling terminal is located to the target base station, so that the target base station is based on the base station and service where the calling terminal is located. The global ID of the gateway determines whether the base station and the base station where the calling terminal is located have network communication capability. If the network communication capability is available, the target base station establishes a local switching channel with the base station where the calling terminal is located, to locally locate the calling terminal and the called terminal. exchange.
本发明实施例所提供的基站通过接收交换控制装置发送的第一全局 ID信 息或交换判断结果, 可以使基站根据第一全局 ID信息或交换判断结果对所述 主叫终端和所述被叫终端进行本地交换, 以解决移动网络里 VOIP存在的路径 冗余现象, 从而减少了网络流量和网络投资。  The base station provided by the embodiment of the present invention, by receiving the first global ID information or the exchange judgment result sent by the exchange control device, may enable the base station to refer to the calling terminal and the called terminal according to the first global ID information or the exchange judgment result. Local exchange is performed to solve the path redundancy phenomenon of VOIP in the mobile network, thereby reducing network traffic and network investment.
进一步的, 再请参见图 4, 为本发明实施例提供的其中另一种本地交换的 方法的流程示意图。本发明实施例的所述方法可对应于上述图 3对应实施例中 的 S302。 本发明实施例的所述方法具体包括:  Further, please refer to FIG. 4, which is a schematic flowchart diagram of another method for local switching 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 present invention specifically includes:
S401 , 根据所述第一全局 ID信息判断所述主叫终端所在的基站和服务网 关是否均与本地基站和本地服务网关相同;  S401. Determine, according to the first global ID information, 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 serving gateway.
具体的, 当被叫终端所在的基站接收到所述第一全局 ID信息时, 所述被 叫终端所在的基站可以根据所述第一全局 ID信息判断所述主叫终端所在的基 站和服务网关是否均与本地基站和本地服务网关相同。 Specifically, when the base station where the called terminal is located receives the first global ID information, the The base station where the terminal is located 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 the local base station and the local serving gateway.
S402, 对所述主叫终端和所述被叫终端进行本地交换;  S402. Perform local exchange between the calling terminal and the called terminal.
具体的, 在 S401判断出所述主叫终端所在的基站和服务网关均与本地基 站和本地服务网关相同时,说明主叫终端和被叫终端同处于一个基站上,该基 站可以才艮据所述第一全局 ID信息确定主叫终端的上下文, 以对所述主叫终端 和所述被叫终端进行本地交换, 该本地交换的交换路径为: 主叫终端到基站, 再到被叫终端。  Specifically, when it is determined in S401 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, the calling terminal and the called terminal are both in the same base station, and the base station can be used in the base station. The first global ID information determines a context of the calling terminal to locally exchange the calling terminal and the called terminal, and the switching path of the local exchange is: the calling terminal to the base station, and then to the called terminal.
S403,判断所述主叫终端所在的基站与所述本地基站之间是否具有网络通 信能力;  S403. Determine whether the base station where the calling terminal is located and the local base station have network communication capability.
具体的, 在 S401判断出所述主叫终端所在的基站和服务网关不是均与本 地基站和本地月良务网关相同时,被叫终端所在的基站可以进一步的判断所述主 叫终端所在的基站与所述本地基站之间是否具有网络通信能力。其判断过程具 体可以为:被叫终端所在的基站发送建立本地交换通道请求到主叫终端所在的 基站, 并在所述建立本地交换通道请求中添加所述第一全局 ID信息, 使主叫 终端所在的基站可以根据所述第一全局 ID信息判断出是否要对主叫终端做本 地交换, 若判断要做本地交换, 则回应被叫终端所在的基站可以对主叫终端和 被叫终端进行本地交换,从而被叫终端所在的基站可以判断出所述主叫终端所 在的基站与所述被叫终端所在的基站之间具有网络通信能力; 否则,被叫终端 所在的基站可以判断出所述主叫终端所在的基站与所述被叫终端所在的基站 之间不具有网络通信能力。  Specifically, when it is determined in S401 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 monthly service gateway, the base station where the called terminal is located may further determine the base station where the calling terminal is located. Whether there is network communication capability with the local base station. The determining process may be: the base station where the called terminal is located sends a local exchange channel request to the base station where the calling terminal is located, and adds the first global ID information to the calling local terminal, so that the calling terminal The base station where the base station is located may determine whether to perform local exchange with the calling terminal according to the first global ID information. If it is determined that local exchange is to be performed, the base station that responds to the called terminal may perform local to the calling terminal and the called terminal. Exchanging, so that the base station where the called terminal is located can determine 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 base station where the called terminal is located can determine the primary There is no network communication capability between the base station where the terminal is located and the base station where the called terminal is located.
S404, 与所述主叫终端所在的基站建立本地交换通道, 以通过所述本地交 换通道对所述主叫终端和所述被叫终端进行本地交换;  S404. Establish a local switching channel with the base station where the calling terminal is located, to locally exchange the calling terminal and the called terminal by using the local switching channel.
具体的, 当 S403判断出所述主叫终端所在的基站与所述本地基站之间具 有网络通信能力时,说明主叫终端所在的基站回应被叫终端所在的基站可以对 主叫终端和被叫终端进行本地交换,此时,被叫终端所在的基站可以与所述主 叫终端所在的基站建立本地交换通道,以通过所述本地交换通道对所述主叫终 端和所述被叫终端进行本地交换, 该本地交换的交换路径为: 主叫终端到主叫 终端所在基站,再通过所述本地交换通道到被叫终端所在基站, 最后到被叫终 端。 当 S403判断出所述主叫终端所在的基站与所述本地基站之间不具有网络 通信能力时, 将无法进行本地交换。 Specifically, when it is determined by S403 that the base station where the calling terminal is located has network communication capability with the local base station, it indicates that the base station where the calling terminal is located responds to the base station where the called terminal is located, and can be called to the calling terminal and the called party. The terminal performs local switching. At this time, the base station where the called terminal is located may establish a local switching channel with the base station where the calling terminal is located, to end the calling terminal through the local switching channel. The local exchange is performed between the terminal and the called terminal. The switching path of the local exchange is: the calling terminal to the base station where the calling terminal is located, and then the local switching channel to the base station where the called terminal is located, and finally to the called terminal. When it is determined in S403 that the base station where the calling terminal is located does not have network communication capability with the local base station, local switching cannot be performed.
其中,在被叫终端所在的基站发送建立本地交换通道请求到主叫终端所在 的基站时,被叫终端所在的基站还可以将获得的主叫终端和被叫终端之间的地 址转换关系添加至所述本地交换通道请求中,使主叫终端所在的基站和被叫终 端所在的基站均可以根据所述地址转换关系顺利地完成对主叫终端和被叫终 端的本地交换。  The base station where the called terminal is located may also add the address translation relationship between the obtained calling terminal and the called terminal to the base station where the called terminal is located to send the local switching channel request to the base station where the calling terminal is located. In the local switching channel request, the base station where the calling terminal is located and the base station where the called terminal is located can smoothly complete the local exchange between the calling terminal and the called terminal according to the address translation relationship.
本发明实施例所提供的基站可以根据接收到的第一全局 ID信息对主叫终 端和被叫终端进行本地交换, 以解决移动网络里 VOIP存在的路径冗余现象, 从而减少了网络流量和网络投资。  The base station provided by the embodiment of the present invention can locally exchange the calling terminal and the called terminal according to the received first global ID information, so as to solve the path redundancy phenomenon of the VOIP in the mobile network, thereby reducing network traffic and the network. investment.
请参见图 5, 为本发明实施例提供的一种交换控制装置 1的结构示意图, 所述交换控制装置 1可以包括: 获取模块 11、 发送模块 12、 通知模块 13; 所述获取模块 11, 用于获取第一全局 ID信息或第二全局 ID信息; 具体的,所述获取模块 11可以获取第一全局 ID信息或第二全局 ID信息, 其中, 所述交换控制装置 1可以为 IMS网络中的 CSCF实体。 当主叫终端在 IMS网络里发起 VOIP呼叫时,所述获取模块 11可以发起获取第一全局 ID信 息或第二全局 ID信息的获取请求到 PCRF实体, 以使所述 PCRF实体从相关 基站和服务网关中获取第一全局 ID信息或第二全局 ID信息, 并将第一全局 ID信息或第二全局 ID信息发送到所述获取模块 11。  FIG. 5 is a schematic structural diagram of a switching control apparatus 1 according to an embodiment of the present invention. The switching control apparatus 1 may include: an obtaining module 11, a sending module 12, and a notification module 13; Obtaining the first global ID information or the second global ID information. Specifically, the obtaining module 11 may obtain the first global ID information or the second global ID information, where the switching control device 1 may be in the IMS network. CSCF entity. When the calling terminal initiates a VOIP call in the IMS network, the acquiring module 11 may initiate an acquisition request for acquiring the first global ID information or the second global ID information to the PCRF entity, so that the PCRF entity is from the relevant base station and the service. The first global ID information or the second global ID information is obtained in the gateway, and the first global ID information or the second global ID information is sent to the obtaining module 11.
所述发送模块 12, 用于当所述获取模块 11获取到第一全局 ID信息时, 发送所述第一全局 ID信息到被叫终端所在的基站和服务网关, 以使所述被叫 终端所在的基站和服务网关在根据所述第一全局 ID信息判断出与主叫终端所 在的基站和服务网关之间的关系满足本地交换条件时,对所述主叫终端和所述 被叫终端进行本地交换;  The sending module 12 is configured to: when the acquiring module 11 acquires the first global ID information, send the first global ID information to the base station and the serving gateway where the called terminal is located, so that the called terminal is located And determining, by the base station and the serving gateway, that the relationship between the base station and the serving gateway where the calling terminal is located meets the local switching condition according to the first global ID information, and locally performs the calling terminal and the called terminal. Exchange
具体的, 当所述获取模块 11获取到第一全局 ID信息时, 所述发送模块 12可以发送所述第一全局 ID信息到被叫终端所在的基站和服务网关, 以使所 述被叫终端所在的基站和服务网关在根据所述第一全局 ID信息判断出与主叫 终端所在的基站和服务网关之间的关系满足本地交换条件时,对所述主叫终端 和所述被叫终端进行本地交换。其中, 所述本地交换条件为所述主叫终端所在 的基站和服务网关均与所述被叫终端所在的基站和服务网关相同; 或者, 所述 本地交换条件为所述主叫终端所在的基站与所述被叫终端所在的基站之间具 有网络通信能力。当满足的本地交换条件为所述主叫终端所在的基站和服务网 关均与所述被叫终端所在的基站和服务网关相同时,基站将直接对所述主叫终 端和所述被叫终端进行本地交换,该本地交换的交换路径为:主叫终端到基站, 再到被叫终端。当满足的本地交换条件为所述主叫终端所在的基站与所述被叫 终端所在的基站之间具有网络通信能力时,被叫终端所在基站将与主叫终端所 在基站建立本地交换通道,以通过所述本地交换通道对所述主叫终端和所述被 叫终端进行本地交换, 该本地交换的交换路径为: 主叫终端到主叫终端所在基 站, 再通过所述本地交换通道到被叫终端所在基站, 最后到被叫终端。 Specifically, when the acquiring module 11 obtains the first global ID information, the sending module The first global ID information may be sent to the base station and the serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located are determined according to the first global ID information, and the calling terminal is located. When the relationship between the base station and the serving gateway satisfies the local switching condition, the calling terminal and the called terminal are locally exchanged. The local switching condition 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; or the local switching condition is the base station where the calling terminal is located. There is network communication capability between the base station where the called terminal is located. When the local exchange condition is satisfied 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 base station directly performs the calling terminal and the called terminal. Local exchange, the exchange path of the local exchange is: the calling terminal to the base station, and then to the called terminal. When the local exchange condition is satisfied that 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 will establish a local switching channel with the base station where the calling terminal is located, Performing local exchange between the calling terminal and the called terminal by using the local switching channel, where the switching path of the local switching is: the calling terminal to the base station where the calling terminal is located, and then through the local switching channel to the called party The base station where the terminal is located, and finally the called terminal.
所述通知模块 13, 用于当所述获取模块 11获取到第二全局 ID信息时, 根据所述第二全局 ID信息通知所述主叫终端或所述被叫终端所在的基站对所 述主叫终端和所述被叫终端进行本地交换;  The notification module 13 is configured to notify, when the acquiring module 11 acquires the second global ID information, the base station where the calling terminal or the called terminal is located according to the second global ID information, to the main Calling the terminal and the called terminal to perform local exchange;
具体的, 当所述获取模块 11获取到第二全局 ID信息时, 所述通知模块 13可以根据所述第二全局 ID信息通知所述主叫终端或所述被叫终端所在的基 站对所述主叫终端和所述被叫终端进行本地交换。 所述通知模块 13在根据所 述第二全局 ID信息判断出主叫终端所在的基站和服务网关均与被叫终端所在 的基站和服务网关相同时,通知所述主叫终端和所述被叫终端所在的同一基站 对所述主叫终端和所述被叫终端进行本地交换。 或者, 所述通知模块 13在根 据所述第二全局 ID信息判断出所述主叫终端所在的基站与所述被叫终端所在 的基站之间具有网络通信能力时,通知所述主叫终端或所述被叫终端所在的基 站对所述主叫终端和所述被叫终端进行本地交换。  Specifically, when the acquiring module 11 obtains the second global ID information, the notification module 13 may notify the calling terminal or the base station where the called terminal is located according to the second global ID information. The calling terminal and the called terminal perform local exchange. The notification module 13 notifies the calling terminal and the called party when determining 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. The same base station where the terminal is located performs local exchange between the calling terminal and the called terminal. Or, the notification module 13 notifies the calling terminal or the network terminal when the base station where the calling terminal is located and the base station where the called terminal is located according to the second global ID information The base station where the called terminal is located performs local exchange between the calling terminal and the called terminal.
进一步的, 再请参见图 6, 为上述图 5中的获取模块 11的结构示意图, 所述获取模块 11可以包括: 第一通知上报单元 111、 第二通知上报单元 112; 所述第一通知上报单元 111, 用于通知策略与计费规則功能单元 ( PCRF ) 实体上报主叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主 叫终端所在基站和所在服务网关的全局 ID作为第一全局 ID信息; Further, referring to FIG. 6, FIG. 6 is a schematic structural diagram of the acquiring 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 the policy and charging rule function unit (PCRF) entity to report the calling terminal. a global ID of the base station and the serving gateway, and the received global ID of the base station where the calling terminal is located and the serving gateway is used as the first global ID information;
具体的,所述第一通知上报单元 111可以通知 PCRF实体上报主叫终端所 在基站和所在服务网关的全局 ID。 其中, 全局 ID可以唯一标识其所在的网元 和该网元中终端的上下文。 其中, 所述 PCRF实体上报主叫终端所在基站和所 在服务网关的全局 ID 的具体过程可以为: PCRF 实体发起对主叫终端的 IP -CAN会话修改过程, 在此过程里通知包交换网关上报主叫终端所在基站和服 务网关的全局 ID, 包交换网关通知服务网关, 服务网关通知 MME, MME通 知基站, 此时, 基站上报主叫终端所在基站的全局 ID到 MME, MME再转发 给服务网关, 服务网关将主叫终端所在基站的全局 ID以及主叫终端所在服务 网关的全局 ID (即第一全局 ID信息)一并上报给包交换网关, 包交换网关再 将第一全局 ID信息上报给 PCRF实体,最后 PCRF实体将第一全局 ID信息上 报给所述第一通知上报单元 111。  Specifically, the first notification reporting unit 111 may notify the PCRF entity to report the global ID of the base station and the serving gateway where the calling terminal is located. The global ID can uniquely identify the network element in which it resides and the context of the terminal in the network element. The specific process of the PCRF entity reporting the global ID of the base station where the calling terminal is located and the serving gateway may be: The PCRF entity initiates an IP-CAN session modification process for the calling terminal, and in this process, notifies the packet switching gateway to report the main message. The global ID of the base station and the serving gateway where the terminal is located, the packet switching gateway notifies the serving gateway, and the serving gateway notifies the MME that 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 message to the serving gateway. 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 (that is, the first global ID information) to the packet switching gateway, and the packet switching gateway reports the first global ID information to the PCRF. The entity, the last PCRF entity reports the first global ID information to the first notification reporting unit 111.
所述第二通知上报单元 112, 用于通知 PCRF实体上报主叫终端所在基站 和所在服务网关的全局 ID、以及被叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终 端所在基站和所在服务网关的全局 ID作为第二全局 ID信息;  The second notification reporting unit 112 is configured to notify the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway, and receive the received primary The global ID of the base station where the terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway are used as the second global ID information;
具体的,所述第二通知上报单元 112可以通知 PCRF实体上报主叫终端所 在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的 全局 ID。 其中, 所述 PCRF实体上报主叫终端所在基站和所在服务网关的全 局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID的具体过程与上述的 所述 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID的具体过程 大致相同, 即所述 PCRF实体分别发起对主叫终端的 IP-CAN会话修改过程以 及对被叫终端的 IP -CAN会话修改过程, 以分别获取主叫终端所在基站和所 在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID, 从 而得到第二全局 ID信息。 Specifically, the second notification reporting unit 112 may notify the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway. The PCRF entity reports the global ID of the base station where the calling terminal is located and the global ID of the serving gateway, and the specific process of the base station where the called terminal is located and the global ID of the serving gateway, and the PCRF entity reports the base station where the calling terminal is located and The specific process of the global ID of the serving gateway is substantially the same, that is, the PCRF entity separately initiates an IP-CAN session modification process for the calling terminal and an IP-CAN session modification process for the called terminal to obtain the calling terminal respectively. The global ID of the base station and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway. And the second global ID information is obtained.
进一步的, 再请参见图 7, 为上述图 5中的发送模块 12的结构示意图, 所述发送模块 12可以包括: 创建添加单元 121、 请求发送单元 122;  Further, referring to FIG. 7, which is a schematic structural diagram of the sending module 12 in FIG. 5, the sending module 12 may include: a creating and adding unit 121, and a request sending unit 122;
所述创建添加单元 121, 用于创建本地交换请求, 并将所述第一全局 ID 信息添加至所述本地交换请求;  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.
所述请求发送单元 122, 用于发送所述本地交换请求到所述被叫终端所在 的基站和服务网关;  The request sending unit 122 is configured to send the local exchange request to a base station and a serving gateway where the called terminal is located;
具体的,在所述创建添加单元 121创建本地交换请求后, 所述请求发送单 元 122可以发送所述本地交换请求到所述被叫终端所在的基站和服务网关。其 中,所述发送所述本地交换请求到所述被叫终端所在的基站和服务网关的具体 过程可以为:所述请求发送单元 122通知 PCRF实体发起对被叫终端的 IP-CAN 会话修改过程,并在该过程中将本地交换请求发送到被叫终端所在的包交换网 关,该包交换网关转发到被叫终端所在的服务网关,该服务网关转发至 MME, MME再转发至被叫终端所在基站, 此时, 被叫终端所在的基站和服务网关将 分别获得所述本地交换请求。所述被叫终端所在的基站和服务网关将从所述本 地交换请求中获得所述第一全局 ID信息,并在根据所述第一全局 ID信息判断 出与主叫终端所在的基站和服务网关之间的关系满足本地交换条件时,对所述 主叫终端和所述被叫终端进行本地交换。  Specifically, after the creation adding unit 121 creates a local exchange request, the request sending unit 122 may send the local exchange request to the base station and the 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 on the called terminal. And in the process, the local exchange request is sent to the packet switching gateway where the called terminal is located, and the packet switching gateway forwards to the serving gateway where the called terminal is located, the serving gateway forwards to the MME, and the MME forwards the packet to the base station where the called terminal is located. At this time, the base station and the serving gateway where the called terminal is located will respectively obtain the local exchange request. The base station and the serving gateway where the called terminal is located will obtain the first global ID information from the local exchange request, and determine, according to the first global ID information, a base station and a serving gateway where the calling terminal is located. When the relationship between the two meets the local exchange condition, the calling terminal and the called terminal are locally exchanged.
进一步的, 再请参见图 8, 为上述图 5中的通知模块 13的结构示意图, 所述通知模块 13可以包括: 第一判断单元 131、 通知交换单元 132、 第二判断 单元 133、 通知建立单元 134;  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 determining unit 131, a notification switching unit 132, a second determining unit 133, and a notification establishing unit. 134;
所述第一判断单元 131, 用于根据所述第二全局 ID信息判断所述主叫终 端所在的基站和服务网关是否均与所述被叫终端所在的基站和服务网关相同; 具体的, 由于所述第二全局 ID信息包含主叫终端所在基站和所在服务网 关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID, 所以所述第 一判断单元 131通过判断主叫终端所在基站和所在服务网关的全局 ID是否均 与被叫终端所在基站和所在服务网关的全局 ID相同, 即可判断出所述主叫终 端所在的基站和服务网关是否均与所述被叫终端所在的基站和服务网关相同。 当所述第一判断单元 131判断出主叫终端所在基站和所在服务网关的全局 ID 均与被叫终端所在基站和所在服务网关的全局 ID相同时, 即说明所述主叫终 端所在的基站和服务网关均与所述被叫终端所在的基站和服务网关相同。 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; The second global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway, and a global ID of the base station where the called terminal is located and the serving gateway, so the first determining unit 131 determines the base station where the calling terminal is located. And whether the global ID of the serving gateway is the same as the global ID of the base station where the called terminal is located and the serving gateway, and the caller terminal can be determined. Whether the base station and the serving gateway where the terminal is located are the same as the base station and the serving gateway where the called terminal is located. When the first determining unit 131 determines that the global ID of the base station where the calling terminal is located and the serving gateway is the same as the global ID of the base station where the called terminal is located and the serving gateway, the base station where the calling terminal is located and The serving gateways are the same as the base station and the serving gateway where the called terminal is located.
所述通知交换单元 132, 用于若所述第一判断单元 131判断为相同, 则通 知所述主叫终端和所述被叫终端所在的相同的基站对所述主叫终端和所述被 叫终端进行本地交换;  The notification exchange unit 132 is configured to notify the same base station where the calling terminal and the called terminal are located to the calling terminal and the called party if the first determining unit 131 determines that the same is the same. The terminal performs local exchange;
具体的,在所述第一判断单元 131判断所述主叫终端所在的基站和服务网 关均与所述被叫终端所在的基站和服务网关相同时, 所述通知交换单元 132 可以通知所述主叫终端和所述被叫终端所在的相同的基站对所述主叫终端和 所述被叫终端进行本地交换, 该本地交换的交换路径为: 主叫终端到基站, 再 到被叫终端。  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 exchange unit 132 may notify the main The calling terminal and the same base station where the called terminal is located perform local exchange between the calling terminal and the called terminal, and the switching path of the local exchange is: the calling terminal to the base station, and then to the called terminal.
所述第二判断单元 133, 用于若所述第一判断单元 131判断为不同, 则进 一步判断所述主叫终端所在的基站与所述被叫终端所在的基站之间是否具有 网络通信能力;  The second determining unit 133 is configured to determine, if the first determining unit 131 is different, whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability;
具体的,在所述第一判断单元 131判断所述主叫终端所在的基站和服务网 关不是均与所述被叫终端所在的基站和服务网关相同时, 所述第二判断单元 133 可以进一步判断所述主叫终端所在的基站与所述被叫终端所在的基站之 间是否具有网络通信能力, 即判断两个基站之间是否可以 IP互通。  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 connectivity between the two base stations can be determined.
所述通知建立单元 134, 用于若所述第二判断单元 133判断为具有网络通 信能力,则通知所述主叫终端或所述被叫终端所在的基站与对端基站建立本地 交换通道,以使所述主叫终端或所述被叫终端所在的基站通过所述本地交换通 道对所述主叫终端和所述被叫终端进行本地交换;  The notification establishing unit 134 is configured to notify the base station where the calling terminal or the called terminal is located to establish a local switching channel with the opposite base station, if the second determining unit 133 determines that the network communication capability is determined, And causing, by the calling terminal or the base station where the called terminal is located, locally exchange the calling terminal and the called terminal by using the local switching channel;
具体的,在所述第二判断单元 133判断所述主叫终端所在的基站与所述被 叫终端所在的基站之间具有网络通信能力时,所述通知建立单元 134可以通知 所述主叫终端或所述被叫终端所在的基站与对端基站建立本地交换通道,以使 所述主叫终端或所述被叫终端所在的基站通过所述本地交换通道对所述主叫 终端和所述被叫终端进行本地交换,该本地交换的交换路径为: 主叫终端到主 叫终端所在基站,再通过所述本地交换通道到被叫终端所在基站, 最后到被叫 终端。 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 has network communication capability, the notification establishing unit 134 may notify the calling terminal. Or the base station where the called terminal is located establishes a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located to the calling party through the local switching channel The terminal and the called terminal perform local exchange, and the switching path of the local exchange is: the calling terminal to the base station where the calling terminal is located, and then the local switching channel to the base station where the called terminal is located, and finally to the called terminal.
由上可见, 本发明实施例通过将第一全局 ID信息发送给被叫终端所在的 基站和服务网关, 可以使被叫终端所在的基站和服务网关根据第一全局 ID信 息对主叫终端和被叫终端进行本地交换, 或者, 也可以根据第二全局 ID信息 通知主叫终端或被叫终端所在的基站对主叫终端和被叫终端进行本地交换,以 解决移动网络里 VOIP存在的路径冗余现象,从而减少了网络流量和网络投资。  It can be seen that, by sending the first global ID information to the base station and the serving gateway where the called terminal is located, the base station and the serving gateway where the called terminal is located can make the calling terminal and the called terminal according to the first global ID information. The terminal is called to perform local exchange, or the base station where the called terminal or the called terminal is located may be locally exchanged between the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy of the VOIP in the mobile network. Phenomenon, which reduces network traffic and network investment.
再请参见图 9, 为本发明实施例提供的另一种交换控制装置 1的结构示意 图, 所述交换控制装置 1可以包括上述图 5中的获取模块 11、 发送模块 12、 通知模块 13, 进一步的, 所述交换控制装置 1还可以包括: 转换关系发送模 块 14、 通知停止交换模块 15;  FIG. 9 is 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 notification module 13 in FIG. 5, and further The switching control device 1 may further include: a conversion relationship sending module 14, and a notification stopping switching module 15;
所述转换关系发送模块 14, 用于发送所述主叫终端或所述被叫终端在 NAT 网关上的地址转换关系到所述主叫终端或所述被叫终端所在的基站, 以 便于对所述主叫终端和所述被叫终端进行本地交换;  The conversion relationship sending module 14 is configured to send an address translation relationship between the calling terminal or the called terminal on a NAT gateway to the base station where the calling terminal or the called terminal is located, so as to facilitate Describe that the calling terminal and the called terminal perform local exchange;
具体的,在 PCRF实体和 IMS之间的接口上有 NAT网关,所述 NAT网关 负责将终端的私网 IP地址和端口转换成公网 IP地址和端口。 所述转换关系发 送模块 14可以通知 NAT网关在 PCRF实体上报第一全局 ID信息或第二全局 ID信息到 IMS时插入主叫终端的 IP/PORT转换关系,并通知 NAT网关在 IMS 向被叫终端发送本地交换请求时插入被叫终端的 IP/PORT转换关系, 从而所 述转换关系发送模块 14可以将获得的主叫终端和被叫终端的 IP/PORT转换关 系发送到所述主叫终端或所述被叫终端所在的基站,以便于对所述主叫终端和 所述被叫终端进行本地交换。 由于在本地交换后, IP流不再经过 NAT网关, 所以基站通过接收到的主叫终端和被叫终端的 IP/PORT转换关系可以对终端 的 IP地址和端口进行转换, 以顺利完成对所述主叫终端和所述被叫终端的本 地交换。  Specifically, there is a NAT gateway on the interface between the PCRF entity and the IMS, and the NAT gateway is responsible for converting the private IP address and port of the terminal into a public network IP address and port. The conversion relationship sending module 14 may notify the NAT gateway to insert the IP/PORT conversion 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 the IMS to the called terminal. The IP/PORT conversion relationship of the called terminal is inserted when the local exchange request is sent, so that the conversion relationship sending module 14 can send the obtained IP/PORT conversion relationship between the calling terminal and the called terminal to the calling terminal or the The base station where the called terminal is located is configured to perform local exchange between the calling terminal and the called terminal. After the local exchange, the IP flow no longer passes through the NAT gateway, so the base station can convert the IP address and port of the terminal through the received IP/PORT conversion relationship between the calling terminal and the called terminal, so as to successfully complete the Local exchange between the calling terminal and the called terminal.
所述通知停止交换模块 15, 用于当需要补充业务或合法监听时, 通知所 述主叫终端或所述被叫终端所在的基站停止对所述主叫终端和所述被叫终端 进行本地交换; The notification stops the switching module 15 for notifying the office when supplementary service or lawful interception is needed Determining that the calling terminal or the base station where the called terminal is located stops local exchange between the calling terminal and the called terminal;
具体的, 当补充业务或者合法监听等发生时, 所述通知停止交换模块 15 可以向 PCRF实体发送停止本地交换指令,使得 PCRF实体通知主叫终端或被 叫终端所在的包交换网关转发所述停止本地交换指令到对应的服务网关,再由 该服务网关通知 MME, MME再通知对应基站, 从而所述主叫终端或所述被 叫终端所在的基站可以停止对所述主叫终端和所述被叫终端进行本地交换。  Specifically, when the supplementary service or the lawful interception occurs, the notification stop switching module 15 may send a stop local exchange instruction to the PCRF entity, so that the PCRF entity notifies the calling terminal or the packet switching gateway where the called terminal is located to forward the stop. The local exchange command is sent to the corresponding service gateway, and the service gateway notifies the MME, and the MME notifies the corresponding base station, so that the calling terminal or the base station where the called terminal is located can stop the calling terminal and the called Call the terminal for local exchange.
由上可见, 本发明实施例通过将第一全局 ID信息发送给被叫终端所在的 基站和服务网关, 可以使被叫终端所在的基站和服务网关根据第一全局 ID信 息对主叫终端和被叫终端进行本地交换, 或者, 也可以根据第二全局 ID信息 通知主叫终端或被叫终端所在的基站对主叫终端和被叫终端进行本地交换,以 解决移动网络里 VOIP存在的路径冗余现象,从而减少了网络流量和网络投资。  It can be seen that, by sending the first global ID information to the base station and the serving gateway where the called terminal is located, the base station and the serving gateway where the called terminal is located can make the calling terminal and the called terminal according to the first global ID information. The terminal is called to perform local exchange, or the base station where the called terminal or the called terminal is located may be locally exchanged between the calling terminal and the called terminal according to the second global ID information, so as to solve the path redundancy of the VOIP in the mobile network. Phenomenon, which reduces network traffic and network investment.
请参见图 10, 为本发明实施例提供的一种基站 2的结构示意图, 所述基 站 2特指被叫终端所在的基站, 所述基站 2可以包括: 接收模块 21、 第一本 地交换模块 22、 第二本地交换模块 23;  FIG. 10 is a schematic structural diagram of a base station 2 according to an embodiment of the present invention. The base station 2 specifically refers to a base station where a called terminal is located, and the base station 2 may include: a receiving module 21 and a first local switching module 22 The second local exchange module 23;
所述接收模块 21, 用于接收交换控制装置发送的第一全局 ID信息或交换 判断结果, 所述交换判断结果是由所述交换控制装置根据第二全局 ID信息所 判断出的;  The receiving module 21 is configured to receive first global ID information or exchange judgment result sent by the exchange control device, where the exchange determination result is determined by the exchange control device according to the second global ID information;
具体的,所述接收模块 21可以接收交换控制装置发送的第一全局 ID信息 或交换判断结果。其中, 所述交换判断结果是由所述交换控制装置根据第二全 局 ID信息所判断出的。其中,所述第一全局 ID信息包括主叫终端所在基站和 所在服务网关的全局 ID; 所述第二全局 ID信息包括主叫终端所在基站和所在 服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。  Specifically, the receiving module 21 may receive the first global ID information sent by the switching control device or exchange the determination result. The exchange judgment result is determined by the exchange control device according to the second global ID information. The first global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway; the second global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway, and a base station where the called terminal is located. And the global ID of the service gateway.
所述接收模块 21在接收交换控制装置发送的第一全局 ID信息或交换判断 结果之前,所述交换控制装置需要先获取第一全局 ID信息或第二全局 ID信息, 所述交换控制装置获取第一全局 ID信息或第二全局 ID信息的具体过程可以参 见上述图 5中的获取模块 11所实现的功能, 这里不再进行赞述。 所述第一本地交换模块 22, 用于当接收到所述第一全局 ID信息时, 根据 所述第一全局 ID信息对所述主叫终端和所述被叫终端进行本地交换; Before the receiving module 21 receives the first global ID information sent by the switching control device or exchanges the determination result, the switching control device needs to acquire the first global ID information or the second global ID information, and the switching control device acquires the first For the specific process of the global ID information or the second global ID information, refer to the functions implemented by the obtaining module 11 in FIG. 5 above, and no further description is made here. The first local switching module 22 is configured to perform local exchange between the calling terminal and the called terminal according to the first global ID information when receiving the first global ID information;
具体的, 当所述接收模块 21接收到所述第一全局 ID信息时, 所述第一本 地交换模块 22可以才艮据所述第一全局 ID信息对所述主叫终端和所述被叫终端 进行本地交换。 当根据所述第一全局 ID信息判断出主叫终端和被叫终端处于 相同的基站和相同的服务网关, 所述第一本地交换模块 22将直接对所述主叫 终端和所述被叫终端进行本地交换; 当根据所述第一全局 ID信息判断出所述 主叫终端所在的基站与本地基站之间具有网络通信能力时,所述第一本地交换 模块 22也可以通过所述主叫终端所在的基站对所述主叫终端和所述被叫终端 进行本地交换。  Specifically, when the receiving module 21 receives the first global ID information, the first local switching module 22 may refer to the calling terminal and the called party according to the first global ID information. The terminal performs local exchange. Determining, according to the first global ID information, that the calling terminal and the called terminal are in the same base station and the same serving gateway, the first local switching module 22 will directly directly contact the calling terminal and the called terminal. Performing local exchange; 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 switching module 22 may also pass the local calling terminal. The base station in which the base station exchanges the calling terminal and the called terminal locally.
所述第二本地交换模块 23, 用于当接收到所述交换判断结果时, 根据所 述交换判断结果对所述主叫终端和所述被叫终端进行本地交换;  The second local switching module 23 is configured to perform local exchange between the calling terminal and the called terminal according to the exchange determination result when receiving the exchange determination result;
具体的, 当所述接收模块 21接收到所述交换判断结果时, 所述第二本地 交换模块 23可以根据所述交换判断结果对所述主叫终端和所述被叫终端进行 本地交换。  Specifically, when the receiving module 21 receives the exchange judgment result, the second local switching module 23 may locally exchange the calling terminal and the called terminal according to the exchange judgment result.
进一步的, 再请参见图 11, 为上述图 10中的第一本地交换模块 22的结 构示意图, 所述第一本地交换模块 22可以包括: 第一本地判断单元 221、 第 一交换单元 222、 第二本地判断单元 223、 第一建立单元 224;  Further, referring to FIG. 11 , 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 determining unit 221 , a first switching unit 222 , and a first a second local determining unit 223, a first establishing unit 224;
所述第一本地判断单元 221, 用于根据所述第一全局 ID信息判断所述主 叫终端所在的基站和服务网关是否均与本地基站和本地服务网关相同;  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 the local base station and the local serving gateway;
具体的, 当所述接收模块 21接收到所述第一全局 ID信息时, 所述第一本 地判断单元 221可以根据所述第一全局 ID信息判断所述主叫终端所在的基站 和服务网关是否均与本地基站和本地服务网关相同。  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 Both are the same as the local base station and the local service gateway.
所述第一交换单元 222, 用于若所述第一本地判断单元 221判断为相同, 则对所述主叫终端和所述被叫终端进行本地交换;  The first switching unit 222 is configured to perform local exchange between the calling terminal and the called terminal if the first local determining unit 221 determines that the same is the same;
具体的,在所述第一本地判断单元 221判断出所述主叫终端所在的基站和 服务网关均与本地基站和本地服务网关相同时,说明主叫终端和被叫终端同处 于一个基站上, 所述第一交换单元 222可以根据所述第一全局 ID信息确定主 叫终端的上下文, 以对所述主叫终端和所述被叫终端进行本地交换, 该本地交 换的交换路径为: 主叫终端到基站, 再到被叫终端。 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, the calling terminal and the called terminal are in the same place. The first switching unit 222 may determine, according to the first global ID information, a context of the calling terminal, to locally exchange the calling terminal and the called terminal, and exchange the local exchange. The path is: the calling terminal to the base station, and then to the called terminal.
所述第二本地判断单元 223, 用于若所述第一本地判断单元 221判断为不 同,则进一步判断所述主叫终端所在的基站与所述本地基站之间是否具有网络 通信能力;  The second local determining unit 223 is configured to determine, if the first local determining unit 221 is different, whether the base station where the calling terminal is located and the local base station have network communication capability;
具体的,在所述第一本地判断单元 221判断出所述主叫终端所在的基站和 服务网关不是均与本地基站和本地服务网关相同时, 所述第二本地判断单元 223 可以进一步的判断所述主叫终端所在的基站与所述本地基站之间是否具 有网络通信能力。所述第二本地判断单元 223的判断过程具体可以为: 所述第 二本地判断单元 223发送建立本地交换通道请求到主叫终端所在的基站,并在 所述建立本地交换通道请求中添加所述第一全局 ID信息, 使主叫终端所在的 基站可以根据所述第一全局 ID信息判断出是否要对主叫终端做本地交换, 若 判断要做本地交换,则回应所述第二本地判断单元 223可以对主叫终端和被叫 终端进行本地交换,从而所述第二本地判断单元 223可以判断出所述主叫终端 所在的基站与所述被叫终端所在的基站之间具有网络通信能力; 否则, 所述第 二本地判断单元 223 可以判断出所述主叫终端所在的基站与所述被叫终端所 在的基站之间不具有网络通信能力。  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 the location. Whether the base station where the calling terminal is located and the local base station have network communication capabilities. The determining process of the second local determining unit 223 may be specifically: the second local determining unit 223 sends a local exchange channel request to the base station where the calling terminal is located, and adds the The first global ID information, so that the base station where the calling terminal is located can determine, according to the first global ID information, whether to perform local exchange with the calling terminal, and if it is determined that local exchange is to be performed, respond to the second local determining unit. 223, the calling terminal and the called terminal may be locally exchanged, so that 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 have network communication capability; Otherwise, the second local determining unit 223 may determine that the base station where the calling terminal is located does not have network communication capability with the base station where the called terminal is located.
所述第一建立单元 224, 用于若所述第二本地判断单元 223判断为具有网 络通信能力, 则与所述主叫终端所在的基站建立本地交换通道, 以通过所述本 地交换通道对所述主叫终端和所述被叫终端进行本地交换;  The first establishing unit 224 is configured to establish a local switching channel with the base station where the calling terminal is located, if the second local determining unit 223 determines that the network communication capability is available, to perform the local switching channel through the local switching channel. Describe that the calling terminal and the called terminal perform local exchange;
具体的,当所述第二本地判断单元 223判断出所述主叫终端所在的基站与 所述本地基站之间具有网络通信能力时, 说明主叫终端所在的基站回应基站 2 可以对主叫终端和被叫终端进行本地交换, 此时, 所述第一建立单元 224可以 与所述主叫终端所在的基站建立本地交换通道,以通过所述本地交换通道对所 述主叫终端和所述被叫终端进行本地交换, 该本地交换的交换路径为: 主叫终 端到主叫终端所在基站,再通过所述本地交换通道到被叫终端所在基站, 最后 到被叫终端。当所述第二本地判断单元 223判断出所述主叫终端所在的基站与 所述本地基站之间不具有网络通信能力时, 将无法进行本地交换。 Specifically, when the second local determining unit 223 determines that the base station where the calling terminal is located has network communication capability with the local base station, it indicates that the base station where the calling terminal is located may respond to the base station 2 to the calling terminal. Performing a local exchange with the called terminal. At this time, the first establishing unit 224 may establish a local switching channel with the base station where the calling terminal is located, to access the calling terminal and the called by the local switching channel. The calling terminal performs local switching. The switching path of the local switching is: the calling terminal to the base station where the calling terminal is located, and then the local switching channel to the base station where the called terminal is located, and finally Go to the called terminal. When the second local determining unit 223 determines that the base station where the calling terminal is located does not have network communication capability with the local base station, local switching cannot be performed.
其中,所述第一建立单元 224发送建立本地交换通道请求到主叫终端所在 的基站时,所述第一建立单元 224还可以将获得的主叫终端和被叫终端之间的 地址转换关系添加至所述本地交换通道请求中,使主叫终端所在的基站和本地 基站均可以根据所述地址转换关系顺利地完成对主叫终端和被叫终端的本地 交换。  When the first establishing unit 224 sends a local switching channel request 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. In the local exchange channel request, the base station where the calling terminal is located and the local base station can smoothly complete the local exchange between the calling terminal and the called terminal according to the address translation relationship.
进一步的, 再请参见图 12, 为上述图 10中的第二本地交换模块 23的结 构示意图, 所述第二本地交换模块 23可以包括: 第二交换单元 231、 第二建 立单元 232;  The second local switching module 23 may include: a second switching unit 231 and a second establishing unit 232;
所述第二交换单元 231, 用于当接收到的所述交换判断结果为所述主叫终 端所在的基站和服务网关均与所述被叫终端所在的基站和服务网关相同时,对 所述主叫终端和所述被叫终端进行本地交换;  The second switching unit 231 is configured to: when the received handover judgment 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, The calling terminal and the called terminal perform local exchange;
所述第二建立单元 232, 用于当接收到的所述交换判断结果为所述主叫终 端所在的基站与所述被叫终端所在的基站之间具有网络通信能力时,与所述主 叫终端所在的基站建立本地交换通道,以通过所述本地交换通道对所述主叫终 端和所述被叫终端进行本地交换。  The second establishing unit 232 is configured to: when the received exchange judgment result 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, The base station where the terminal is located establishes a local switching channel to locally exchange the calling terminal and the called terminal through the local switching channel.
本发明实施例所提供的基站 2通过接收交换控制装置发送的第一全局 ID 信息或交换判断结果, 可以使基站 2根据第一全局 ID信息或交换判断结果对 所述主叫终端和所述被叫终端进行本地交换, 以解决移动网络里 VOIP存在的 路径冗余现象, 从而减少了网络流量和网络投资。  The base station 2 according to the embodiment of the present invention, by receiving the first global ID information or the exchange judgment result sent by the exchange control device, may cause the base station 2 to refer to the calling terminal and the queried terminal according to the first global ID information or the exchange judgment result. The terminal is called to perform local exchange to solve the path redundancy phenomenon of VOIP in the mobile network, thereby reducing network traffic and network investment.
再请参见图 13, 为本发明实施例提供的另一种基站 2的结构示意图, 所 述基站 2可以包含上述图 10对应实施例中的接收模块 21、 第一本地交换模块 22、 第二本地交换模块 23, 进一步的, 所述基站 2还可以包括: 转换关系接 收模块 24、 预设模块 25、 第一切换模块 26、 第二切换模块 27;  Referring to FIG. 13, FIG. 13 is a schematic structural diagram of another base station 2 according to an embodiment of the present invention. The base station 2 may include the receiving module 21, the first local switching module 22, and the second local device in the corresponding embodiment of FIG. The switching module 23, further, the base station 2 may further include: a conversion relationship receiving module 24, a preset module 25, a first switching module 26, and a second switching module 27;
所述转换关系接收模块 24, 用于接收所述交换控制装置发送的所述主叫 终端或所述被叫终端在 NAT网关上的地址转换关系, 以便于对所述主叫终端 和所述被叫终端进行本地交换; The conversion relationship receiving module 24 is configured to receive an address translation relationship between the calling terminal or the called terminal sent by the switching control device on a NAT gateway, so as to facilitate the calling terminal Local exchange with the called terminal;
具体的,在 PCRF实体和 IMS之间的接口上有 NAT网关,所述 NAT网关 负责将终端的私网 IP地址和端口转换成公网 IP地址和端口。 所述交换控制装 置可以通知 NAT网关在 PCRF实体上报第一全局 ID信息或第二全局 ID信息 到 IMS时插入主叫终端的 IP/PORT转换关系, 并通知 NAT网关在 IMS向被 叫终端发送本地交换请求时插入被叫终端的 IP/PORT转换关系, 以得到所述 主叫终端或所述被叫终端在 NAT网关上的地址转换关系, 此时, 所述转换关 系接收模块 24可以接收所述交换控制装置发送的所述主叫终端或所述被叫终 端在 NAT网关上的地址转换关系, 以对终端的 IP地址和端口进行转换, 从而 可以顺利完成对所述主叫终端和所述被叫终端的本地交换。  Specifically, there is a NAT gateway on the interface between the PCRF entity and the IMS, and the NAT gateway is responsible for converting the private IP address and port of the terminal into a public network IP address and port. The switching control device may notify the NAT gateway to insert the IP/PORT conversion relationship of the calling terminal when the first global ID information or the second global ID information is reported to the IMS by the PCRF entity, and notify the NAT gateway to send the locality to the called terminal at the IMS. The IP/PORT conversion relationship of the called terminal is inserted in the exchange request to obtain an address translation relationship between the calling terminal or the called terminal on the NAT gateway. At this time, the conversion relationship receiving module 24 may receive the Transmitting, by the switching control device, an address translation relationship between the calling terminal or the called terminal on the NAT gateway, to convert the IP address and the port of the terminal, so that the calling terminal and the called terminal can be successfully completed. Call the local exchange of the terminal.
所述预设模块 25, 用于预设所述主叫终端或所述被叫终端在 NAT网关上 的地址转换关系, 以便于对所述主叫终端和所述被叫终端进行本地交换; 具体的, 所述预设模块 25可以预设所述主叫终端或所述被叫终端在 NAT 网关上的地址转换关系, 以便于对所述主叫终端和所述被叫终端进行本地交 换。 以主叫终端和被叫终端同处于基站 2中为例, 若所述预设模块 25预设主 叫终端发送的数据包的源 IP/源端口 (假设是 IP1/PORT1 )就对应被叫终端发 送的数据包的目的 IP/目的端口 (假设是 IP2/PORT2 ), 且主叫终端发送的数据 包的目的 IP/目的端口 (假设是 IP3/PORT3 )就对应被叫终端发送的数据包的 目的 IP/目的端口 (假设是 IP4/PORT4 ), 则基站 2与服务网关在收到主叫终端 发送的数据包时, 将 IP1/PORT1 转换为 IP2/PORT2, 将 IP3/PORT3 转换为 IP4/PORT4, 然后发送给被叫终端; 或者, 基站 2与服务网关在收到被叫终端 发送的数据包时, 将 IP2/PORT2转换为 IP1/PORT1 , 将 IP4/PORT4转换为 IP3/PORT3, 然后发送给主叫终端。  The preset module 25 is configured to preset an address translation relationship between 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; The preset module 25 may preset an address translation relationship between 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. For example, if the calling terminal and the called terminal are in the base station 2, if the preset module 25 presets the source IP/source port of the data packet sent by the calling terminal (assumed to be IP1/PORT1), the called terminal corresponds to the called terminal. The destination IP/destination port of the transmitted packet (assumed to be IP2/PORT2), and the destination IP/destination port of the packet sent by the calling terminal (assumed to be IP3/PORT3) corresponds to the destination of the packet sent by the called terminal. IP/destination port (assumed to be IP4/PORT4), when the base station 2 and the serving gateway receive the data packet sent by the calling terminal, convert IP1/PORT1 to IP2/PORT2, and convert IP3/PORT3 to IP4/PORT4. Then, it is sent to the called terminal; or, when receiving the data packet sent by the called terminal, the base station 2 and the serving gateway convert IP2/PORT2 into IP1/PORT1, convert IP4/PORT4 into IP3/PORT3, and then send it to the main Call the terminal.
其中,基站 2可以通过所述转换关系接收模块 24或所述预设模块 25获得 所述主叫终端或所述被叫终端在 NAT网关上的地址转换关系。  The base station 2 can obtain the address translation relationship of the calling terminal or the called terminal on the NAT gateway by using the conversion relationship receiving module 24 or the preset module 25.
所述第一切换模块 26, 用于当所述主叫终端所在的基站切换至目标基站 时,将所述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站 和所述本地基站; The first switching module 26 is configured to switch, when the base station where the calling terminal is located, to the target base station, to switch the local exchange relationship between the calling terminal and the called terminal to the target base station. And the local base station;
具体的,在主叫终端所在的基站与被叫终端所在的基站对主叫终端和被叫 终端进行本地交换的情况下, 当所述主叫终端所在的基站切换至目标基站时, 所述第一切换模块 26可以将所述主叫终端和所述被叫终端之间的本地交换关 系切换至所述目标基站和所述本地基站,即主叫终端所在的基站在切换至目标 基站时, 将被叫终端所在的基站和服务网关的全局 ID发送到目标基站, 使目 标基站根据被叫终端所在的基站和服务网关的全局 ID判断目标基站与被叫终 端所在基站是否具有网络通信能力,若具有网络通信能力, 则目标基站与被叫 终端所在基站建立本地交换通道, 以对主叫终端和被叫终端进行本地交换。  Specifically, when the base station where the calling terminal is located and the base station where the called terminal is located perform local exchange between the calling terminal and the called terminal, when the base station where the calling terminal is located switches to the target base station, the A switching module 26 may switch the local switching 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, when switching to the target base station, The global ID of the base station and the serving gateway where the called terminal is located is sent to the target base station, so that the target base station determines whether the target base station and the base station where the called terminal is located have network communication capability according to the global ID of the base station and the serving gateway where the called terminal is located, if For the network communication capability, the target base station establishes a local switching channel with the base station where the called terminal is located to perform local exchange between the calling terminal and the called terminal.
所述第二切换模块 27, 用于当所述被叫终端所在的基站切换至目标基站 时,将所述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站 和所述主叫终端所在的基站;  The second switching module 27 is configured to switch, when the base station where the called terminal is located, to the target base station, to switch 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, when the base station where the called terminal is located is switched to the target base station, the second switching module
27将主叫终端所在的基站和服务网关的全局 ID发送到目标基站,使目标基站 根据主叫终端所在的基站和服务网关的全局 ID判断目标基站与主叫终端所在 基站是否具有网络通信能力, 若具有网络通信能力, 则目标基站与主叫终端所 在基站建立本地交换通道, 以对主叫终端和被叫终端进行本地交换。 The global ID of the base station and the serving gateway where the calling terminal is located is sent 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 have network communication capability according to the global ID of the base station and the serving gateway where the calling terminal is located. If the network communication capability is available, the target base station establishes a local switching channel with the base station where the calling terminal is located to perform local exchange between the calling terminal and the called terminal.
本发明实施例所提供的基站 2通过接收交换控制装置发送的第一全局 ID 信息或交换判断结果, 可以使基站 2根据第一全局 ID信息或交换判断结果对 所述主叫终端和所述被叫终端进行本地交换, 以解决移动网络里 VOIP存在的 路径冗余现象, 从而减少了网络流量和网络投资。  The base station 2 according to the embodiment of the present invention, by receiving the first global ID information or the exchange judgment result sent by the exchange control device, may cause the base station 2 to refer to the calling terminal and the queried terminal according to the first global ID information or the exchange judgment result. The terminal is called to perform local exchange to solve the path redundancy phenomenon of VOIP in the mobile network, thereby reducing network traffic and network investment.
本发明实施例还提供了一种计算机存储介质, 其中, 所述计算机存储介质 可存储有程序, 该程序执行时包括上述图 1至图 2的方法实施例中记载的 IP 语音交换的方法的部分或全部步骤。  The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes a part of the method for IP voice exchange described in the method embodiment of FIG. 1 to FIG. 2 when executed. Or all steps.
本发明实施例还提供了一种计算机存储介质, 其中, 所述计算机存储介质 可存储有程序, 该程序执行时包括上述图 3至图 4的方法实施例中记载的 IP 语音交换的方法的部分或全部步骤。 再请参见图 14, 为本发明实施例提供的又一种交换控制装置 1的结构示 意图,所述交换控制装置 1可以包括处理器 1001、通信接口 1002和存储器 1003 (交换控制装置 1中的处理器 1001的数量可以为一个或多个,图 14中以一个 处理器 1001 为例) 。 本发明的一些实施例中, 处理器 1001、 通信接口 1002 和存储器 1003可通过通信总线或其他方式连接, 其中, 图 14以通过通信总线 连接为例。 The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, where the program is executed, including the part of the method for IP voice exchange described in the method embodiments of FIG. 3 to FIG. 4 described above. Or all steps. Referring to FIG. 14, FIG. 14 is a schematic structural diagram of still another switching control apparatus 1 according to an embodiment of the present invention. The switching control apparatus 1 may include a processor 1001, a communication interface 1002, and a memory 1003 (processing in the switching control apparatus 1) The number of the devices 1001 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 means, wherein FIG. 14 is exemplified by a communication bus connection.
其中, 所述通信接口 1002, 用于与基站和服务网关通信;  The communication interface 1002 is configured to communicate with a base station and a serving gateway;
所述存储器 1003用于存储程序;  The memory 1003 is configured to store a program;
所述处理器 1001用于执行所述程序, 以实现  The processor 1001 is configured to execute the program to implement
获取第一全局 ID信息或第二全局 ID信息;  Obtaining the first global ID information or the second global ID information;
当获取到第一全局 ID信息时,发送所述第一全局 ID信息到被叫终端所在 的基站和服务网关,以使所述被叫终端所在的基站和服务网关在根据所述第一 全局 ID信息判断出与主叫终端所在的基站和服务网关之间的关系满足本地交 换条件时, 对所述主叫终端和所述被叫终端进行本地交换;  When the first global ID information is obtained, the first global ID information is sent to the base station and the serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located are according to the first global ID. The information is determined to be locally exchanged between the calling terminal and the called terminal when the relationship between the base station and the serving gateway where the calling terminal is located satisfies the local switching condition;
当获取到第二全局 ID信息时,根据所述第二全局 ID信息通知所述主叫终 端或所述被叫终端所在的基站对所述主叫终端和所述被叫终端进行本地交换。  And when the second global ID information is obtained, the base station where the calling terminal or the called terminal is located is notified to perform local exchange between the calling terminal and the called terminal according to the second global ID information.
其中, 所述处理器 1001具体用于:  The processor 1001 is specifically configured to:
通知策略与计费规则功能单元(PCRF ) 实体上报主叫终端所在基站和所 在服务网关的全局 ID, 并将接收到的所述主叫终端所在基站和所在服务网关 的全局 ID作为第一全局 ID信息; 或者,  The notification policy and charging rule function unit (PCRF) entity reports the global ID of the base station where the calling terminal is located and the serving gateway, and receives the received global ID of the base station where the calling terminal is located and the serving gateway as the first global ID. Information; or,
通知 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID、 以及 被叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端所 在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的 全局 ID作为第二全局 ID信息。  Notifying the PCRF entity to report the global ID of the base station where the calling terminal is located and the serving gateway, and the global ID of the base station where the called terminal is located and the serving gateway, and the received global ID of the base station where the calling terminal is located and the serving gateway And the global ID of the base station where the called terminal is located and the serving gateway is used as the second global ID information.
其中,所述本地交换条件为所述主叫终端所在的基站和服务网关均与所述 被叫终端所在的基站和服务网关相同; 或者,  The local exchange condition 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; or
所述本地交换条件为所述主叫终端所在的基站与所述被叫终端所在的基 站之间具有网络通信能力。 其中, 所述处理器 1001在执行所述当获取到第一全局 ID信息时,发送所 述第一全局 ID信息到被叫终端所在的基站和服务网关时, 具体用于: The local exchange condition is that the base station where the calling terminal is located has network communication capability with the base station where the called terminal is located. The processor 1001 is configured to: when the first global ID information is sent, when the first global ID information is sent to the base station and the serving gateway where the called terminal is located, specifically, the processor 1001 is specifically configured to:
创建本地交换请求,并将所述第一全局 ID信息添加至所述本地交换请求; 发送所述本地交换请求到所述被叫终端所在的基站和服务网关。  Creating a local exchange request, and adding the first global ID information to the local exchange request; sending the local exchange request to a base station and a serving gateway where the called terminal is located.
其中, 所述处理器 1001在执行所述当获取到第二全局 ID信息时,根据所 述第二全局 ID信息通知所述主叫终端或所述被叫终端所在的基站对所述主叫 终端和所述被叫终端进行本地交换时, 具体用于:  The processor 1001, when performing the acquiring the second global ID information, notifying the calling terminal or the base station where the called terminal is located to the calling terminal according to the second global ID information. When performing local exchange with the called terminal, it is specifically used to:
根据所述第二全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与所述被叫终端所在的基站和服务网关相同;  Determining, 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;
若判断为相同,则通知所述主叫终端和所述被叫终端所在的相同的基站对 所述主叫终端和所述被叫终端进行本地交换;  If it is determined to be the same, the calling terminal and the same base station where the called terminal is located are notified to perform local exchange between the calling terminal and the called terminal;
若判断为不同,则进一步判断所述主叫终端所在的基站与所述被叫终端所 在的基站之间是否具有网络通信能力;  If it is determined to be different, further determining whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capability;
若判断为具有网络通信能力,则通知所述主叫终端或所述被叫终端所在的 基站与对端基站建立本地交换通道,以使所述主叫终端或所述被叫终端所在的 基站通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交换。  If it is determined that the network communication capability is determined, the base station where the calling terminal or the called terminal is located is notified to establish a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located passes The local switching channel performs local exchange between the calling terminal and the called terminal.
其中, 所述处理器 1001还用于:  The processor 1001 is further configured to:
发送所述主叫终端或所述被叫终端在 NAT网关上的地址转换关系到所述 主叫终端或所述被叫终端所在的基站,以便于对所述主叫终端和所述被叫终端 进行本地交换。  Transmitting, by the calling terminal or the called terminal, an address translation relationship on the NAT gateway to the base station where the calling terminal or the called terminal is located, so as to facilitate the calling terminal and the called terminal Perform local exchange.
其中, 所述处理器 1001还用于:  The processor 1001 is further configured to:
当需要补充业务或合法监听时,通知所述主叫终端或所述被叫终端所在的 基站停止对所述主叫终端和所述被叫终端进行本地交换。  When the supplementary service or the lawful interception is required, the calling terminal or the base station where the called terminal is located is notified to stop local exchange between the calling terminal and the called terminal.
由上可见, 本发明实施例通过将第一全局 ID信息发送给被叫终端所在的 基站和服务网关, 可以使被叫终端所在的基站和服务网关根据第一全局 ID信 息对主叫终端和被叫终端进行本地交换, 或者, 也可以根据第二全局 ID信息 通知主叫终端或被叫终端所在的基站对主叫终端和被叫终端进行本地交换,以 解决移动网络里 VOIP存在的路径冗余现象,从而减少了网络流量和网络投资。 再请参见图 15, 为本发明实施例提供的又一种基站 2的结构示意图, 所 述基站 2特指被叫终端所在的基站。 所述基站 2可以包括处理器 2001、 通信 接口 2002和存储器 2003 (基站 2中的处理器 2001的数量可以为一个或多个, 图 15中以一个处理器 2001为例) 。 本发明的一些实施例中, 处理器 2001、 通信接口 2002和存储器 2003可通过通信总线或其他方式连接, 其中, 图 15 以通过通信总线连接为例。 It can be seen that, by sending the first global ID information to the base station and the serving gateway where the called terminal is located, the base station and the serving gateway where the called terminal is located can make the calling terminal and the called terminal according to the first global ID information. Calling the terminal to perform local exchange, or, according to the second global ID information, notifying the calling terminal or the base station where the called terminal is located to locally exchange the calling terminal and the called terminal, Solve the path redundancy phenomenon of VOIP in mobile networks, thus reducing network traffic and network investment. Referring to FIG. 15, FIG. 15 is a schematic structural diagram of another base station 2 according to an embodiment of the present invention. The base station 2 specifically refers to a base station where the called terminal is located. The base station 2 may include a processor 2001, a communication interface 2002, and a memory 2003 (the number of processors 2001 in the base station 2 may be one or more, and one processor 2001 in FIG. 15 is taken as an example). In some embodiments of the present 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 a communication bus connection.
其中, 所述通信接口 2002, 用于与交换控制装置进行通信;  The communication interface 2002 is configured to communicate with an exchange control device;
所述存储器 2003用于存储程序;  The memory 2003 is used to store a program;
所述处理器 2001用于执行所述程序, 以实现  The processor 2001 is configured to execute the program to implement
接收交换控制装置发送的第一全局 ID信息或交换判断结果, 所述交换判 断结果是由所述交换控制装置根据第二全局 ID信息所判断出的;  Receiving, by the exchange control device, first global ID information or exchanging a determination result, where the exchange determination result is determined by the exchange control device according to the second global ID information;
当接收到所述第一全局 ID信息时,根据所述第一全局 ID信息对所述主叫 终端和所述被叫终端进行本地交换;  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;
当接收到所述交换判断结果时,根据所述交换判断结果对所述主叫终端和 所述被叫终端进行本地交换。  When receiving the exchange judgment result, the calling terminal and the called terminal perform local exchange according to the exchange judgment result.
其中, 所述第一全局 ID信息包括主叫终端所在基站和所在服务网关的全 局 ID;  The first global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway;
所述第二全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。  The second global ID information includes a global ID of the base station where the calling terminal is located and the serving gateway, and a global ID of the base station where the called terminal is located and the serving gateway.
其中, 所述处理器 2001在执行所述当接收到所述第一全局 ID信息时,根 据所述第一全局 ID信息对所述主叫终端和所述被叫终端进行本地交换时, 具 体用于:  The processor 2001 performs the local exchange of the calling terminal and the called terminal according to the first global ID information when performing the first global ID information, specifically In:
根据所述第一全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与本地基站和本地服务网关相同;  Determining, 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 the local base station and the local serving gateway;
若判断为相同, 则对所述主叫终端和所述被叫终端进行本地交换; 若判断为不同,则进一步判断所述主叫终端所在的基站与所述本地基站之 间是否具有网络通信能力; 若判断为具有网络通信能力,则与所述主叫终端所在的基站建立本地交换 通道, 以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交 换。 If it is determined to be the same, the calling terminal and the called terminal are locally exchanged; if it is determined to be different, further determining whether the base station where the calling terminal is located and the local base station have network communication capability ; If it is determined that the network communication capability is available, a local switching channel is established with the base station where the calling terminal is located, so that the calling terminal and the called terminal are locally exchanged through the local switching channel.
其中, 所述处理器 2001在执行所述当接收到所述交换判断结果时, 根据 所述交换判断结果对所述主叫终端和所述被叫终端进行本地交换时, 具体用 于:  When the processor 2001 performs the local exchange of the calling terminal and the called terminal according to the exchange judgment result, the processor 2001 is specifically configured to:
当接收到的所述交换判断结果为所述主叫终端所在的基站和服务网关均 与所述被叫终端所在的基站和服务网关相同时,对所述主叫终端和所述被叫终 端进行本地交换;  When the received handover judgment 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, performing the calling terminal and the called terminal. Local exchange
当接收到的所述交换判断结果为所述主叫终端所在的基站与所述被叫终 端所在的基站之间具有网络通信能力时,与所述主叫终端所在的基站建立本地 交换通道,以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地 交换。  When the exchange judgment result is that the base station where the calling terminal is located and the base station where the called terminal is located has a network communication capability, establish a local switching channel with the base station where the calling terminal is located, Locally exchanging the calling terminal and the called terminal through the local switching channel.
其中, 所述处理器 2001还用于:  The processor 2001 is further configured to:
接收所述交换控制装置发送的所述主叫终端或所述被叫终端在 NAT网关 上的地址转换关系, 以便于对所述主叫终端和所述被叫终端进行本地交换; 或 者,  Receiving, by the switching control device, an address translation relationship between the calling terminal or the called terminal on a NAT gateway, so as to perform local exchange between the calling terminal and the called terminal; or
预设所述主叫终端或所述被叫终端在 NAT网关上的地址转换关系, 以便 于对所述主叫终端和所述被叫终端进行本地交换。  Presetting the address translation relationship between 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.
其中, 所述处理器 2001还用于:  The processor 2001 is further configured to:
当所述主叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述本地基站;  When the base station where the calling terminal is located is handed over to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the local base station;
当所述被叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述主叫终端所在的基站。  When the base station where the called terminal is located switches to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the base station where the calling terminal is located.
本发明实施例所提供的基站 2通过接收交换控制装置发送的第一全局 ID 信息或交换判断结果, 可以使基站 2根据第一全局 ID信息或交换判断结果对 所述主叫终端和所述被叫终端进行本地交换, 以解决移动网络里 VOIP存在的 路径冗余现象, 从而减少了网络流量和网络投资。 The base station 2 according to the embodiment of the present invention, by receiving the first global ID information or the exchange judgment result sent by the exchange control device, may cause the base station 2 to refer to the calling terminal and the queried terminal according to the first global ID information or the exchange judgment result. Call the terminal to perform local exchange to solve the existence of VOIP in the mobile network. Path redundancy reduces network traffic and network investment.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, the program When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之 权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。  The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made by the claims of the present invention are still within the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种 IP语音交换的方法, 其特征在于, 包括: 1. An IP voice switching method, characterized by including:
获取第一全局 ID信息或第二全局 ID信息; Obtain the first global ID information or the second global ID information;
当获取到第一全局 ID信息时,发送所述第一全局 ID信息到被叫终端所在 的基站和服务网关,以使所述被叫终端所在的基站和服务网关在根据所述第一 全局 ID信息判断出与主叫终端所在的基站和服务网关之间的关系满足本地交 换条件时, 对所述主叫终端和所述被叫终端进行本地交换; When the first global ID information is obtained, the first global ID information is sent to the base station and the serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located are configured according to the first global ID. When the information determines that the relationship between the base station and the serving gateway where the calling terminal is located satisfies local exchange conditions, local exchange is performed between the calling terminal and the called terminal;
当获取到第二全局 ID信息时,根据所述第二全局 ID信息通知所述主叫终 端或所述被叫终端所在的基站对所述主叫终端和所述被叫终端进行本地交换。 When the second global ID information is obtained, the base station where the calling terminal or the called terminal is located is notified to perform local switching on the calling terminal and the called terminal according to the second global ID information.
2、 如权利要求 1所述的方法, 其特征在于, 所述获取第一全局 ID信息或 第二全局 ID信息, 包括: 2. The method according to claim 1, characterized in that said obtaining the first global ID information or the second global ID information includes:
通知策略与计费规則功能单元 (PCRF ) 实体上报主叫终端所在基站和所 在服务网关的全局 ID, 并将接收到的所述主叫终端所在基站和所在服务网关 的全局 ID作为第一全局 ID信息; 或者, The Notification Policy and Charging Rules Function Unit (PCRF) entity reports the global ID of the base station where the calling terminal is located and the serving gateway where it is located, and uses the received global ID of the base station and serving gateway where the calling terminal is located as the first global ID. information; or,
通知 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID、 以及 被叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端所 在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的 全局 ID作为第二全局 ID信息。 Notify the PCRF entity to report the global ID of the base station and serving gateway where the calling terminal is located, and the global ID of the base station and serving gateway where the called terminal is located, and receive the global ID of the base station and serving gateway where the calling terminal is located. , and the global ID of the base station and serving gateway where the called terminal is located as the second global ID information.
3、 如权利要求 1或 2所述的方法, 其特征在于, 3. The method according to claim 1 or 2, characterized in that,
所述本地交换条件为所述主叫终端所在的基站和服务网关均与所述被叫 终端所在的基站和服务网关相同; 或者, The local exchange condition is that the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway 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 capabilities.
4、 如权利要求 1至 3任一项所述的方法, 其特征在于, 所述发送所述第 一全局 ID信息到被叫终端所在的基站和服务网关, 包括: 4. The method according to any one of claims 1 to 3, wherein said sending the first global ID information to the base station and serving gateway where the called terminal is located includes:
创建本地交换请求,并将所述第一全局 ID信息添加至所述本地交换请求; 发送所述本地交换请求到所述被叫终端所在的基站和服务网关。 Create a local switching request, and add the first global ID information to the local switching request; Send the local switching request to the base station and serving gateway where the called terminal is located.
5、 如权利要求 1至 4任一项所述的方法, 其特征在于, 所述根据所述第 二全局 ID信息通知所述主叫终端或所述被叫终端所在的基站对所述主叫终端 和所述被叫终端进行本地交换, 包括: 5. The method according to any one of claims 1 to 4, characterized in that: notifying the calling terminal or the base station where the called terminal is located according to the second global ID information that the calling terminal The terminal and the called terminal perform local switching, including:
根据所述第二全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与所述被叫终端所在的基站和服务网关相同; Determine whether the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway where the called terminal is located based on the second global ID information;
若判断为相同,则通知所述主叫终端和所述被叫终端所在的相同的基站对 所述主叫终端和所述被叫终端进行本地交换; If it is determined that they are the same, 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 it is determined that they are different, it is further determined whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capabilities;
若判断为具有网络通信能力,则通知所述主叫终端或所述被叫终端所在的 基站与对端基站建立本地交换通道,以使所述主叫终端或所述被叫终端所在的 基站通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交换。 If it is determined that it has network communication capabilities, the base station where the calling terminal or the called terminal is located is notified to establish a local switching channel with the opposite end base station, so that the calling terminal or the base station where the called terminal is located passes. The local switching channel performs local switching on the calling terminal and the called terminal.
6、 如权利要求 1至 5任一项所述的方法, 其特征在于, 还包括: 发送所述主叫终端或所述被叫终端在网络地址转换( NAT )网关上的地址 转换关系到所述主叫终端或所述被叫终端所在的基站,以便于对所述主叫终端 和所述被叫终端进行本地交换。 6. The method according to any one of claims 1 to 5, further comprising: sending the address translation related to the calling terminal or the called terminal on the network address translation (NAT) gateway. The base station where the calling terminal or the called terminal is located is used to facilitate local switching of the calling terminal and the called terminal.
7、 如权利要求 1至 6任一项所述的方法, 其特征在于, 还包括: 当需要补充业务或合法监听时,通知所述主叫终端或所述被叫终端所在的 基站停止对所述主叫终端和所述被叫终端进行本地交换。 7. The method according to any one of claims 1 to 6, further comprising: when supplementary services or legal interception are required, notifying the base station where the calling terminal or the called terminal is located to stop monitoring all The calling terminal and the called terminal perform local switching.
8、 一种 IP语音交换的方法, 其特征在于, 包括: 8. An IP voice switching method, characterized by including:
接收交换控制装置发送的第一全局 ID信息或交换判断结果, 所述交换判 断结果是由所述交换控制装置根据第二全局 ID信息所判断出的; Receive the first global ID information or the switching judgment result sent by the switching control device, the switching judgment result is judged by the switching control device based on the second global ID information;
当接收到所述第一全局 ID信息时,根据所述第一全局 ID信息对所述主叫 终端和所述被叫终端进行本地交换; When receiving the first global ID information, performing local switching on the calling terminal and the called terminal according to the first global ID information;
当接收到所述交换判断结果时,根据所述交换判断结果对所述主叫终端和 所述被叫终端进行本地交换。 When the switching judgment result is received, local switching is performed on the calling terminal and the called terminal according to the switching judgment result.
9、 如权利要求 8所述的方法, 其特征在于, 9. The method of claim 8, characterized in that,
所述第一全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID; 所述第二全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。 The first global ID information includes the global ID of the base station and serving gateway where the calling terminal is located; the second global ID information includes the global ID of the base station and serving gateway where the calling terminal is located, and the base station and serving gateway where the called terminal is located. The global ID of the service gateway.
10、 如权利要求 9所述的方法, 其特征在于, 所述根据所述第一全局 ID 信息对所述主叫终端和所述被叫终端进行本地交换, 包括: 10. The method of claim 9, wherein performing local switching on the calling terminal and the called terminal according to the first global ID information includes:
根据所述第一全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与本地基站和本地服务网关相同; Determine whether 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 according to the first global ID information;
若判断为相同, 则对所述主叫终端和所述被叫终端进行本地交换; 若判断为不同,则进一步判断所述主叫终端所在的基站与所述本地基站之 间是否具有网络通信能力; If it is determined that they are the same, local switching is performed on the calling terminal and the called terminal; if it is determined that they are different, it is further determined whether the base station where the calling terminal is located and the local base station have network communication capabilities. ;
若判断为具有网络通信能力,则与所述主叫终端所在的基站建立本地交换 通道, 以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交 换。 If it is determined that the network communication capability is available, a local switching channel is established 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.
11、 如权利要求 9或 10所述的方法, 其特征在于, 所述根据所述交换判 断结果对所述主叫终端和所述被叫终端进行本地交换, 包括: 11. The method according to claim 9 or 10, wherein performing local switching on the calling terminal and the called terminal according to the switching judgment result includes:
当接收到的所述交换判断结果为所述主叫终端所在的基站和服务网关均 与所述被叫终端所在的基站和服务网关相同时,对所述主叫终端和所述被叫终 端进行本地交换; When the received exchange judgment result is that both the base station and the serving gateway where the calling terminal is located When the base station and serving gateway where the called terminal is located are the same, perform local switching on the calling terminal and the called terminal;
当接收到的所述交换判断结果为所述主叫终端所在的基站与所述被叫终 端所在的基站之间具有网络通信能力时,与所述主叫终端所在的基站建立本地 交换通道,以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地 交换。 When the received switching judgment result is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capabilities, a local switching channel is established with the base station where the calling terminal is located, so as to Local switching is performed on the calling terminal and the called terminal through the local switching channel.
12、 如权利要求 8至 11任一项所述的方法, 其特征在于, 还包括: 接收所述交换控制装置发送的所述主叫终端或所述被叫终端在网络地址 转换( NAT )网关上的地址转换关系, 以便于对所述主叫终端和所述被叫终端 进行本地交换; 或者, 12. The method according to any one of claims 8 to 11, further comprising: receiving the information of the calling terminal or the called terminal sent by the switching control device at the Network Address Translation (NAT) gateway. The address translation relationship on the network is to facilitate local switching between the calling terminal and the called terminal; or,
预设所述主叫终端或所述被叫终端在 NAT网关上的地址转换关系, 以便 于对所述主叫终端和所述被叫终端进行本地交换。 The address translation relationship of the calling terminal or the called terminal on the NAT gateway is preset to facilitate local switching of the calling terminal and the called terminal.
13、 如权利要求 10至 12任一项所述的方法, 其特征在于, 还包括: 当所述主叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述本地基站; 13. The method according to any one of claims 10 to 12, further comprising: when the base station where the calling terminal is located is switched to a target base station, switching the calling terminal and the called terminal Switch the local exchange relationship between the target base station and the local base station;
当所述被叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述主叫终端所在的基站。 When the base station where the called terminal is located is switched to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the base station where the calling terminal is located.
14、 一种交换控制装置, 其特征在于, 包括: 14. A switching control device, characterized in that it includes:
获取模块, 用于获取第一全局 ID信息或第二全局 ID信息; Acquisition module, used to obtain the first global ID information or the second global ID information;
发送模块, 用于当所述获取模块获取到第一全局 ID信息时, 发送所述第 一全局 ID信息到被叫终端所在的基站和服务网关, 以使所述被叫终端所在的 基站和服务网关在根据所述第一全局 ID信息判断出与主叫终端所在的基站和 服务网关之间的关系满足本地交换条件时,对所述主叫终端和所述被叫终端进 行本地交换; 通知模块, 用于当所述获取模块获取到第二全局 ID信息时, 根据所述第 二全局 ID信息通知所述主叫终端或所述被叫终端所在的基站对所述主叫终端 和所述被叫终端进行本地交换。 A sending module, configured to send the first global ID information to the base station and service gateway where the called terminal is located when the obtaining module obtains the first global ID information, so that the base station and service gateway where the called terminal is located When the gateway determines, based on the first global ID information, that the relationship between the base station and the serving gateway where the calling terminal is located satisfies local switching conditions, perform local switching on the calling terminal and the called terminal; Notification module, configured to notify the calling terminal or the base station where the called terminal is located of the calling terminal and the base station according to the second global ID information when the obtaining module obtains the second global ID information. The called terminal performs local switching.
15、 如权利要求 14所述的装置, 其特征在于, 所述获取模块包括: 第一通知上报单元, 用于通知策略与计费规則功能单元(PCRF ) 实体上 报主叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端 所在基站和所在服务网关的全局 ID作为第一全局 ID信息; 15. The device according to claim 14, wherein the acquisition module includes: a first notification reporting unit, configured to notify the Policy and Charging Rule Function Unit (PCRF) entity to report the base station and service where the calling terminal is located The global ID of the gateway, and the received global ID of the base station and serving gateway where the calling terminal is located as the first global ID information;
第二通知上报单元,用于通知 PCRF实体上报主叫终端所在基站和所在服 务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID, 并将接 收到的所述主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在 基站和所在服务网关的全局 ID作为第二全局 ID信息。 The second notification reporting unit is used to notify the PCRF entity to report the global ID of the base station and serving gateway where the calling terminal is located, and the global ID of the base station and serving gateway where the called terminal is located, and report the received location of the calling terminal. The global ID of the base station and the serving gateway where it is located, and the global ID of the base station and the serving gateway where the called terminal is located are used as the second global ID information.
16、 如权利要求 14或 15所述的装置, 其特征在于, 16. The device according to claim 14 or 15, characterized in that,
所述本地交换条件为所述主叫终端所在的基站和服务网关均与所述被叫 终端所在的基站和服务网关相同; 或者, The local exchange condition is that the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway 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 capabilities.
17、 如权利要求 14至 16任一项所述的装置, 其特征在于, 所述发送模块 包括: 17. The device according to any one of claims 14 to 16, characterized in that the sending module includes:
创建添加单元, 用于创建本地交换请求, 并将所述第一全局 ID信息添加 至所述本地交换请求; Create an adding unit, used to create a local switching request, and add the first global ID information to the local switching request;
请求发送单元,用于发送所述本地交换请求到所述被叫终端所在的基站和 服务网关。 A request sending unit is configured to send the local switching request to the base station and serving gateway where the called terminal is located.
18、 如权利要求 14至 17任一项所述的装置, 其特征在于, 所述通知模块 包括: 18. The device according to any one of claims 14 to 17, characterized in that, the notification module include:
第一判断单元, 用于根据所述第二全局 ID信息判断所述主叫终端所在的 基站和服务网关是否均与所述被叫终端所在的基站和服务网关相同; A first judgment unit configured to judge whether the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway where the called terminal is located based on the second global ID information;
通知交换单元, 用于若所述第一判断单元判断为相同, 则通知所述主叫终 端和所述被叫终端所在的相同的基站对所述主叫终端和所述被叫终端进行本 地交换; Notifying 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 judging unit determines that they are the same. ;
第二判断单元, 用于若所述第一判断单元判断为不同, 则进一步判断所述 主叫终端所在的基站与所述被叫终端所在的基站之间是否具有网络通信能力; 通知建立单元, 用于若所述第二判断单元判断为具有网络通信能力, 则通 知所述主叫终端或所述被叫终端所在的基站与对端基站建立本地交换通道,以 使所述主叫终端或所述被叫终端所在的基站通过所述本地交换通道对所述主 叫终端和所述被叫终端进行本地交换。 The second judgment unit is configured to further judge whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capabilities if the first judgment unit determines that they are different; notify the establishment unit, If the second judgment unit determines that it has network communication capability, notify the base station where the calling terminal or the called terminal is located to establish a local switching channel with the opposite base station, so that the calling terminal or the base station where the called terminal is located establishes a local switching channel. The base station where the called terminal is located performs local switching on the calling terminal and the called terminal through the local switching channel.
19、 如权利要求 14至 18任一项所述的装置, 其特征在于, 还包括: 转换关系发送模块,用于发送所述主叫终端或所述被叫终端在网络地址转 换( NAT )网关上的地址转换关系到所述主叫终端或所述被叫终端所在的基站, 以便于对所述主叫终端和所述被叫终端进行本地交换。 19. The device according to any one of claims 14 to 18, further comprising: a conversion relationship sending module, configured to send the information of the calling terminal or the called terminal to a Network Address Translation (NAT) gateway. The address translation on the base station is related to the base station where the calling terminal or the called terminal is located, so as to facilitate local switching of the calling terminal and the called terminal.
20、 如权利要求 14至 19任一项所述的装置, 其特征在于, 还包括: 通知停止交换模块,用于当需要补充业务或合法监听时,通知所述主叫终 端或所述被叫终端所在的基站停止对所述主叫终端和所述被叫终端进行本地 交换。 20. The device according to any one of claims 14 to 19, further comprising: a notification stop switching module, configured to notify the calling terminal or the called party when supplementary services or legal interception are required. The base station where the terminal is located stops performing local switching on the calling terminal and the called terminal.
21、 一种基站, 其特征在于, 包括: 21. A base station, characterized by including:
接收模块, 用于接收交换控制装置发送的第一全局 ID信息或交换判断结 果, 所述交换判断结果是由所述交换控制装置根据第二全局 ID信息所判断出 的; 第一本地交换模块, 用于当接收到所述第一全局 ID信息时, 根据所述第 一全局 ID信息对所述主叫终端和所述被叫终端进行本地交换; A receiving module, configured to receive the first global ID information or the exchange judgment result sent by the exchange control device, the exchange judgment result being judged by the exchange control device based on the second global ID information; A first local switching module, configured to perform local switching on the calling terminal and the called terminal according to the first global ID information when receiving the first global ID information;
第二本地交换模块,用于当接收到所述交换判断结果时,根据所述交换判 断结果对所述主叫终端和所述被叫终端进行本地交换。 The second local switching module is configured to, when receiving the switching judgment result, perform local switching on the calling terminal and the called terminal according to the switching judgment result.
22、 如权利要求 21所述的基站, 其特征在于, 22. The base station according to claim 21, characterized in that,
所述第一全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID; 所述第二全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。 The first global ID information includes the global ID of the base station and serving gateway where the calling terminal is located; the second global ID information includes the global ID of the base station and serving gateway where the calling terminal is located, and the base station and serving gateway where the called terminal is located. The global ID of the service gateway.
23、 如权利要求 22所述的基站, 其特征在于, 所述第一本地交换模块包 括: 23. The base station according to claim 22, wherein the first local switching module includes:
第一本地判断单元, 用于根据所述第一全局 ID信息判断所述主叫终端所 在的基站和服务网关是否均与本地基站和本地服务网关相同; A first local judgment unit, configured to judge whether 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 based on the first global ID information;
第一交换单元, 用于若所述第一本地判断单元判断为相同, 则对所述主叫 终端和所述被叫终端进行本地交换; The first switching unit is configured to perform local switching on the calling terminal and the called terminal if the first local judgment unit determines that they are the same;
第二本地判断单元,用于若所述第一本地判断单元判断为不同, 则进一步 判断所述主叫终端所在的基站与所述本地基站之间是否具有网络通信能力; 第一建立单元, 用于若所述第二本地判断单元判断为具有网络通信能力, 则与所述主叫终端所在的基站建立本地交换通道,以通过所述本地交换通道对 所述主叫终端和所述被叫终端进行本地交换。 The second local judgment unit is configured to further judge whether the base station where the calling terminal is located and the local base station have network communication capabilities if the first local judgment unit judges that they are different; the first establishment unit is used to If the second local judgment unit determines that it has network communication capabilities, it establishes a local switching channel with the base station where the calling terminal is located, so as to communicate with the calling terminal and the called terminal through the local switching channel. Perform local exchange.
24、 如权利要求 22或 23所述的基站, 其特征在于, 所述第二本地交换模 块包括: 24. The base station according to claim 22 or 23, characterized in that the second local switching module includes:
第二交换单元,用于当接收到的所述交换判断结果为所述主叫终端所在的 基站和服务网关均与所述被叫终端所在的基站和服务网关相同时,对所述主叫 终端和所述被叫终端进行本地交换; 第二建立单元,用于当接收到的所述交换判断结果为所述主叫终端所在的 基站与所述被叫终端所在的基站之间具有网络通信能力时,与所述主叫终端所 在的基站建立本地交换通道,以通过所述本地交换通道对所述主叫终端和所述 被叫终端进行本地交换。 The second switching unit is configured to send a signal to the calling terminal when the received switching judgment result is that the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway where the called terminal is located. Perform local switching with the called terminal; The second establishment unit is configured to, when the received exchange judgment result indicates that there is network communication capability between the base station where the calling terminal is located and the base station where the called terminal is located, and the base station where the calling terminal is located. The base station establishes a local switching channel to perform local switching on the calling terminal and the called terminal through the local switching channel.
25、 如权利要求 21至 24任一项所述的基站, 其特征在于, 还包括: 转换关系接收模块,用于接收所述交换控制装置发送的所述主叫终端或所 述被叫终端在网络地址转换( NAT )网关上的地址转换关系, 以便于对所述主 叫终端和所述被叫终端进行本地交换; 25. The base station according to any one of claims 21 to 24, further comprising: a conversion relationship receiving module, configured to receive the information of the calling terminal or the called terminal sent by the switching control device. The address translation relationship on the Network Address Translation (NAT) gateway to facilitate local switching of the calling terminal and the called terminal;
预设模块, 用于预设所述主叫终端或所述被叫终端在 NAT网关上的地址 转换关系, 以便于对所述主叫终端和所述被叫终端进行本地交换。 A preset module is used to preset the address translation relationship of the calling terminal or the called terminal on the NAT gateway, so as to facilitate local switching of the calling terminal and the called terminal.
26、 如权利要求 23至 25任一项所述的基站, 其特征在于, 还包括: 第一切换模块, 用于当所述主叫终端所在的基站切换至目标基站时,将所 述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站和所述 本地基站; 26. The base station according to any one of claims 23 to 25, further comprising: a first switching module, configured to switch the calling terminal when the base station where the calling terminal is located switches to the target base station. The local exchange relationship between the terminal and the called terminal is switched to the target base station and the local base station;
第二切换模块, 用于当所述被叫终端所在的基站切换至目标基站时,将所 述主叫终端和所述被叫终端之间的本地交换关系切换至所述目标基站和所述 主叫终端所在的基站。 The second switching module is configured to switch the local exchange relationship between the calling terminal and the called terminal to the target base station and the calling terminal when the base station where the called terminal is located is switched to the target base station. Call the base station where the terminal is located.
27、 一种计算机存储介质, 其特征在于, 27. A computer storage medium characterized by:
所述计算机存储介质可存储有程序, 该程序执行时包括如权利要求 1至 7 任一项所述的步骤。 The computer storage medium may store a program, which when executed includes the steps described in any one of claims 1 to 7.
28、 一种计算机存储介质, 其特征在于, 28. A computer storage medium characterized by:
所述计算机存储介质可存储有程序, 该程序执行时包括如权利要求 8 至 13任一项所述的步骤。 The computer storage medium may store a program, which when executed includes the steps described in any one of claims 8 to 13.
29、一种交换控制装置, 其特征在于, 包括: 处理器、通信接口和存储器, 其中, 29. A switching control device, characterized in that it includes: a processor, a communication interface and a memory, wherein,
所述通信接口, 用于与基站和服务网关通信; The communication interface is used to communicate with the base station and the service gateway;
所述存储器用于存储程序; The memory is used to store programs;
所述处理器用于执行所述程序, 以实现 The processor is used to execute the program to implement
获取第一全局 ID信息或第二全局 ID信息; Obtain the first global ID information or the second global ID information;
当获取到第一全局 ID信息时,发送所述第一全局 ID信息到被叫终端所在 的基站和服务网关,以使所述被叫终端所在的基站和服务网关在根据所述第一 全局 ID信息判断出与主叫终端所在的基站和服务网关之间的关系满足本地交 换条件时, 对所述主叫终端和所述被叫终端进行本地交换; When the first global ID information is obtained, the first global ID information is sent to the base station and the serving gateway where the called terminal is located, so that the base station and the serving gateway where the called terminal is located are configured according to the first global ID. When the information determines that the relationship between the base station and the serving gateway where the calling terminal is located satisfies local exchange conditions, local exchange is performed between the calling terminal and the called terminal;
当获取到第二全局 ID信息时,根据所述第二全局 ID信息通知所述主叫终 端或所述被叫终端所在的基站对所述主叫终端和所述被叫终端进行本地交换。 When the second global ID information is obtained, the base station where the calling terminal or the called terminal is located is notified to perform local switching on the calling terminal and the called terminal according to the second global ID information.
30、 如权利要求 29所述的装置, 其特征在于, 所述处理器具体用于: 通知策略与计费规则功能单元(PCRF ) 实体上报主叫终端所在基站和所 在服务网关的全局 ID, 并将接收到的所述主叫终端所在基站和所在服务网关 的全局 ID作为第一全局 ID信息; 或者, 30. The device according to claim 29, wherein the processor is specifically configured to: notify the Policy and Charging Rules Function Unit (PCRF) entity to report the global ID of the base station and serving gateway where the calling terminal is located, and Use the received global ID of the base station and serving gateway where the calling terminal is located as the first global ID information; or,
通知 PCRF实体上报主叫终端所在基站和所在服务网关的全局 ID、 以及 被叫终端所在基站和所在服务网关的全局 ID, 并将接收到的所述主叫终端所 在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的 全局 ID作为第二全局 ID信息。 Notify the PCRF entity to report the global ID of the base station and serving gateway where the calling terminal is located, and the global ID of the base station and serving gateway where the called terminal is located, and receive the global ID of the base station and serving gateway where the calling terminal is located. , and the global ID of the base station and serving gateway where the called terminal is located as the second global ID information.
31、 如权利要求 29或 30所述的装置, 其特征在于, 31. The device according to claim 29 or 30, characterized in that,
所述本地交换条件为所述主叫终端所在的基站和服务网关均与所述被叫 终端所在的基站和服务网关相同; 或者, The local exchange condition is that the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway 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 capabilities.
32、 如权利要求 29至 31任一项所述的装置, 其特征在于, 所述处理器具 体用于: 32. The device according to any one of claims 29 to 31, characterized in that the processor is specifically used to:
创建本地交换请求,并将所述第一全局 ID信息添加至所述本地交换请求; 发送所述本地交换请求到所述被叫终端所在的基站和服务网关。 Create a local switching request, and add the first global ID information to the local switching request; Send the local switching request to the base station and serving gateway where the called terminal is located.
33、 如权利要求 29至 32任一项所述的装置, 其特征在于, 所述处理器具 体用于: 33. The device according to any one of claims 29 to 32, characterized in that the processor is specifically used to:
根据所述第二全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与所述被叫终端所在的基站和服务网关相同; Determine whether the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway where the called terminal is located based on the second global ID information;
若判断为相同,则通知所述主叫终端和所述被叫终端所在的相同的基站对 所述主叫终端和所述被叫终端进行本地交换; If it is determined that they are the same, 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 it is determined that they are different, it is further determined whether the base station where the calling terminal is located and the base station where the called terminal is located have network communication capabilities;
若判断为具有网络通信能力,则通知所述主叫终端或所述被叫终端所在的 基站与对端基站建立本地交换通道,以使所述主叫终端或所述被叫终端所在的 基站通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交换。 If it is determined that it has network communication capabilities, the base station where the calling terminal or the called terminal is located is notified to establish a local switching channel with the opposite end base station, so that the calling terminal or the base station where the called terminal is located passes. The local switching channel performs local switching on the calling terminal and the called terminal.
34、 如权利要求 29至 33任一项所述的装置, 其特征在于, 所述处理器还 用于: 34. The device according to any one of claims 29 to 33, characterized in that the processor is also used for:
发送所述主叫终端或所述被叫终端在网络地址转换( NAT )网关上的地址 转换关系到所述主叫终端或所述被叫终端所在的基站,以便于对所述主叫终端 和所述被叫终端进行本地交换。 Sending the address translation of the calling terminal or the called terminal on the network address translation (NAT) gateway is related to the base station where the calling terminal or the called terminal is located, so as to facilitate the communication between the calling terminal and the base station where the called terminal is located. The called terminal performs local switching.
35、 如权利要求 29至 34任一项所述的装置, 其特征在于, 所述处理器还 用于: 35. The device according to any one of claims 29 to 34, characterized in that the processor is also used for:
当需要补充业务或合法监听时,通知所述主叫终端或所述被叫终端所在的 基站停止对所述主叫终端和所述被叫终端进行本地交换。 When supplementary services or legal interception are required, the base station where the calling terminal or the called terminal is located is notified to stop performing local switching on the calling terminal and the called terminal.
36、 一种基站, 其特征在于, 包括: 处理器、 通信接口和存储器, 其中, 所述通信接口, 用于与交换控制装置进行通信; 36. A base station, characterized in that it includes: a processor, a communication interface and a memory, wherein the communication interface is used to communicate with a switching control device;
所述存储器用于存储程序; The memory is used to store programs;
所述处理器用于执行所述程序, 以实现 The processor is used to execute the program to implement
接收交换控制装置发送的第一全局 ID信息或交换判断结果, 所述交换判 断结果是由所述交换控制装置根据第二全局 ID信息所判断出的; Receive the first global ID information or the switching judgment result sent by the switching control device, the switching judgment result is judged by the switching control device based on the second global ID information;
当接收到所述第一全局 ID信息时,根据所述第一全局 ID信息对所述主叫 终端和所述被叫终端进行本地交换; When receiving the first global ID information, performing local switching on the calling terminal and the called terminal according to the first global ID information;
当接收到所述交换判断结果时,根据所述交换判断结果对所述主叫终端和 所述被叫终端进行本地交换。 When the switching judgment result is received, local switching is performed on the calling terminal and the called terminal according to the switching judgment result.
37、 如权利要求 36所述的基站, 其特征在于, 37. The base station according to claim 36, characterized in that,
所述第一全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID; 所述第二全局 ID信息包括主叫终端所在基站和所在服务网关的全局 ID、 以及被叫终端所在基站和所在服务网关的全局 ID。 The first global ID information includes the global ID of the base station and serving gateway where the calling terminal is located; the second global ID information includes the global ID of the base station and serving gateway where the calling terminal is located, and the base station and serving gateway where the called terminal is located. The global ID of the service gateway.
38、 如权利要求 37所述的基站, 其特征在于, 所述处理器具体用于: 根据所述第一全局 ID信息判断所述主叫终端所在的基站和服务网关是否 均与本地基站和本地服务网关相同; 38. The base station according to claim 37, wherein the processor is specifically configured to: determine whether the base station and the serving gateway where the calling terminal is located are both consistent with the local base station and the local base station according to the first global ID information. The service gateway is the same;
若判断为相同, 则对所述主叫终端和所述被叫终端进行本地交换; 若判断为不同,则进一步判断所述主叫终端所在的基站与所述本地基站之 间是否具有网络通信能力; If it is determined that they are the same, local switching is performed on the calling terminal and the called terminal; if it is determined that they are different, it is further determined whether the base station where the calling terminal is located and the local base station have network communication capabilities. ;
若判断为具有网络通信能力,则与所述主叫终端所在的基站建立本地交换 通道, 以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地交 换。 If it is determined that the network communication capability is available, a local switching channel is established 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.
39、如权利要求 37或 38所述的基站,其特征在于,所述处理器具体用于: 当接收到的所述交换判断结果为所述主叫终端所在的基站和服务网关均 与所述被叫终端所在的基站和服务网关相同时,对所述主叫终端和所述被叫终 端进行本地交换; 39. The base station according to claim 37 or 38, characterized in that the processor is specifically configured to: When the received exchange judgment result is that the base station and serving gateway where the calling terminal is located are the same as the base station and serving gateway where the called terminal is located, the calling terminal and the called terminal are local exchange;
当接收到的所述交换判断结果为所述主叫终端所在的基站与所述被叫终 端所在的基站之间具有网络通信能力时,与所述主叫终端所在的基站建立本地 交换通道,以通过所述本地交换通道对所述主叫终端和所述被叫终端进行本地 交换。 When the received switching judgment result is that the base station where the calling terminal is located and the base station where the called terminal is located have network communication capabilities, a local switching channel is established with the base station where the calling terminal is located, so as to Local switching is performed on the calling terminal and the called terminal through the local switching channel.
40、 如权利要求 36至 39任一项所述的基站, 其特征在于, 所述处理器还 用于: 40. The base station according to any one of claims 36 to 39, characterized in that the processor is further used to:
接收所述交换控制装置发送的所述主叫终端或所述被叫终端在网络地址 转换(NAT )网关上的地址转换关系, 以便于对所述主叫终端和所述被叫终端 进行本地交换; 或者, Receive the address translation relationship of the calling terminal or the called terminal on the network address translation (NAT) gateway sent by the switching control device, so as to facilitate local switching of the calling terminal and the called terminal. ; or,
预设所述主叫终端或所述被叫终端在 NAT网关上的地址转换关系, 以便 于对所述主叫终端和所述被叫终端进行本地交换。 The address translation relationship of the calling terminal or the called terminal on the NAT gateway is preset to facilitate local switching of the calling terminal and the called terminal.
41、 如权利要求 38至 40任一项所述的基站, 其特征在于, 所述处理器还 用于: 41. The base station according to any one of claims 38 to 40, characterized in that the processor is further used to:
当所述主叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述本地基站; When the base station where the calling terminal is located is switched to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the local base station;
当所述被叫终端所在的基站切换至目标基站时,将所述主叫终端和所述被 叫终端之间的本地交换关系切换至所述目标基站和所述主叫终端所在的基站。 When the base station where the called terminal is located is switched to the target base station, the local exchange relationship between the calling terminal and the called terminal is switched to the target base station and the base station where the calling terminal is located.
PCT/CN2014/076998 2014-05-08 2014-05-08 Voip exchange method and relevant device WO2015168890A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480020973.XA CN105264962B (en) 2014-05-08 2014-05-08 A kind of method and relevant device of ip voice exchange
PCT/CN2014/076998 WO2015168890A1 (en) 2014-05-08 2014-05-08 Voip exchange method and relevant device

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 (1)

Publication Number Publication Date
WO2015168890A1 true WO2015168890A1 (en) 2015-11-12

Family

ID=54391978

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076998 WO2015168890A1 (en) 2014-05-08 2014-05-08 Voip exchange method and relevant device

Country Status (2)

Country Link
CN (1) CN105264962B (en)
WO (1) WO2015168890A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011113207A1 (en) * 2010-03-19 2011-09-22 上海贝尔股份有限公司 Method and device for service switch

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101180843B (en) * 2005-05-25 2012-09-05 艾利森电话股份有限公司 Device, system and method for operating telecom network
CN101873574B (en) * 2009-04-22 2015-03-25 华为技术有限公司 Point-to-point data exchange method and wireless access device and system for wireless network
CN102687558B (en) * 2010-03-19 2016-01-20 上海贝尔股份有限公司 The method of local exchange and device between many base stations

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011113207A1 (en) * 2010-03-19 2011-09-22 上海贝尔股份有限公司 Method and device for service switch

Also Published As

Publication number Publication date
CN105264962B (en) 2019-06-28
CN105264962A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
EP2314103B1 (en) Method and apparatus for routing of a bearer path in an internet protocol multimedia subsystem-based communication system
US9648051B2 (en) System and method for transitioning a communication session between networks that are not commonly controlled
TWI583234B (en) Internet protocol (ip) multimedia subsystem (ims) capable device and method implemented thereby
US8279832B2 (en) Method, system and device for converting session control signaling
WO2008059570A1 (en) Communication terminal apparatus, communication system and seamless handover method
WO2009056059A1 (en) Method, system and device of call forwarding
US8964637B2 (en) Enabling local switching in mobile radio networks
CN106454977B (en) Call service switching method and device for terminal
WO2016010595A1 (en) Managing data streams for a communication network
US20140079023A1 (en) Method of Internet Protocol (IP) to IP handover
WO2011060721A1 (en) Method and apparatus for monitoring service quality
WO2015062454A1 (en) Audio and video call method, device and system
US20130223437A1 (en) Connection Control with B2BUA Located Behind NAT Gateway
JP4940335B2 (en) Telephone exchange apparatus, telephone terminal, and control method used in telephone system
US8233400B2 (en) Methods, systems, and computer readable media for verifying the availability of an internet protocol (IP) media router during a call setup
WO2015168890A1 (en) Voip exchange method and relevant device
WO2012103792A1 (en) Handover method and system
KR101383031B1 (en) Voice message service method in call impossibility situation, packet service system and apparatus thereof
KR20120056987A (en) Method for call setup based on fmc communication and call connection infra
CN108881239B (en) Software telephone, roaming method thereof and soft switch equipment
JP6689150B2 (en) Gateway device and transfer method
EP2836013A1 (en) Systems and methods for handoff of a mobile telephone call in a VOIP environment
WO2010133179A1 (en) Switching method, apparatus and system for realizing circuit switching (cs)
JP2016059011A (en) Mobile communication system, call control device, and call control method
KR20070063788A (en) Access gateway providing voice over internet protocol service and method thereof

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480020973.X

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14891174

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14891174

Country of ref document: EP

Kind code of ref document: A1