[go: up one dir, main page]

CN1738267A - Method for realizing media stream bypass - Google Patents

Method for realizing media stream bypass Download PDF

Info

Publication number
CN1738267A
CN1738267A CNA2004100570213A CN200410057021A CN1738267A CN 1738267 A CN1738267 A CN 1738267A CN A2004100570213 A CNA2004100570213 A CN A2004100570213A CN 200410057021 A CN200410057021 A CN 200410057021A CN 1738267 A CN1738267 A CN 1738267A
Authority
CN
China
Prior art keywords
user
media stream
user terminal
address
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2004100570213A
Other languages
Chinese (zh)
Other versions
CN100353720C (en
Inventor
姚鑫
袁莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100570213A priority Critical patent/CN100353720C/en
Publication of CN1738267A publication Critical patent/CN1738267A/en
Application granted granted Critical
Publication of CN100353720C publication Critical patent/CN100353720C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及一种实现媒体流旁路的方法。该方法首先从报文中获取主叫用户终端和被叫用户终端的位置信息;根据所述的位置信息判断主叫用户终端和被叫用户终端是否属于同一预置的用户组,若主叫用户终端和被叫用户终端属于同一个用户组,则维持代理端用户的媒体流地址保持不变,否则将代理端用户的媒体流地址替换为代理的地址;最后继续呼叫处理。由于本方法中,对于满足媒体流旁路条件的用户,不再改变其在信令报文中携带的媒体流地址信息,使得用户的媒体流在终端之间直接互通,实现了媒体流的旁路,因而减少了媒体流对网络带宽资源的占用,降低了对代理设备转发性能的依赖。

The invention relates to a method for realizing media flow bypass. The method first obtains the location information of the calling user terminal and the called user terminal from the message; judges whether the calling user terminal and the called user terminal belong to the same preset user group according to the location information, if the calling user terminal If the terminal and the called user terminal belong to the same user group, then the media stream address of the agent user remains unchanged, otherwise, the media stream address of the agent user is replaced with the address of the agent; finally, call processing is continued. Because in this method, for users who meet the media stream bypass conditions, the media stream address information carried in the signaling message is no longer changed, so that the user's media streams are directly intercommunicated between terminals, and media stream bypassing is realized. Therefore, the occupation of network bandwidth resources by media streams is reduced, and the dependence on the forwarding performance of proxy devices is reduced.

Description

实现媒体流旁路的方法Methods for implementing media stream bypass

技术领域technical field

本发明涉及一种多媒体通信技术,尤其是涉及一种基于网际协议的多媒体通信中实现媒体流旁路功能的方法。The invention relates to a multimedia communication technology, in particular to a method for realizing the media flow bypass function in the multimedia communication based on the Internet protocol.

背景技术Background technique

软交换和分组交换技术由于具有广阔的应用前景和可以满足人们多样化、个性化的业务需求,已成为业界最关注的热点之一。Softswitch and packet switching technology has become one of the most concerned hotspots in the industry because of its broad application prospects and the ability to meet people's diverse and personalized business needs.

代理(PROXY)是以上述技术为核心的网络(尤以下一代网络(NGN)为代表)中的重要技术之一。一般的PROXY由信令代理及媒体代理组成,信令代理及媒体代理的工作原理如图1所示。Proxy (PROXY) is one of the important technologies in the network (especially represented by Next Generation Network (NGN)) with the above-mentioned technologies as the core. A general PROXY is composed of a signaling proxy and a media proxy. The working principles of the signaling proxy and the media proxy are shown in FIG. 1 .

信令代理(SP,Signalling Proxy):Signaling Proxy (SP, Signaling Proxy):

PROXY对终端来说,可看作是软交换系统,即终端的注册和呼叫消息都会先发给PROXY,PROXY经过信令处理后再转发给核心软交换系统。另一方面,PROXY对核心软交换系统又可看作是终端,软交换系统首先将呼叫被叫的请求先发给PROXY,PROXY经过信令处理后再转发给真正的被叫用户终端。一般PROXY需要支持SIP、H.323、MGCP、H.248等协议中的一种或多种。由于PROXY参与了整个呼叫流程,因此PROXY可以获取相应的用户注册、呼叫等详细信息。For the terminal, the PROXY can be regarded as a softswitch system, that is, the registration and call messages of the terminal will be sent to the PROXY first, and the PROXY will be forwarded to the core softswitch system after signaling processing. On the other hand, the PROXY can be regarded as a terminal to the core softswitch system. The softswitch system first sends the call request to the PROXY, and the PROXY forwards it to the real called user terminal after signaling processing. Generally, the PROXY needs to support one or more of the protocols such as SIP, H.323, MGCP, and H.248. Since the PROXY participates in the entire call process, the PROXY can obtain the corresponding user registration, call and other detailed information.

媒体代理(MP,Media Proxy):Media Proxy (MP, Media Proxy):

PROXY进行媒体流的代理。所有PROXY所代理的用户与外界互通的媒体流都经过PROXY进行处理和转发。当PROXY下的用户作为主叫用户终端时,所看到的被叫地址来自于PROXY;当PROXY下的用户作为被叫用户终端时,主叫用户终端看到的被叫地址为PROXY的地址。PROXY Proxy for media streaming. All the media streams that the users represented by the PROXY communicate with the outside world are processed and forwarded by the PROXY. When the user under PROXY serves as the calling user terminal, the called address seen by the PROXY comes from PROXY; when the user under PROXY serves as the called user terminal, the called address seen by the calling user terminal is the address of PROXY.

图1描述了信令流及媒体流的代理过程示意图。终端的信令流通过代理最终到服务器进行处理,同时媒体流也通过代理进行中转。在图1所示环境中,信令报文数目一般较少,通常一个呼叫大约在10个信令报文左右,而媒体流一秒钟就会有30~50个报文。媒体流通过PROXY进行中转具有一些优点,比如PROXY可以为媒体流标注QoS等级标识或者提供合法侦听等功能。同时媒体流通过PROXY进行中转也存在一些的问题:FIG. 1 depicts a schematic diagram of a proxy process for signaling streams and media streams. The signaling flow of the terminal is finally processed by the server through the agent, and the media flow is also transferred through the agent. In the environment shown in Figure 1, the number of signaling packets is generally small, usually about 10 signaling packets for a call, and 30 to 50 packets per second for a media stream. Transiting media streams through the PROXY has some advantages. For example, the PROXY can mark the media stream with a QoS level identifier or provide functions such as legal interception. At the same time, there are also some problems in the transfer of media streams through PROXY:

1)对PROXY设备性能要求较高:由于每秒钟PROXY需要处理30-50个媒体流的报文,在用户数较多的情况下,PROXY就必须具备较高的性能才有能力进行媒体流的转发。1) High performance requirements for PROXY equipment: Since PROXY needs to process 30-50 media stream messages per second, in the case of a large number of users, PROXY must have high performance to be able to perform media streams forwarding.

2)媒体流占用较大网络带宽资源:媒体流都通过PROXY进行中转,对通信网网络带宽的占用较严重,尤其是在有视频应用的情况下,网络将不得不将更高的带宽资源用于媒体流的传输。2) Media streams occupy large network bandwidth resources: Media streams are all transferred through PROXY, which seriously occupies the network bandwidth of the communication network. Especially in the case of video applications, the network will have to use higher bandwidth resources for the transmission of media streams.

因此,目前的基于网际协议的多媒体通信中存在实现媒体流旁路的需求,也就是需要媒体流直接在终端之间进行传输,而不通过PROXY进行代理,如图2所示。Therefore, there is a need to realize media stream bypass in the current multimedia communication based on the Internet protocol, that is, the media stream needs to be directly transmitted between terminals without being proxied through a PROXY, as shown in FIG. 2 .

发明内容Contents of the invention

本发明所要解决的技术问题是提供一种媒体流旁路的方法,这种方法使预置在同一用户组中的用户的媒体流直接在终端间实现互通,可以满足多媒体通信中对实现媒体流旁路的需求。The technical problem to be solved by the present invention is to provide a method for bypassing media streams. This method enables the media streams of users preset in the same user group to directly communicate between terminals, which can meet the requirements for realizing media streams in multimedia communications. Bypass needs.

为解决上述问题,本发明提供了一种实现媒体流旁路的方法,其方法具体为:从报文中获取主叫用户终端和被叫用户终端的位置信息;根据所获得的位置信息判断主叫用户终端和被叫用户终端是否属于同一预置的用户组,若主叫用户终端和被叫用户终端属于同一个用户组,则维持代理端用户的媒体流地址保持不变,否则将代理端用户的媒体流地址替换为代理的地址;最后继续进行呼叫处理。In order to solve the above problems, the present invention provides a method for realizing media stream bypass, the method specifically includes: obtaining the location information of the calling user terminal and the called user terminal from the message; Whether the calling user terminal and the called user terminal belong to the same preset user group, if the calling user terminal and the called user terminal belong to the same user group, the media stream address of the agent user remains unchanged, otherwise the agent end The user's media stream address is replaced with the proxy's address; finally call processing continues.

本方法中所述的位置信息为用户身份标识信息或IP地址,并且在获取主叫用户终端和被叫用户终端的位置信息的过程中,首先应先取用户的身份标识作为用户的位置信息,当无法获取所述身份标识时,获取用户的IP地址作为用户的位置信息。当位置信息为用户的IP地址时,为了能够进一步再获取到用户的身份标识信息,可以对主叫用户终端和被叫用户终端是否属于同一个代理进行判断,如果是,则根据获取的用户IP地址反向查找主叫用户终端的呼叫信息,并从该呼叫信息中获取该主叫用户终端的身份标识信息。The location information described in this method is user identity information or IP address, and in the process of obtaining the location information of the calling user terminal and the called user terminal, firstly, the user's identity should be taken as the user's location information, when When the identity identifier cannot be obtained, obtain the user's IP address as the user's location information. When the location information is the user's IP address, in order to further obtain the user's identity information, it can be judged whether the calling user terminal and the called user terminal belong to the same agent, and if so, according to the obtained user IP address The address is reversely searched for the call information of the calling user terminal, and the identity information of the calling user terminal is obtained from the call information.

在判断主叫用户终端和被叫用户终端是否属于同一预置的用户组的过程中,可以先选择代理端的用户,根据该用户的位置信息确定该用户所属的用户组,再判断另一用户是否属于该代理端用户所属的用户组。In the process of judging whether the calling user terminal and the called user terminal belong to the same preset user group, you can first select the user on the agent side, determine the user group to which the user belongs according to the location information of the user, and then judge whether the other user Belongs to the user group to which the agent user belongs.

为了实现本发明的方法,需要建立用户组表,该用户组表中应包括需要进行媒体流旁路的用户身份标识域,以及该用户身份标识域对应的IP地址域。该用户组表中分别定义用于实现媒体流旁路的用户组,并且所述的用户组由在IP层具有直接互通能力的用户组成。In order to realize the method of the present invention, a user group table needs to be established, and the user group table should include the user identification field that needs to bypass the media flow, and the IP address field corresponding to the user identification field. The user group table defines user groups used to implement media stream bypass, and the user groups are composed of users with direct intercommunication capabilities at the IP layer.

相对于现有技术,本发明带来的有益效果是:由于本发明提供的方法中,对于满足媒体流旁路条件的用户,不再改变其在信令报文中携带的媒体流地址信息,从而实现了同一用户组中的用户的媒体流在终端之间的直接互通,使得原来需要通过代理进行处理的属于同一用户组的媒体流可以不再经过IP网的传输和代理的处理,因而减少了媒体流对网络带宽资源的占用,减轻了网络的负荷,同时降低了对代理设备转发性能的依赖,使得代理的报文转发性能不再成为业务量提高时限制多媒体通信的主要因素之一。Compared with the prior art, the beneficial effects brought by the present invention are: in the method provided by the present invention, for users who meet the media stream bypass conditions, the media stream address information carried in the signaling message is no longer changed, In this way, the media streams of users in the same user group can be directly intercommunicated between terminals, so that the media streams belonging to the same user group that originally need to be processed through the proxy can no longer be transmitted through the IP network and processed by the proxy, thus reducing It reduces the occupation of network bandwidth resources by media streams, reduces the load on the network, and at the same time reduces the dependence on the forwarding performance of proxy equipment, so that the packet forwarding performance of the proxy is no longer one of the main factors that limit multimedia communication when the business volume increases.

附图说明Description of drawings

图1是代理在下一代网络NGN中的组网结构示意图;Fig. 1 is a schematic diagram of the network structure of the agent in the next generation network NGN;

图2是下一代网络NGN中实现媒体流旁路的示意图;Fig. 2 is the schematic diagram that realizes media flow bypass in the next generation network NGN;

图3是一不能实现媒体流旁路的网络结构例图;Fig. 3 is an example diagram of a network structure that cannot realize media flow bypass;

图4是代理端用户作为主叫时实现媒体流旁路的流程图;Fig. 4 is the flow chart that realizes media flow bypass when agent end user is as calling party;

图5是代理端用户作为被叫时实现媒体流旁路的流程图。Fig. 5 is a flow chart of implementing media stream bypass when the agent user is called.

具体实施方式Detailed ways

本发明提供了一种实现媒体流旁路的方法,这种方法适合在代理(PROXY)设备上实现,但是并不局限于专用的代理设备,也可以在具有PROXY功能的其他设备上实现此方法。The present invention provides a method for realizing media stream bypass, which is suitable for realization on proxy (PROXY) equipment, but is not limited to dedicated proxy equipment, and can also be implemented on other equipment with PROXY function .

在VoIP系统中,终端之间通过信令协议协商媒体流的地址。在有PROXY参与的情况下,PROXY将终端的媒体流地址更改为PROXY的地址,因此实现媒体流旁路的关键之一是不修改终端在信令报文中携带的媒体流地址信息,直接将原始的媒体流地址信息传给通信对端。但不是所有的组网结构都能够实现媒体流的旁路,图3所示为无法实现媒体流旁路的一种情况,终端1与终端2分别在不同的网络地址转换(NAT)设备下,而且NAT不支持应用层网关(ALG,Application Layer Gateway),如果直接将两个终端的地址告知对方,这两个终端将无法进行通话。除图3所示情况外,还存在其他无法实现媒体流旁路的情况,如用户终端不同属于一个防火墙等。因此,媒体流的旁路功能只能在确认终端间可以直接互通的时候才可以具体实现。In the VoIP system, terminals negotiate the addresses of media streams through signaling protocols. In the case of PROXY participation, PROXY changes the media stream address of the terminal to the address of PROXY, so one of the keys to realize media stream bypass is to directly transfer The original media stream address information is sent to the communication peer. However, not all networking structures can achieve media stream bypass. Figure 3 shows a situation where media stream bypass cannot be achieved. Terminal 1 and Terminal 2 are under different network address translation (NAT) devices. Moreover, NAT does not support Application Layer Gateway (ALG, Application Layer Gateway). If the addresses of the two terminals are directly informed to each other, the two terminals will not be able to communicate. In addition to the situation shown in Figure 3, there are other situations where media stream bypass cannot be implemented, such as different user terminals belonging to the same firewall. Therefore, the bypass function of the media stream can only be implemented when it is confirmed that the terminals can directly communicate with each other.

由于IP地址的分配比较复杂,IP地址存在着重叠等情况,因而PROXY设备无法仅根据IP地址判断终端之间是否可以直接互通,因此需要另外的信息参与判断。本发明采用用户身份标识(ID)信息与用户IP地址配合使用的方式判断是否可以进行媒体流旁路的具体实现。Due to the complex allocation of IP addresses and overlapping of IP addresses, the PROXY device cannot judge whether terminals can directly communicate with each other based on IP addresses, so additional information is required to participate in the judgment. The present invention adopts the mode of cooperative use of user identity (ID) information and user IP address to judge whether the media stream bypass can be implemented specifically.

媒体流旁路的实现因为代理所在的呼叫方不同可分为主叫流程中媒体流旁路的实现和被叫流程中媒体流旁路的实现。The realization of the media flow bypass can be divided into the realization of the media flow bypass in the calling process and the realization of the media flow bypass in the called process because the calling party where the agent is located is different.

首先,为了实现本发明所提供的实现媒体流旁路的方法,需要预先定义用户组,即将需要采用媒体流旁路并且可以进行媒体流旁路的用户的定义为一个媒体流旁路的用户组,且该用户组由在IP层具有直接互通能力的用户组成。影响用户具有直接互通能力的因素包括:用户终端不同属于一个防火墙;用户终端分别属于不同的NAT,并且NAT又不支持应用层网关ALG等情况只有在同一用户组中进行了定义的不同用户才可以相互之间实现媒体流的旁路。First, in order to implement the method for realizing media stream bypass provided by the present invention, user groups need to be defined in advance, that is, users who need to use media stream bypass and can perform media stream bypass are defined as a media stream bypass user group , and the user group is composed of users with direct intercommunication capabilities at the IP layer. Factors that affect the ability of users to communicate directly include: different user terminals belong to the same firewall; user terminals belong to different NATs, and NAT does not support the application layer gateway ALG, etc. Only different users defined in the same user group can The mutual bypass of the media flow is realized.

通常,用户组是根据用户的需求由运营商进行定义的,不同的用户的集合可以组成不同的媒体流旁路的用户组,不同局域网内部的用户可以分别组成不同的媒体流旁路的用户组。例如,公司A的所有用户组成媒体流旁路用户组A,公司B的所有用户组成媒体流旁路用户组B,公司A的用户间可以实现相互间的媒体流旁路,公司B的所有用户可以实现相互间媒体流的旁路,但由于公司A的用户与公司B的用户分属不同的用户组,因而公司A的用户与公司B的用户之间不能实现媒体流的旁路。Usually, the user group is defined by the operator according to the needs of the users. Different sets of users can form different user groups for media stream bypass, and users in different LANs can form different user groups for media stream bypass. . For example, all users of company A form media stream bypass user group A, and all users of company B form media stream bypass user group B. Users of company A can realize mutual media stream bypass, and all users of company B Mutual media stream bypass can be realized, but since company A users and company B users belong to different user groups, media stream bypass cannot be realized between company A users and company B users.

根据实现媒体流旁路的方法的需要,提供一种较佳的定义用户组的方式:在PROXY系统中建立一个用户组表,在这个用户组表中每个单元应该包含以下的结构:According to the needs of the method for realizing media stream bypass, a better way of defining user groups is provided: a user group table is established in the PROXY system, and each unit in this user group table should include the following structure:

用户终端ID域,其定义了需要进行媒体流旁路的用户ID的范围;User terminal ID domain, which defines the range of user IDs that need to bypass media streams;

用户终端IP地址域,其定义IP地址范围。User terminal IP address field, which defines the IP address range.

例如:用户ID组定义了某公司一个范围的电话号码(如****0001~****0999),以及一个域名(如*@company.com)的用户属于一个用户组,则这些用户间的媒体流可以实现旁路,因而可以保证这些用户在网络中实现直接互通。For example: User ID group defines a range of phone numbers of a company (such as ****0001~****0999), and users of a domain name (such as *@company.com) belong to a user group, then these users The media streams between users can be bypassed, thus ensuring that these users can directly communicate with each other in the network.

IP地址域则定义了对应于上述用户ID的IP地址的集合范围,也就是终端的IP地址范围,这个信息在代理端用户在被叫侧而且取不到主叫ID信息时使用,用于获取主叫用户终端的IP地址。The IP address field defines the set range of IP addresses corresponding to the above user IDs, that is, the IP address range of the terminal. This information is used when the agent user is on the called side and cannot obtain the caller ID information. IP address of the calling user terminal.

由上所述,用户组表的实现方式之一可以为: 组标识   用户终端ID域     用户终端IP地址域 As mentioned above, one of the ways to implement the user group table can be: group id User terminal ID field User terminal IP address field

主叫流程是指,代理端的用户发起的呼叫。背景技术中已经介绍:所有PROXY所代理的用户与外界互通的媒体流都经过PROXY进行处理和转发;当PROXY下的用户作为主叫用户终端时,所看到的被叫地址来自于PROXY;当PROXY下的用户作为被叫用户终端时,主叫用户终端看到的被叫地址为PROXY的地址,如图1所示的网络结构。在主叫流程中实际发起呼叫的是代理下的用户,但也可以简单看作是代理发起的呼叫。The calling process refers to a call initiated by a user on the agent side. It has been introduced in the background technology that all the media streams communicated between the users proxied by PROXY and the outside world are processed and forwarded by PROXY; When the user under the PROXY serves as the called user terminal, the called address seen by the calling user terminal is the address of the PROXY, as shown in the network structure shown in FIG. 1 . In the calling process, it is the user under the agent who actually initiates the call, but it can also be simply regarded as the call initiated by the agent.

图4描述了在代理端用户作为主叫用户时实现媒体流旁路方法的一较佳实施例。步骤11为PROXY接收到主叫用户终端的呼叫请求;继续进行步骤12,取出呼叫请求中的被叫用户终端身份标识(ID)信息,同时取出主叫用户终端的ID信息。为了能够实现呼叫的建立,在发给代理的呼叫请求中都会携带被叫用户终端的ID信息,而主叫用户终端的ID信息可能在呼叫请求的报文中直接携带,也可能不携带,在不携带的情况下需要从PROXY记录的对应注册用户的信息中取出主叫用户终端ID信息。步骤13为根据获取的主叫用户终端的ID信息和被叫用户终端的ID信息,在系统中预先定义的用户组表中进行查询,以判断主叫用户终端和被叫用户终端是否属于同一个媒体流旁路的用户组。由于所获得的均是用户终端的ID信息,因而在具体判断是否属于同一个用户组时,可以先由任一端用户确定所属的用户组,若此时该端用户不属于任何一个用户组,则可说明主叫用户与被叫用户不属于同一用户组,否则继续判断另一端用户是否也在该用户组中。如果主叫用户和被叫用户属于系统定义的同一个媒体流旁路的用户组,则进行步骤14,主叫用户终端的媒体流地址不做变换,即不再用代理地址替换主叫用户终端的媒体流地址,并且继续进行呼叫处理16;如果主叫用户终端和被叫用户终端不属于同一个媒体流旁路的用户组,则进行步骤15,将主叫用户终端后续的媒体流地址替换为PROXY的地址,并且进行呼叫处理16。Fig. 4 describes a preferred embodiment of a method for realizing media stream bypass when the proxy user is the calling user. Step 11 is that PROXY receives the call request of the calling user terminal; proceed to step 12, take out the called user terminal identity (ID) information in the call request, and take out the ID information of the calling user terminal simultaneously. In order to realize the establishment of the call, the ID information of the called user terminal will be carried in the call request sent to the agent, and the ID information of the calling user terminal may be directly carried in the message of the call request, or may not be carried. If it is not carried, it is necessary to extract the calling user terminal ID information from the corresponding registered user information recorded by the PROXY. Step 13 is to query in the user group table predefined in the system according to the acquired ID information of the calling user terminal and the ID information of the called user terminal, to determine whether the calling user terminal and the called user terminal belong to the same User group for media stream bypass. Since what is obtained is the ID information of the user terminal, when specifically judging whether it belongs to the same user group, the user group to which it belongs can first be determined by any end user, if the end user does not belong to any user group at this time, then It can be explained that the calling user and the called user do not belong to the same user group, otherwise continue to judge whether the user at the other end is also in the user group. If the calling user and the called user belong to the same media stream bypass user group defined by the system, proceed to step 14, and the media stream address of the calling user terminal is not changed, that is, the proxy address is no longer used to replace the calling user terminal media stream address, and continue call processing 16; if the calling user terminal and the called user terminal do not belong to the same media stream bypass user group, then proceed to step 15 to replace the subsequent media stream address of the calling user terminal is the address of PROXY, and call processing 16 is performed.

在主叫流程中,也可以获得主叫用户终端的IP地址,此时可以应用上述判断方法对主叫用户与被叫用户是否属于同一用户组进行判断,也可以先由被叫用户终端的ID标识确定所属的用户组,再判断主叫用户终端是否也属于该用户组。即在利用主叫用户终端的IP地址时,同样可以实现对能否实现媒体流旁路的判断,由于此种判断方法增大了判断的运算量,因而并不推荐。在可以获得用户终端的ID信息时,应首先以用户终端的ID信息为依据进行呼叫流程的处理。In the calling process, the IP address of the calling user terminal can also be obtained. At this time, the above judgment method can be applied to judge whether the calling user and the called user belong to the same user group, or the ID of the called user terminal can be used first. Identify and determine the user group to which it belongs, and then judge whether the calling user terminal also belongs to the user group. That is, when using the IP address of the calling user terminal, it is also possible to judge whether the media stream bypass can be realized. Since this judgment method increases the amount of judgment calculation, it is not recommended. When the ID information of the user terminal can be obtained, the call flow should be processed based on the ID information of the user terminal first.

在实际的基于VoIP协议的呼叫流程中,上述的代理端用户作为主叫的流程中可能包括多个报文的交互,也就是判断出是否属于同一个媒体流旁路的用户组之后,并不一定立即进行地址的替换或保留,而是将此信息记录下来,在后续的实际媒体流地址信息交互报文中才会使用此信息,以决定进行地址的替换或是地址的保留。In the actual call process based on the VoIP protocol, the process in which the agent user acts as the caller may include the interaction of multiple messages, that is, after judging whether they belong to the same user group of the media stream bypass, it does not The address must be replaced or reserved immediately, but this information is recorded, and this information will be used in the subsequent actual media stream address information exchange message to decide whether to replace or reserve the address.

被叫流程是指代理端的用户作为被叫时的呼叫。如背景技术中所述,当PROXY下的用户作为被叫用户终端时,主叫用户终端看到的被叫地址为PROXY的地址。因而在被叫流程中是代理下的用户作为被叫用户终端,但通常情况下可以简单看作是代理作为被叫。The called process refers to the call when the user on the agent side is called. As described in the background art, when the user under the PROXY serves as the called user terminal, the called address seen by the calling user terminal is the address of the PROXY. Therefore, in the called process, the user under the agent acts as the called user terminal, but usually it can be simply regarded as the agent acting as the called terminal.

图5描述了在代理端用户作为被叫时实现媒体流旁路方法时的一较佳实施例。步骤201为PROXY接收到呼入请求;继续进行步骤202,取出呼叫请求中的被叫用户终端身份标识(ID)信息;进一步要获取主叫用户终端ID信息。Fig. 5 describes a preferred embodiment of implementing the media stream bypass method when the agent user is the called party. Step 201 is that the PROXY receives an incoming call request; proceed to step 202 to take out the called user terminal identity (ID) information in the call request; further obtain the calling user terminal ID information.

被叫流程与主叫流程有所不同,因为作为被叫的代理不一定能获取到主叫用户终端的ID信息,如果服务器没有将主叫用户终端信息下发,则无法获取到主叫用户终端的ID信息,这种情况在被叫端未开通主叫显示业务时即会发生;而在主叫流程中,相应的主叫用户终端ID与被叫用户终端ID信息都可以获取到。此时,应该进行步骤203,判断是否能够获取主叫用户终端的ID信息。The called process is different from the calling process, because the called agent may not be able to obtain the ID information of the calling user terminal. If the server does not deliver the calling user terminal information, the calling user terminal cannot be obtained ID information, this situation will occur when the calling terminal has not activated the caller display service; and in the calling process, the corresponding calling user terminal ID and called user terminal ID information can be obtained. At this point, step 203 should be performed to determine whether the ID information of the calling user terminal can be obtained.

若能够获取主叫用户终端的ID信息,则进行步骤204,判断主叫用户终端与被叫用户终端是否属于同一用户组,若属于同一个用户组则进行步骤209,保持被叫用户终端的媒体流地址不变,即不再用代理地址替换被叫用户终端的媒体流地址,并且进行步骤211继续呼叫处理,否则将被叫用户终端的媒体流地址替换为代理地址,并且进行步骤211继续呼叫处理。此种情况中,由于获得均是用户终端的ID信息,因而具体判断时可以由任一端用户确定所属的用户组,若此时该端用户不属于任何一个用户组,则可说明主叫用户与被叫用户不属于同一用户组,否则继续判断另一端用户是否也在该用户组中。If the ID information of the calling user terminal can be obtained, step 204 is performed to determine whether the calling user terminal and the called user terminal belong to the same user group, and if they belong to the same user group, then step 209 is performed to keep the media of the called user terminal. The stream address is unchanged, that is, the media stream address of the called user terminal is no longer replaced with the proxy address, and step 211 is performed to continue the call process, otherwise the media stream address of the called user terminal is replaced with the proxy address, and step 211 is performed to continue the call deal with. In this case, since the ID information obtained is all user terminals, any end user can determine the user group to which it belongs when making a specific judgment. If the end user does not belong to any user group at this time, then it can be explained that the calling user and The called user does not belong to the same user group, otherwise continue to judge whether the other end user is also in the user group.

若判断不能够获得主叫用户终端的ID信息,则应该进行步骤205,从呼入请求中获取主叫用户终端的IP地址信息,获得主叫用户终端的IP地址信息后进行步骤206,根据被叫用户终端的ID信息在媒体流旁路的用户组表中进行查找,以确定被叫用户所属的用户组,若该被叫用户终端不属于任何用户组,则进行步骤210,将被叫用户终端的媒体流地址替换为代理的地址,并且进行步骤211,继续呼叫处理;如果被叫用户终端属于某一用户组,则进行步骤207,从用户组表中获取与该用户组对应的IP地址域信息,并且进行步骤208,判断已获取的主叫用户终端的IP地址是否属于所述获取的与被叫用户终端所在用户组对应的IP地址域,若主叫用户终端的IP地址在所述的IP地址域中,说明主叫用户终端与被叫用户终端属于同一用户组,则进行步骤209,保持被叫用户终端的媒体流地址不变,并且进行步骤211的呼叫处理,若主叫用户终端的IP地址不在被叫用户终端所在用户组对应的IP地址域中,说明主叫用户终端与被叫用户终端不属于同一个用户组,此时不能实现媒体流的旁路,则应该进行步骤210,将被叫用户终端的媒体流地址替换为代理的地址,并且进行步骤211的呼叫处理。If it is judged that the ID information of the calling user terminal cannot be obtained, then step 205 should be performed to obtain the IP address information of the calling user terminal from the incoming call request, and then step 206 is performed after obtaining the IP address information of the calling user terminal, according to the received The ID information of the calling user terminal is searched in the user group table of the media stream bypass, to determine the user group to which the called user belongs, if the called user terminal does not belong to any user group, then proceed to step 210, and the called user terminal The media stream address of the terminal is replaced with the address of the proxy, and step 211 is performed to continue the call processing; if the called user terminal belongs to a certain user group, then step 207 is performed to obtain the IP address corresponding to the user group from the user group table domain information, and proceed to step 208 to determine whether the obtained IP address of the calling user terminal belongs to the obtained IP address domain corresponding to the user group where the called user terminal is located, if the IP address of the calling user terminal is in the In the IP address domain, it shows that the calling user terminal and the called user terminal belong to the same user group, then proceed to step 209, keep the media stream address of the called user terminal unchanged, and perform the call processing in step 211, if the calling user terminal If the IP address of the terminal is not in the IP address field corresponding to the user group where the called user terminal is located, it means that the calling user terminal and the called user terminal do not belong to the same user group. At this time, the bypass of the media stream cannot be realized, and the steps should be performed. 210. Replace the media stream address of the called user terminal with the proxy address, and perform call processing in step 211.

由于在被叫流程中可能无法获得主叫用户终端的ID信息而只能获得IP地址,此时,可以判断主叫用户与被叫用户是否属于同一个代理,当主叫用户终端与被叫用户终端属于同一个PROXY时,PROXY可以记录主叫用户终端的IP地址等信息,被叫用户终端可以根据主叫用户终端的IP地址等信息反向找到主叫用户终端的呼叫信息,从而获取主叫用户终端的ID信息。此时可以依据主叫用户的ID信息对主叫用户终端和被叫用户终端是否属于同一个用户组进行判断,而不必要再依据主叫用户终端的IP地址进行判断。Since the ID information of the calling user terminal may not be obtained in the called process, but only the IP address can be obtained, at this time, it can be judged whether the calling user and the called user belong to the same agent, when the calling user terminal and the called user When the terminals belong to the same PROXY, the PROXY can record information such as the IP address of the calling user terminal, and the called user terminal can reversely find the call information of the calling user terminal based on the IP address of the calling user terminal, thereby obtaining the caller's ID information of the user terminal. At this time, whether the calling user terminal and the called user terminal belong to the same user group can be judged based on the ID information of the calling user, instead of judging based on the IP address of the calling user terminal.

对于上述被叫流程的处理有相应的替代方法同样可达到相同的目的。例如,在只获取到被叫用户终端的ID信息和主叫用户终端的IP地址后,也可以先根据主叫用户终端的IP地址在媒体流旁路的用户组表中进行查找,若该IP地址不属于用户组表中的任一用户组对应的IP地址域,则将被叫用户终端的地址替换为代理的地址,并且进行呼叫处理;若该主叫用户终端的IP地址属于用户组表中的某一用户组对应的IP地址域,则获取该用户组对应的用户ID域,根据被叫用户终端的ID信息判断该被叫用户终端是否属于主叫用户终端所属的用户组,若被叫用户终端与主叫用户终端属于同一用户组,则保持被叫用户终端的地址不变,并且进行呼叫处理,若被叫用户终端与主叫用户终端不属于同一用户组,则将被叫用户终端的地址替换为代理的地址,并且进行呼叫处理。由于此方法在具体实施过程中会增加对主叫用户终端与被叫用户终端是否属于同一用户组进行判断的运算量,因而不作推荐。There are corresponding alternative methods for processing the above-mentioned called process, which can also achieve the same purpose. For example, after only obtaining the ID information of the called user terminal and the IP address of the calling user terminal, it is also possible to first search in the user group table of the media stream bypass according to the IP address of the calling user terminal. The address does not belong to the IP address field corresponding to any user group in the user group table, then the address of the called user terminal is replaced with the address of the agent, and the call is processed; if the IP address of the calling user terminal belongs to the user group table IP address field corresponding to a certain user group in the user group, then obtain the user ID field corresponding to the user group, and judge whether the called user terminal belongs to the user group to which the calling user terminal belongs according to the ID information of the called user terminal. If the calling user terminal and the calling user terminal belong to the same user group, keep the address of the called user terminal unchanged and perform call processing. If the called user terminal and the calling user terminal do not belong to the same user group, the called user terminal The terminal's address is replaced with the agent's address, and call processing proceeds. This method is not recommended because it will increase the amount of computation for judging whether the calling user terminal and the called user terminal belong to the same user group during the specific implementation process.

在被叫流程中,可以获得被叫用户终端的IP地址,此时可以应用上述判断方法,依据被叫用户终端的IP地址对主叫用户与被叫用户是否属于同一用户组进行判断,也可以先由主叫用户终端的ID标识或IP地址确定所属的用户组,再判断被叫用户是否也属于该用户组。即在利用被叫用户的IP地址时,同样可以实现对能否实现媒体流旁路的判断,但并不推荐此种方法。在可以获得用户终端的ID信息时,应首先以用户终端的ID信息为依据进行呼叫流程的处理。In the called process, the IP address of the called user terminal can be obtained. At this time, the above judgment method can be applied to judge whether the calling user and the called user belong to the same user group according to the IP address of the called user terminal. First, the user group to which the calling user terminal belongs is determined by the ID or IP address of the calling user terminal, and then it is judged whether the called user also belongs to the user group. That is, when using the IP address of the called user, it is also possible to judge whether the media stream bypass can be realized, but this method is not recommended. When the ID information of the user terminal can be obtained, the call flow should be processed based on the ID information of the user terminal first.

在实际的基于VoIP协议的呼叫流程中,上述的代理端用户作为主叫的流程中可能包括多个报文的交互,也就是判断出是否属于同一个媒体流旁路的用户组之后,并不一定立即进行地址的替换或保留,而是将此信息记录下来,在后续的实际媒体流地址信息交互报文中才会使用此信息,以决定进行地址的替换或是地址的保留。In the actual call process based on the VoIP protocol, the process in which the agent user acts as the caller may include the interaction of multiple messages, that is, after judging whether they belong to the same user group of the media stream bypass, it does not The address must be replaced or reserved immediately, but this information is recorded, and this information will be used in the subsequent actual media stream address information exchange message to decide whether to replace or reserve the address.

在一个呼叫流程中,主叫用户与被叫用户之间可能存在多个代理,这种情况下,依据本发明所提供的方法同样可以实现媒体流的旁路。即在报文经过每个代理时,获取报文中用户终端的位置信息,而后根据所能获得的各用户终端的位置信息判断主叫用户与被叫用户是否属于同一个用户组,并且根据判断的结果决定是否将用户终端在信令报文中携带的媒体流地址信息进行替换,最后继续进行呼叫处理。In a call flow, there may be multiple agents between the calling user and the called user. In this case, the method provided by the present invention can also realize the bypass of the media flow. That is, when the message passes through each agent, the location information of the user terminal in the message is obtained, and then it is judged whether the calling user and the called user belong to the same user group according to the location information of each user terminal that can be obtained, and according to the judgment The result determines whether to replace the media stream address information carried by the user terminal in the signaling message, and finally continues the call processing.

以上对本发明所提供的实现媒体流旁路的方法进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method for implementing media stream bypass provided by the present invention has been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention. and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. limits.

Claims (7)

1, a kind of method that realizes Media Stream Bypass is characterized in that:
1) from message, obtains the positional information of call subscriber terminal and called user terminal;
2) judge according to described positional information whether call subscriber terminal and called user terminal belong to the same user's group that presets, if call subscriber terminal and called user terminal belong to same user's group, the Media Stream address of then keeping the agent side user terminal remains unchanged, otherwise the Media Stream address of agent side user terminal is replaced with agency's address;
3) carry out call treatment.
2, the method for realization Media Stream Bypass as claimed in claim 1 is characterized in that: described positional information is User Identity information or IP address information.
3, the method for realization Media Stream Bypass as claimed in claim 1, it is characterized in that, the described process of obtaining the positional information of call subscriber terminal and called user terminal of step 1) is: the identify label of at first obtaining the user is as user position information, in the time that described identify label can't be obtained, obtain user's IP address as user position information.
4, the method for realization Media Stream Bypass as claimed in claim 3, it is characterized in that also comprising: when positional information is user's IP address, judge whether call subscriber terminal and called user terminal belong to same agency, if, then according to the call information of the IP address reverse find call subscriber terminal that obtains, and from this call information, obtain the identification information of this call subscriber terminal.
5, as the method for claim 1 or 3 described realization Media Stream Bypass, it is characterized in that step 2) the described process of judging whether call subscriber terminal and called user terminal belong to the same user group that presets is specially:
21) user of selection one agent side determines that according to this user position information the user under this user organizes;
22) judge whether another user belongs to the affiliated user's group of this agent side user.
6, as the method for claim 1 or 5 described realization Media Stream Bypass, it is characterized in that: described user's group realizes the user's of Media Stream Bypass set for needs, and this set is made up of the user who has direct intercommunication ability at the IP layer.
7, the method for realization Media Stream Bypass as claimed in claim 1, it is characterized in that: before step 1), also comprise the step that generates user's group table, comprise the User Identity territory that need carry out Media Stream Bypass in described user's group table, and the pairing IP address field in this User Identity territory.
CNB2004100570213A 2004-08-20 2004-08-20 Method for realizing media stream bypass Expired - Fee Related CN100353720C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100570213A CN100353720C (en) 2004-08-20 2004-08-20 Method for realizing media stream bypass

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100570213A CN100353720C (en) 2004-08-20 2004-08-20 Method for realizing media stream bypass

Publications (2)

Publication Number Publication Date
CN1738267A true CN1738267A (en) 2006-02-22
CN100353720C CN100353720C (en) 2007-12-05

Family

ID=36080933

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100570213A Expired - Fee Related CN100353720C (en) 2004-08-20 2004-08-20 Method for realizing media stream bypass

Country Status (1)

Country Link
CN (1) CN100353720C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007025429A1 (en) * 2005-09-02 2007-03-08 Huawei Technologies Co., Ltd. A method for preventing the media stream from bypassing and the device thereof
WO2007137470A1 (en) * 2006-05-26 2007-12-06 Huawei Technologies Co., Ltd. The method and system for the media flow replacing during the terminal session
WO2008101443A1 (en) * 2007-02-16 2008-08-28 Huawei Technologies Co., Ltd. A method, system and device for acquiring a media stream
CN101867575A (en) * 2010-05-31 2010-10-20 中兴通讯股份有限公司 Inter-network-element media hairpin connection method and system
US7840213B2 (en) 2006-05-31 2010-11-23 Huawei Technologies Co., Ltd. System, apparatus and method coping with mobile switching node failure
CN102905201A (en) * 2012-10-12 2013-01-30 中国联合网络通信集团有限公司 Session service control method and optical line terminal for passive optical network
CN103139156A (en) * 2011-11-28 2013-06-05 中国移动通信集团公司 Implement method and implement device of media stream by-path

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167052A (en) * 1998-04-27 2000-12-26 Vpnx.Com, Inc. Establishing connectivity in networks
GB2369262A (en) * 2000-09-05 2002-05-22 Ericsson Telefon Ab L M Call looping prevention
US6954654B2 (en) * 2001-07-31 2005-10-11 Lucent Technologies Inc. Provision of services in a communication system including an interworking mobile switching center
CN100375481C (en) * 2002-10-09 2008-03-12 中兴通讯股份有限公司 Method and system for realizing inter communication of telecommunication business between isomerized networks
CN100459723C (en) * 2002-12-15 2009-02-04 华为技术有限公司 The Method of Implementing Routing in Next Generation Network

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8108526B2 (en) 2005-09-02 2012-01-31 Huawei Technologies Co., Ltd. Communication method and device for preventing media stream circuitry
WO2007025429A1 (en) * 2005-09-02 2007-03-08 Huawei Technologies Co., Ltd. A method for preventing the media stream from bypassing and the device thereof
CN101317363B (en) * 2006-05-26 2015-03-04 华为技术有限公司 Method and system for media stream replacement during terminal call
US7996540B2 (en) 2006-05-26 2011-08-09 Huawei Technologies Co., Ltd. Method and system for replacing media stream in a communication process of a terminal
WO2007137470A1 (en) * 2006-05-26 2007-12-06 Huawei Technologies Co., Ltd. The method and system for the media flow replacing during the terminal session
US7840213B2 (en) 2006-05-31 2010-11-23 Huawei Technologies Co., Ltd. System, apparatus and method coping with mobile switching node failure
WO2008101443A1 (en) * 2007-02-16 2008-08-28 Huawei Technologies Co., Ltd. A method, system and device for acquiring a media stream
CN101867575A (en) * 2010-05-31 2010-10-20 中兴通讯股份有限公司 Inter-network-element media hairpin connection method and system
CN101867575B (en) * 2010-05-31 2015-08-19 中兴通讯股份有限公司 A kind of media hairpin connection method of inter-network element and system
CN103139156A (en) * 2011-11-28 2013-06-05 中国移动通信集团公司 Implement method and implement device of media stream by-path
CN103139156B (en) * 2011-11-28 2016-09-07 中国移动通信集团公司 A kind of Media Stream Bypass implementation method and equipment
CN102905201A (en) * 2012-10-12 2013-01-30 中国联合网络通信集团有限公司 Session service control method and optical line terminal for passive optical network
CN102905201B (en) * 2012-10-12 2015-08-19 中国联合网络通信集团有限公司 The session service control method of EPON and optical line terminal

Also Published As

Publication number Publication date
CN100353720C (en) 2007-12-05

Similar Documents

Publication Publication Date Title
CN1170393C (en) Method and system for realizing IP voice service in private network
CN1860763A (en) Network entity for interconnecting SIP end-points of different capabilities
CN1758649A (en) Method for network intercommunication of Internet Protocols with different versions
CN1516409A (en) Method for making medium stream pass through network address converter
CN100550882C (en) A method for traversing subnets and a system for traversing subnets
CN1809075A (en) Method of establishing integrated network service
CN1863209A (en) IMS service triggering method and IMS network
CN1809037A (en) Method of implementing end-to-end information interaction
CN1738267A (en) Method for realizing media stream bypass
CN1849808A (en) Interworking of hybrid protocol multimedia networks
CN1764172A (en) Multimedia communication proxy system and method capable of crossing network address conversion and firewall
CN101742008B (en) Media stream proxy method, voice exchanger and communication system
KR20100060658A (en) Apparatus and method for supporting nat traversal in voice over internet protocol system
CN101047548A (en) Communication in multiple NAT private network
CN1553634A (en) A monitoring network system and monitoring method thereof
CN100583814C (en) Method for implementing multimedia service NAT transition
US9491203B2 (en) Service based release of a subscriber registrar server from a signalling path in an internet protocol communication network
CN100484104C (en) Method for addressing in communication system
CN1832471A (en) Method of communicating between different protocal of terminal user interface of IP multimedia subsystem
CN1677949A (en) Method for realizing communication between equipments in network
CN1297114C (en) Method of realizing signalling, speech sound cross network transmission
CN1901539A (en) Method for multimedia service tunnel pass through NAT
CN100407711C (en) System and method for implementing agent in network
CN1735055A (en) Method for multimedia terminal point-to-point call inside two private networks
CN1738256A (en) Method for operating media resource in next generation network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071205

Termination date: 20120820