WO2009043289A1 - Method for determining the media stream path relation and call control system - Google Patents

Method for determining the media stream path relation and call control system Download PDF

Info

Publication number
WO2009043289A1
WO2009043289A1 PCT/CN2008/072517 CN2008072517W WO2009043289A1 WO 2009043289 A1 WO2009043289 A1 WO 2009043289A1 CN 2008072517 W CN2008072517 W CN 2008072517W WO 2009043289 A1 WO2009043289 A1 WO 2009043289A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
address
network address
call
private network
Prior art date
Application number
PCT/CN2008/072517
Other languages
French (fr)
Chinese (zh)
Inventor
Tao Zhang
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.
Publication of WO2009043289A1 publication Critical patent/WO2009043289A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1033Signalling gateways
    • H04L65/1036Signalling gateways at the edge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1046Call controllers; Call servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]

Definitions

  • the present invention relates to the field of communication technologies, and in particular, to a method for determining a relationship of a media stream path and a corresponding call control system.
  • IP Protocol IP
  • IMS Multimedia Subsystem
  • the IMS network usually includes functional entities such as Proxy Call Session Control Function (P-CSCF: Proxy Call Session Control Function), Policy Decision Function (PDF), and Border Gateway Function (BGF).
  • P-CSCF Proxy Call Session Control Function
  • PDF Policy Decision Function
  • BGF Border Gateway Function
  • the UE and the P-CSCF and the P-CSCF use call control signaling to interact with each other (indicated by a dotted line in Figure 1), and the bearer control signaling is used between the P-CSCF and the PDF and between the PDF and the BGF. (indicated by a double dashed line in Figure 1), the media stream is transmitted between UEs via the BGF in accordance with the determined media stream path (shown in solid lines in Figure 1).
  • the method for determining the path relationship of the media stream is as shown in FIG. 2, including:
  • UE 1 initiates a call to UE 2 to P-CSCF 1, which carries the private network address of UE 1.
  • the P-CSCF 1 obtains the private network address 1 and the public network address 1 bound to the private network address of the UE 1, and the P-CSCF 1 requests the BGF 1 to allocate the private network of the UE 1 through the PDF 1 using bearer control signaling.
  • the private network address 1 and the public network address 1 bound to the address; BGF is determined by binding the private network address 1 to the private network address of UE 1. 1 to the path relationship of UE 1; public network address 1 is used for BGF 1 to perform media stream transmission on behalf of UE 1.
  • the P-CSCF 1 sends a call request of the UE 1 to the UE 2 to the P-CSCF 2 to which the UE 2 belongs, and the call request carries the public network address 1.
  • the P-CSCF 2 uses the bearer control signaling to request the BGF 2 to allocate the private network address 2 and the public network address 2 through the PDF 2, and bind the public network address 1 to the public network address 2;
  • the public network address 1 determines the path relationship between BGF 2 and BGF 1.
  • the private network address 2 is used by BGF 2 to transmit the media stream of public network address 2 in the private network.
  • the P-CSCF 2 sends a call request carrying the private network address 2 to the UE 2, and determines the path relationship between the UE 2 and the BGF 2.
  • UE 2 returns a call response carrying the private network address of UE 2 to P-CSCF 2.
  • the P-CSCF 2 uses the bearer control signaling to request the BGF 2 to bind the private network address of the UE 2 to the private network address 2 by using the bearer control signaling, and determine the path relationship of the BGF 2 to the UE 2.
  • the P-CSCF 2 returns a call response carrying the public network address 2 to the P-CSCF 1.
  • the P-CSCF 1 uses the bearer control signaling to request the BGF 1 to bind the public network address 2 to the public network address 1 by using the bearer control signaling, that is, to determine the path relationship of the BGF 1 to the BGF 2.
  • the P-CSCF 1 returns the call response carrying the private network address 1 to the UE 1, that is, determines the path relationship of the UE 1 to the BGF 1.
  • the UE 1 communicates with the private network address 1 of the BGF 1 by its own private network address.
  • the BGF 1 communicates with the public network address 2 of the BGF 2 by the public network address 1 according to the binding relationship of the address, BGF 2
  • the private network address 2 represents the public network address 2 and communicates with the private network address of the UE 2;
  • the established media stream path is as shown in FIG. 3 .
  • the media stream path determined by the method needs to be transited through the public network address provided by the BGF, and when the user equipments of the calling parties are in the same address domain, for example, UE1 and UE2 are in the same private network, which is obviously not the best medium.
  • the flow path will cause path redundancy and increase the processing load of the BGF and waste the public network address.
  • Embodiments of the present invention provide a method for determining a path relationship of a media stream, and a corresponding call control system, a policy decision function entity, and a session control function entity, for effectively avoiding path redundancy.
  • a method for determining a relationship of a media stream path comprising: receiving a first call request of a first user to a second user, where the first call request carries a private network address of the first user; a call request, the second call request carrying a private network address of the first user and a first public network address bound to the private network address of the first user; receiving the returned corresponding to the second call request
  • the second call response carries a media transmission address of the second user that matches the media transmission address of the first user; the media transmission address of the first user is the first public network address or the private network of the first user Address, the media transmission address of the second user is a second public network address or a private network address of the second user; and returning with the first call according to the media transmission address of the second user carried in
  • a method for determining a relationship of a media stream path comprising: receiving a second call request to a second user, where the second call request carries a first public network address and a private network address of the first user; The call request obtains the registered address of the second user, and determines whether the first user and the second user can directly communicate according to the private network address of the first user and the registered address of the second user, and determines the media of the first user according to the determination result.
  • the media transmission address of the first user is a first public network address or a private network address of the first user; obtaining a media transmission address of the second user that matches the media transmission address of the first user, and returning The second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user.
  • a method for determining a relationship of a media stream path comprising: receiving a second call request to a second user, where the second call request carries a first public network address and a private network address of the first user;
  • the second call request obtains the registration address of the second user, and sends a bearer address selection request, where the bearer address selection request carries the first public network address, the private network address of the first user, and the registered address of the second user;
  • Returning a bearer address selection response corresponding to the bearer address selection request the bearer address selection response carries a media transmission address of the first user, and the media transmission address of the first user is a first public network address or the first a private network address of the user;
  • a method for determining a path relationship of a media stream comprising: receiving a bearer address selection request, where the bearer address selection request carries a first public network address, a private network address of the first user, and a registration of the second user
  • the first user's private network address and the second user's registered address determine whether the first user and the second user can directly communicate; the first user's media transmission address is determined according to the determination result, and the first user's media
  • the transport address is the first public network address or the private network address of the first user; the bearer address selection response corresponding to the bearer address selection request is returned, and the bearer address selection response carries the media transport address of the first user.
  • a method for determining a relationship of a media stream path comprising: receiving a first call request of a first user to a second user, where the first call request carries a private network address of the first user; determining that the second user belongs to The session control function entity obtains the registration address of the second user, and sends a bearer mode determination request, where the bearer mode determination request carries the private network address of the first user and the registration address of the second user;
  • the bearer mode determining response corresponding to the bearer mode determining request carries the information indicating whether the first user and the second user can directly communicate; and determining, according to the bearer mode, the first user and the carrying Determining, by the second user, whether the first user and the second user can directly communicate; obtaining a private network address of the second user, and returning a first call response corresponding to the first call request, the first The call response carries the private network address of the second user.
  • a method for determining a relationship of a media stream path comprising: receiving a bearer mode determining request, where the bearer mode determining request carries a private network address of a first user and a registered address of a second user; according to the private network of the first user The address and the registration address of the second user determine whether the first user and the second user can directly communicate; return a bearer mode determination response corresponding to the bearer mode determination request, and the bearer mode judgment response carries a corresponding to the judgment result Information.
  • a session control function entity comprising: a call receiving unit, configured to obtain a first call request of a first user to a second user, where the first call request carries a private network address of the first user;
  • a call connection unit configured to send a second call request to the second user, where the second call request carries a private network address of the first user and a first public network address bound to the private network address of the first user
  • a response obtaining unit configured to obtain a returned second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user that matches the media transmission address of the first user,
  • the media transmission address of the first user is the first public network address or the private network address of the first user
  • the media transmission address of the second user is the second public network address or the private network address of the second user
  • a unit configured to return, according to the media transmission address of the second user carried by the second call response, Returning to the first call response corresponding to the first call request, the first call response carries destination address information of the first user next hop.
  • a call control system comprising: a session obtaining unit, configured to obtain a second call request to a second user, where the second call request carries a first public network address and a private network address of the first user; Determining, according to the second call request, a registration address of the second user; the policy decision unit, configured to determine, according to the private network address of the first user, and the registration address of the second user, whether the first user and the second user can Directly communicating, determining a media transmission address of the first user according to the determination result, the media transmission address of the first user is a first public network address or a private network address of the first user; and an address obtaining unit, configured to obtain the a media transmission address of the second user that matches the media transmission address of the user; a session response unit, configured to return a second call response corresponding to the second call request, where the second call response carries the second user Media transfer address.
  • a session control function entity comprising: a connection obtaining unit, configured to obtain a second call request sent to a second user, where the second call request carries a first public network address and a private network address of the first user; a negotiating unit, configured to obtain a registration address of the second user according to the second call request, and send a bearer address selection request, where the bearer address selection request carries the first public network address and the private content of the first user a network address and a registration address of the second user; a negotiation obtaining unit, configured to obtain a returned bearer address selection response corresponding to the bearer address selection request, where the bearer address selection response carries a media transmission address of the first user, where The media transmission address of the first user is the first public network address or the private network address of the first user; the address matching unit is configured to obtain a media transmission address of the second user that matches the media transmission address of the first user; a connection response unit, configured to return a second call response corresponding to the second call request, where the second call response carries The
  • a policy decision function entity comprising: a selection obtaining unit, configured to obtain a bearer address selection request, where the bearer address selection request carries a first public network address, a private network address of the first user, and a registered address of the second user; An address selection unit, configured to determine whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and determine a media transmission address of the first user according to the determination result, where The media transmission address of the first user is the first public network address or the private network address of the first user; the selection response unit is configured to return a bearer address selection response corresponding to the bearer address selection request, and the bearer address selection response Carrying the media transmission address of the first user.
  • a media transmission address for determining a path relationship is selected from a private network address and a public network address associated with the user equipment by determining whether the user equipment of the calling party can directly communicate with each other.
  • the media stream bearer of the two parties is determined by determining the direct path in the private network.
  • the media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device, which not only reduces the edge.
  • the processing load of the gateway device also reduces the use of the public network address, effectively avoids the generation of redundant paths, and reduces the probability of call failure due to limited public network addresses.
  • FIG. 1 is a simplified schematic diagram of a structure of an existing IMS network
  • FIG. 2 is a schematic flow chart of a method for determining a relationship of a media stream path
  • FIG. 3 is a schematic diagram of a media flow path determined according to an existing method
  • FIG. 4 is a schematic flowchart of a method for determining a path relationship of a media stream according to Embodiment 1 of the present invention
  • FIG. 5 is a schematic flowchart of a method for determining a path relationship of a media stream according to Embodiment 2 of the present invention
  • FIG. 6 is a schematic flow chart of a specific application method according to Embodiment 1 of the present invention.
  • FIG. 7 is a schematic diagram of an address allocation process of an application example according to Embodiment 1 of the present invention.
  • FIG. 8 is a schematic diagram of an address release procedure of an application example according to Embodiment 1 of the present invention.
  • FIG. 9 is a schematic diagram of a media flow path determined in an application example of the first embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an address binding process of an application example according to Embodiment 1 of the present invention.
  • FIG. 11 is a schematic diagram showing the logical structure of a third session control function entity according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram showing the logical structure of a call control system according to a fourth embodiment of the present invention.
  • FIG. 13 is a schematic diagram showing the logical structure of a five session control function entity according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram showing the logical structure of a sixth policy decision function entity according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for determining a path relationship of a media stream, and determining whether a user equipment of the two parties can directly communicate with each other, and selecting a media transmission address for determining a path relationship from a private network address and a public network address associated with the user equipment.
  • Embodiments of the present invention also provide a corresponding call control system, a policy decision function entity, and a session control function entity. The following is a detailed description.
  • Embodiment 1 A method for determining a path relationship of a media stream. The process is as shown in FIG. 4, including the steps of: Al, the first call control system receives a first call request of the first user to the second user, The first call request carries the private network address of the first user.
  • the private network address of the user is the communication address used in the address domain, usually the network communication address in the address domain, such as 192.168.0.1, etc.; when the first user initiates a call to the second user, the call is used.
  • the identifier of the second user may generally be a name that is easy to identify and memorize, such as UE2@abc.com, etc., and the first call control system may determine the second call control system to which the second user belongs according to the identifier of the second user. This step can be performed with reference to the existing method.
  • A2 The first call control system sends a second call request to the second user to the second call control system of the second user, where the second call request carries the private network address of the first user and the first user The first public network address bound to the private network address.
  • the call control system in the embodiment is a set of devices for controlling the call on the network side, and may be implemented by a single entity having comprehensive capabilities, or may be composed of multiple entities by using a hierarchical structure, for example, may include a session. Control function entities and policy decision function entities, etc.
  • the obtaining of the first public network address bound to the private network address of the first user in this step can be performed by referring to the existing mode.
  • the first call control system adopts a hierarchical structure including the first session control function entity and the first policy decision function entity
  • this step may be specifically performed as follows: After receiving the call, the first session control function entity uses bearer control signaling to pass The first policy decision function entity requests the first edge gateway device to allocate a first public network address bound to the private network address of the first user. Of course, the first edge gateway device also allocates the first private network address that is bound together at the same time as the communication address of the first user in the private network.
  • the first call control system may, in the second call request sent, place the first public network address and the private network address of the first user in the set position order.
  • the first user's private network address can be placed first, and the first public network address can be placed later.
  • the second call control system obtains the registration address of the second user according to the second call request, and determines that the first user and the second user can be determined according to the private network address of the first user and the registration address of the second user.
  • the direct communication is performed, and the media transmission address of the first user is determined according to the determination result, and the media transmission address of the first user is the first public network address or the private network address of the first user.
  • this step may be specifically implemented as:
  • the second session control function entity receives the second call request, and the second call request Obtaining a registration address of the second user, and sending a bearer address selection request to the second policy decision function entity, where the bearer address selection request carries the first public network address, the private network address of the first user, and the registered address of the second user .
  • the second session control function entity may obtain the registration address of the second user based on the identity of the second user used in the second call request.
  • the second policy decision function entity determines whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and determines the media transmission address of the first user according to the determination result.
  • the media transmission address of the first user is the first public network address or the private network address of the first user, and the bearer address selection response carrying the media transmission address of the first user is returned to the second session control function entity.
  • the second policy decision function entity performs the selection of the call bearer mode to determine whether the first user communicates with the second user directly or by using a public network address.
  • whether the first user and the second user can directly communicate by determining whether the private network address of the first user and the registered address of the second user belong to the same address domain, if the information belongs to the same address domain, the communication can be directly performed. If you do not belong to the same address domain, you need to use the public network address for communication.
  • the second policy decision function entity may only carry the result of the bearer mode selection, that is, the media transport address of the first user, in this case, when the returned first public network address, the second The session control function entity may request the second edge gateway device to allocate the second public network address bound to the first public network address by using the second policy decision function entity by using the bearer address request in an existing manner.
  • the second policy decision function entity may also combine the process of performing address selection and address allocation, that is, when the second policy decision function entity determines that the first user and the second user cannot directly communicate, except for selecting the first public network address as the first
  • the operation of obtaining the second public network address bound to the first public network address is performed by the media transport address of the user, and the second public network address is added to the returned bearer address selection response.
  • the second session control function entity only needs to deliver the bearer address selection request once.
  • the bearer address request does not need to be sent again.
  • the second call control system obtains a media transmission address of the second user that matches the media transmission address of the first user, and returns a second call response that carries the media transmission address of the second user to the first call control. system.
  • the second call control system can be processed in two cases:
  • the first user's media transmission address is the first public network address, indicating that the first user and the second user need to use the public network address for communication, so the second call control system needs to obtain the second public network address as the first user.
  • the media transfer address of the second user whose media transfer address matches.
  • the second session control function entity may continue to obtain the second public network address by using the bearer control signaling; or obtain the second public network address directly from the bearer address selection response returned by the second policy decision function entity. Thereafter, the second session control function entity can perform the determining operation of the media stream path relationship in an existing manner.
  • the media transmission address of the first user is the private network address of the first user, indicating that the first user and the second user can directly communicate, so the second call control system needs to obtain the private network address of the second user as the first user.
  • the media transfer address of the second user whose media transfer address matches.
  • the specific process can include:
  • a second call control system sends a third call request carrying the private network address of the first user to the second user;
  • the second user returns a third call response carrying the private network address of the second user to the second call control system.
  • the operations in the above steps &, b are performed by the second session control function entity.
  • the second call control system may return and carry the following a second call response of the media transmission address of the second user: placing the media transmission address of the second user corresponding to the location of the media transmission address of the first user to which it matches in the second call request, The location corresponding to another address information in the second call request is set as an invalid address.
  • the second call response also carries two address information, and if the first address information is valid, For the private network address of the second user, if the first address information is invalid and the second address information is valid, The second public network address.
  • the invalid address can be set based on the agreement of both parties, for example, treating the all 0 address as an invalid address.
  • the address placed in the second call request is [1.1 ⁇ 1; 2.2.2.2], assuming that the private network address of the first user is in the front and the first public network address is in the back; the second call response is [0.0.0.0; 3.3.3.3]; Because the previous address in the second call response is invalid, it is judged that the second public network address 3.3.3.3 matching the first public network address 2.2.2.2 is returned, and then the subsequent path relationship is determined according to the existing path. The determination process continues.
  • the first call control system returns a first call response corresponding to the first call request according to the media transmission address of the second user carried in the second call response, where the first call response carries the Destination address information of the first user next hop.
  • the first call control system determines whether the first user and the second user can directly communicate according to the media transmission address of the second user carried in the second call response.
  • the first call control system can determine the first user and the second user according to the location of the effective address in the second call response, based on the manner in which the second call control system places the media transmission address of the second user in the position order in the previous step. For direct communication or for communication via a public address.
  • the first call control system is divided into two situations according to the judgment result:
  • the second user's media transmission address is a second public network address, indicating that the first user and the second user need to use the public network address for communication
  • the first call control system may perform the path relationship determination operation in an existing manner, that is, The second public network address carried in the second call response is bound to the first public network address, and returns a first call response carrying the first private network address bound to the private network address of the first user.
  • the media transmission address of the second user is the private network address of the second user, indicating that the first user and the second user can directly communicate, and the first call control system returns to the first user the number of the private network address carrying the second user.
  • a call response can directly determine the path relationship between the first user and the second user by using the private network address of the second user and the private network address of the first user.
  • the first call control system may release the private binding to the first user in order not to waste the previously assigned first public network address.
  • the media transmission address for determining the path relationship is selected from the private network address and the public network address associated with the calling party user equipment.
  • the direct path in the private network can be determined to carry the media stream bearer of the two parties.
  • the media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device.
  • the processing load of the edge gateway device is reduced, the use of the public network address is reduced, and the probability of call failure due to the limited public network address is reduced.
  • Embodiment 2 A method for determining a relationship of a media stream path is shown in FIG. 5.
  • the first embodiment adopts a method for judging whether the user equipment of the calling party can directly communicate with each other on the called side; in this embodiment, the user of the calling party is used at the calling side.
  • the manner in which the device can directly communicate and judge is applicable to the case where the calling party and the called user belong to the same call control system.
  • the first call control system and the second call control system are the same system. Since the solution of the embodiment and the solution of the first embodiment are performed on the calling and called sides respectively, in the actual application, the solution of the first embodiment and the embodiment may be used separately, or may be used in combination.
  • the method of this embodiment specifically includes the following steps:
  • the first session control function entity receives a first call request of the first user to the second user, where the first call request carries a private network address of the first user.
  • the first session control function entity determines that the second user belongs to the session control function entity, and obtains a registration address of the second user.
  • the first session control function entity sends a bearer mode determining request to the first policy decision function entity, where the bearer mode determining request carries the private network address of the first user and the registered address of the second user.
  • the first policy decision function entity determines whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and returns a bearer mode judgment response carrying the judgment result to the first A session control function entity.
  • the first policy decision function entity may only carry the judgment of whether the first user and the second user can directly communicate in the returned bearer mode judgment response. Break the result, which is "yes” or "no". In this case, when the returned result is "No", the first control function entity may request the first edge gateway device to be allocated with the first user by the first policy decision function entity again using the bearer address request according to the existing manner.
  • the first public network address bound to the private network address.
  • the first policy decision function entity may also perform the process of performing bearer mode judgment and address assignment, that is, when the first policy decision function entity determines that the first user and the second user cannot directly communicate, the first policy and the first user are also performed.
  • the operation of the first public network address bound to the private network address returns the first public network address as the result of the determination of "No". In this way, the first session control function entity only needs to issue the bearer mode judgment request once, and when the judgment result is "No", it is not necessary to issue the bearer address request again.
  • the first session control function entity determines a response according to the bearer mode, and determines whether the first user and the second user can directly communicate; when it is determined to be capable, step B6 is performed; when the determination is no, step B7 is performed.
  • the first session control function entity obtains the private network address of the second user, and returns a first call response carrying the private network address of the second user to the first user, that is, the private network address of the first user and the second user.
  • the private network address determines the path relationship of the first user to the second user.
  • This step can be performed by referring to Case 2 in the first step A5 of the first embodiment.
  • the first session control function entity is the second session control function entity.
  • the first session control function entity obtains the private network address of the second user and the public network address of the first user and the second user, and determines the first user to the second user by using the public network addresses of the first user and the second user.
  • the path relationship that is, the need to perform an existing address interaction process.
  • This step can be performed by referring to the existing method of determining the relationship of the media stream path.
  • the private network address or the public network address associated with the calling party user equipment is selected as the media transmission address for determining the path relationship, when both parties call
  • the direct path in the private network can be determined to carry the media stream bearer of the two parties.
  • the media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device, which not only reduces the edge.
  • the processing load of the gateway device also reduces the use of the public network address, and reduces the probability of call failure due to the limited public network address.
  • the application scenario is: the first user UE 1 initiates a call to the second user UE 2,
  • the IMS network adopts the structure shown in FIG.
  • the process is shown in Figure 6, including the steps: 1) The UE 1 initiates a first call request to the UE 2 to the P-CSCF 1, the first call request carrying the private network address of the UE 1.
  • the P-CSCF 1 obtains the private network address 1 and the public network address 1 for the media stream transmission of the current call, and binds the private network address of the UE 1 to the private network address 1 and the public network address 1.
  • Figure 7 includes:
  • P-CSCF 1 sends a bearer address request carrying the private network address of UE 1 to PDF 1;
  • BGF 1 assigns a private network address 1 and a public network address 1, and binds to the private network address of UE 1, and then returns a bearer address response carrying private network address 1 and public network address 1 to PDF 1;
  • the private network address 1 is used for media stream transmission between the UE 1 and the BGF 1 in the private network, and the public network address 1 is used by the BGF 1 to transmit the media stream of the UE 1 to the outside.
  • the path relationship between the BGF 1 and the UE 1 is determined by binding the private network address 1 and the private network address of the UE 1.
  • the public network address 1 that is bound together is the transport address of the private network address.
  • PDF 1 returns to P-CSCF 1 the bearer address response carrying private network address 1 and public network address 1. 3)
  • the P-CSCF 1 sends a second call request to the UE 2 to the P-CSCF 2 to which the UE 2 belongs, and the second call request carries the public network address 1 and the private network address of the UE 1.
  • the P-CSCF 2 obtains the registration address of the UE 2, and sends a bearer address selection request to the PDF 2, and the bearer address selection request carries the public network address 1, the private network address of the UE 1, and the registered address of the UE 2.
  • the PDF 2 determines whether the UE 1 and the UE 2 can communicate directly, that is, whether the private network address of the UE 1 and the registered address of the UE 2 belong to the same address domain, and if so, the processing is performed according to the situation; if not, then Follow the second step of the situation.
  • PDF 2 determines that UE 1 and UE 2 can communicate directly, and return to the P-CSCF 2 an address address selection response carrying the private network address of UE 1.
  • the P-CSCF 2 determines that the UE 1 and the UE 2 are in direct communication, and sends a third call request carrying the private network address of the UE 1 to the UE 2, that is, determining the path relationship between the UE 2 and the UE 1.
  • UE 2 returns a third call response carrying the private network address of UE 2 to P-CSCF 2.
  • the P-CSCF 2 determines that UE 1 and UE 2 are in direct communication, and returns a second call response carrying the private network address of UE 2 to P-CSCF 1.
  • the P-CSCF 1 determines that the UE 1 and the UE 2 are in direct communication, and releases the private network address 1 and the public network address 1 originally requested to be allocated.
  • the specific process is shown in Figure 8, including:
  • the P-CSCF 1 sends a bearer address release request carrying the private network address of the UE 1 to the PDF 1;
  • PDF 1 sends a bearer address release request carrying the private network address of UE 1 to BGF 1; 10.3) BGF 1 releases the private network address 1 and public network address 1 bound to the private network address of UE 1, releasing tBGF 1 Go to the path of UE 1, and then return the load release response to PDF 1;
  • the P-CSCF 1 returns a first call response carrying the private network address of the UE 2 to the UE 1, and determines the next hop destination address information of the UE 1, that is, determines the path relationship between the UE 1 and the UE 2.
  • UE 1 and UE 2 can directly communicate through the private network addresses of the two parties, and the established media stream path is as shown in FIG.
  • PDF 2 determines that UE 1 and UE 2 need to communicate through the public network address, and allocate the private network address 2 and the public network address 2 for the media stream transmission to the UE 2 side, and the public network address 1 and the private network address 2 and Public network address 2 is bound.
  • the specific process is similar to steps 2.2) and 2.3) and is not mentioned.
  • PDF 2 returns a bearer address selection response to the P-CSCF 2, and the bearer address selection response carries the public network address 1, the private network address 2, and the public network address 2.
  • the P-CSCF 2 determines that the UE 1 and the UE 2 transmit a third call request carrying the private network address 2 to the UE 2 by communicating via the public network address.
  • the UE 2 returns to the P-CSCF 2 a third call response carrying the private network address of the UE 2.
  • the P-CSCF 2 determines that the UE 1 and the UE 2 are bound by the public network address, and the private network address of the UE 2 is bound to the private network address 2.
  • the specific process is shown in Figure 10, including:
  • the P-CSCF 2 sends a bearer address binding request carrying the private network address of the UE 2 and the private network address 2 to the PDF 2;
  • PDF 2 sends a bearer address binding request carrying the private network address of UE 2 and the private network address 2 to BGF 2;
  • BGF 2 binds the private network address of the UE 2 to the private network address 2, and returns a bearer address binding response to the PDF 2, where the bearer address binding response indicates that the binding is successful;
  • PDF 2 returns the bearer address binding response to P-CSCF 2. 17) The P-CSCF 2 determines that the UE 1 and the UE 2 return a second call response carrying the public network address 2 to the P-CSCF 1 by communicating over the public network address.
  • the P-CSCF 1 determines that the UE 1 and the UE 2 communicate with each other through the public network address, and binds the public network address 2 returned by the P-CSCF 2 to the public network address 1 on the BGF 1.
  • the specific procedure is the same as the step 16), except that the bearer address binding request carries the public network address 2 and the public network address 1.
  • the P-CSCF 1 returns to the UE 1 a first call response carrying the private network address 1.
  • the media stream path between the UE 1 and the UE 2 is: the private network address of the UE 1, the private network address 1, the public network address 1, the public network address 2, the private network address 2, and the private network address of the UE 2;
  • the media flow path is as shown in Figure 3, which is the same as determined by the existing method.
  • the session control function entity, the call control system, and the policy decision function entity of the embodiment of the present invention are described in detail below.
  • Embodiment 3 The embodiment of the present invention further provides a session control function entity, which is configured to carry two types of addresses to the peer call control system during the call connection process, and select the address type according to the peer call control system.
  • Perform call connection as shown in Figure 11, including:
  • the call receiving unit 11 is configured to obtain a first call request of the first user to the second user, where the first call request carries a private network address of the first user;
  • the call connection unit 12 is configured to send a second call request to the second user, where the second call request carries a private network address of the first user and a first public network address bound to the private network address of the first user.
  • the response obtaining unit 13 is configured to obtain a returned second call response corresponding to the second call request generated by the call connection unit 11, the second call response carrying the second user that matches the media transmission address of the first user a media transmission address, where the media transmission address of the first user is a first public network address or a private network address of the first user, and the media transmission address of the second user is a second public network address or a private network address of the second user;
  • the response processing unit 14 is configured to generate, according to the media transmission address of the second user carried by the second call response obtained by the response obtaining unit 13, a first call response corresponding to the first call request, the first call response Carrying destination address information of the first user next hop.
  • the response processing unit 14 may specifically include:
  • the determining unit 141 is configured to determine, according to the media transmission address of the second user that is carried by the second call response obtained by the response obtaining unit 12, that the first user and the second user are in direct communication or through the public network. Address communication
  • the public network unit 142 is configured to: when the determining unit 141 determines that the first user and the second user communicate by using the public network address, return a first call response corresponding to the first call request, where the first call response carries a first private network address bound to the private network address of the first user;
  • the private network unit 143 is configured to: when the determining unit 141 determines that the first user and the second user are in direct communication, return a first call response corresponding to the first call request, where the first call response carries the first The private network address of the second user.
  • the response processing unit 14 may further include:
  • the binding release unit 144 is configured to release the first public network address bound to the private network address of the first user when the determining unit 141 determines that the first user and the second user are in direct communication.
  • the session control function entity of this embodiment can be used to perform the operation of the first call control system in the method of determining the media stream path relationship described in the first embodiment.
  • Embodiment 4 The embodiment of the present invention further provides a call control system, configured to select two types of addresses sent by a peer call control system during a call connection process, and perform call connection according to the selection result, as shown in FIG. 12 . As shown, including:
  • a tongue obtaining unit 201 configured to obtain a second call request to the second user, where the second call request carries the first public network address and the private network address of the first user; and is obtained according to the second call request The registered address of the second user;
  • the policy decision unit 202 is configured to determine, according to the private network address of the first user and the registration address of the second user that the session obtaining unit 201 provides, whether the first user and the second user can directly communicate, and determine the media of the first user according to the determination result. a transmission address, where the media transmission address of the first user is a first public network address or a private network address of the first user;
  • the address obtaining unit 203 is configured to obtain a media transmission address of the second user that matches the media transmission address of the first user provided by the policy decision unit 202;
  • the session response unit 204 is configured to return a second call response corresponding to the second call request obtained by the session obtaining unit 201, where the second call response carries the media transmission address of the second user provided by the address obtaining unit 203.
  • the call control system of this embodiment can be used as the second call control system to perform the method for determining the media stream path relationship described in Embodiment 1.
  • Embodiment 5 The embodiment of the present invention further provides a session control function entity, configured to request a PDF to select two types of addresses sent by the received peer call control system during a call connection process, according to the selection result.
  • the call connection as shown in Figure 13, includes:
  • the connection obtaining unit 21 is configured to obtain a second call request for the second user, where the second call request carries the first public network address and the private network address of the first user;
  • the address negotiation unit 22 is configured to obtain a registration address of the second user according to the second call request obtained by the connection obtaining unit 21, and send a bearer address selection request, where the bearer address selection request carries the first public network address, the first user Private network address and registered address of the second user;
  • the negotiation obtaining unit 23 is configured to obtain a returned bearer address selection response corresponding to the bearer address selection request generated by the address negotiation unit 22, where the bearer address selection response carries the media transmission address of the first user, and the media transmission of the first user
  • the address is the first public network address or the private network address of the first user
  • the address matching unit 24 is configured to obtain a second matching with the media transmission address of the first user carried in the bearer address selection response received by the negotiation obtaining unit 23 User's media transfer address;
  • connection response unit 25 is configured to return a second call response corresponding to the second call request obtained by the connection obtaining unit 21, where the second call response carries the media transmission address of the second user obtained by the address matching unit 24.
  • the address matching unit 24 may specifically include:
  • a determining subunit 241 configured to determine, according to the bearer address selection response, whether the first user and the second user can directly communicate
  • the public network sub-unit 242 is configured to obtain the second public network address as the media transmission address of the second user when the determining sub-unit 241 determines that the first user and the second user cannot directly communicate;
  • the private network sub-unit 243 is configured to obtain the private network address of the second user as the media transmission address of the second user when the determining sub-unit 241 determines that the first user and the second user can directly communicate.
  • the session control function entity of this embodiment may be used as the second session control function entity to perform the method for determining the media stream path relationship described in Embodiment 1.
  • the sixth embodiment of the present invention further provides a policy decision function entity, which is used to select a communication mode to be used between users according to the request of the P-CSCF in the process of call connection, as shown in FIG. :
  • the obtaining unit 31 is configured to obtain a bearer address selection request, where the bearer address selection request carries The first public network address, the private network address of the first user, and the registration address of the second user;
  • the address selection unit 32 is configured to: according to the private network of the first user carried by the bearer address selection request received by the selection obtaining unit 31 The address and the registration address of the second user determine whether the first user and the second user can directly communicate, and determine the media transmission address of the first user according to the determination result, where the media transmission address of the first user is the first public network address or the first User's private network address;
  • the selection response unit 33 is configured to return a bearer address selection response corresponding to the bearer address selection request obtained by the selection obtaining unit 31, the bearer address selection response carrying the media transmission address of the first user determined by the address selection unit 32.
  • the binding obtaining unit 34 is configured to obtain, when the address selecting unit 32 determines that the first user and the second user cannot directly communicate, obtain a second public network address bound to the first public network address;
  • the returned bearer address selection response returned by 33 also carries the second public network address.
  • the policy decision function entity of this embodiment may be used as the second policy decision function entity to perform the method for determining the media stream path relationship described in Embodiment 1.
  • the storage medium may include: a ROM, a RAM, a magnetic disk or an optical disk, and the like.
  • the foregoing embodiment of the present invention determines the media transmission address used to determine the path relationship from the private network address and the public network address associated with the user equipment by determining whether the user equipment of the calling party can directly communicate.
  • the direct path in the private network can be determined to carry the media stream bearer of the two parties.
  • the media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device. It not only reduces the processing load of the edge gateway device, but also reduces the use of the public network address, effectively avoids the generation of redundant paths, and reduces the probability of call failure due to the limited public network address.
  • the method for determining the relationship of the media stream path and the corresponding call control system, the policy decision function entity and the session control function entity are provided in detail in the above embodiments, and are used herein to help understand the method and core of the present invention. Thought; at the same time, for the average person in the field In the above, the description of the present invention is not limited to the scope of the present invention.

Abstract

A method for determining the media stream path relation involves selecting media transfer address which is used to determining the media stream path relation from the private network address associated with user equipment and public network address by judging whether the user equipments of the both calling sides can communicate with each other directly. The invention also provides corresponding call control system, session control function entity and strategy decision-making function entity. The invention solution, when the user equipments of the both calling sides are within the same address region, enable to determine the direct path in the private network to carry media streams of the both calling sides; here the media stream path established need not to be transferred by public address provided by an edge gateway equipment, which not only decreases processing load of the edge gateway equipment, but also reduces the use of public address, and lowers the calling failure probability caused by the limited public network address.

Description

确定媒体流路径关系的方法及呼叫控制系统  Method for determining media stream path relationship and call control system
本申请要求于 2007 年 9 月 29 日提交中国专利局、 申请号为 200710161532.3、 发明名称为"确定媒体流路径关系的方法及呼叫控制系统"的 中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200710161532.3, entitled "Method for Determining Media Flow Path Relationship and Call Control System", filed on September 29, 2007, the entire contents of which are incorporated by reference. In this application.
技术领域 Technical field
本发明涉及通信技术领域,具体涉及确定媒体流路径关系的方法及相应的 呼叫控制系统。  The present invention relates to the field of communication technologies, and in particular, to a method for determining a relationship of a media stream path and a corresponding call control system.
背景技术 Background technique
网络协议 ( IP: Internet Protocol ) 多媒体子系统 ( IMS: IP Multimedia Subsystem )是一种新颖的多媒体业务形式, 它能够满足终端客户多样化多媒 体业务的需求。 目前, IMS被认为是下一代网络的核心技术, 是解决移动与固 网融合, 引入语音、 数据和视频三重融合等差异化业务的重要方式。  IP Protocol (IP) The Multimedia Subsystem (IMS) is a novel form of multimedia service that meets the needs of end-customer diverse multimedia services. At present, IMS is considered to be the core technology of the next generation network, and is an important way to solve the convergence of mobile and fixed networks and introduce differentiated services such as voice, data and video triple integration.
IMS 网络通常包括代理呼叫会话控制功能(P-CSCF: Proxy Call Session Control Function )、 策略决策功能(PDF: Policy Decision Function )、 边缘网关 功能(BGF: Border Gateway Function )等功能实体。 一个 IMS网络结构的简 化示意图如图 1所示, 图 1中用户设备 ( UE: User Equipment ) 1和 UE 2通 过 IMS网络进行通信, P-CSCF 1、 PDF 1和 BGF 1为 UE 1侧的 IMS功能实 体, P-CSCF 2、 PDF 2和 BGF 2为 UE 2侧的 IMS功能实体。 UE与 P-CSCF 之间和 P-CSCF彼此之间采用呼叫控制信令进行交互(图 1 中以虚线表示), P-CSCF与 PDF之间、 PDF与 BGF之间采用承载控制信令进行交互 (图 1中 以双虚线表示), 媒体流按照确定的媒体流路径通过 BGF在 UE之间传输(图 1中以实线表示)。  The IMS network usually includes functional entities such as Proxy Call Session Control Function (P-CSCF: Proxy Call Session Control Function), Policy Decision Function (PDF), and Border Gateway Function (BGF). A simplified schematic diagram of an IMS network structure is shown in FIG. 1. In FIG. 1, user equipment (UE: User Equipment) 1 and UE 2 communicate through an IMS network, and P-CSCF 1, PDF 1 and BGF 1 are IMS on the UE 1 side. The functional entity, P-CSCF 2, PDF 2 and BGF 2 are IMS functional entities on the UE 2 side. The UE and the P-CSCF and the P-CSCF use call control signaling to interact with each other (indicated by a dotted line in Figure 1), and the bearer control signaling is used between the P-CSCF and the PDF and between the PDF and the BGF. (indicated by a double dashed line in Figure 1), the media stream is transmitted between UEs via the BGF in accordance with the determined media stream path (shown in solid lines in Figure 1).
目前, 当 UE 1向 UE 2发起呼叫时, 确定媒体流路径关系的方法如图 2 所示, 包括:  At present, when the UE 1 initiates a call to the UE 2, the method for determining the path relationship of the media stream is as shown in FIG. 2, including:
1 ) UE 1向 P-CSCF 1发起对 UE 2的呼叫, 该呼叫携带有 UE 1的私网地 址。  1) UE 1 initiates a call to UE 2 to P-CSCF 1, which carries the private network address of UE 1.
2 ) P-CSCF 1获得与 UE 1的私网地址绑定的私网地址 1和公网地址 1, 通常 P-CSCF 1使用承载控制信令通过 PDF 1请求 BGF 1分配与 UE 1的私网地址绑定 的私网地址 1和公网地址 1;通过将私网地址 1和 UE 1的私网地址绑定,确定 BGF 1到 UE 1的路径关系; 公网地址 1则用于 BGF 1代表 UE 1对外进行媒体流传输。 3 ) P-CSCF 1发送 UE 1对 UE 2的呼叫请求给 UE 2归属的 P-CSCF 2, 该呼叫 请求携带公网地址 1。 2) The P-CSCF 1 obtains the private network address 1 and the public network address 1 bound to the private network address of the UE 1, and the P-CSCF 1 requests the BGF 1 to allocate the private network of the UE 1 through the PDF 1 using bearer control signaling. The private network address 1 and the public network address 1 bound to the address; BGF is determined by binding the private network address 1 to the private network address of UE 1. 1 to the path relationship of UE 1; public network address 1 is used for BGF 1 to perform media stream transmission on behalf of UE 1. 3) The P-CSCF 1 sends a call request of the UE 1 to the UE 2 to the P-CSCF 2 to which the UE 2 belongs, and the call request carries the public network address 1.
4 ) P-CSCF 2使用承载控制信令通过 PDF 2请求 BGF 2分配私网地址 2和公 网地址 2, 并将公网地址 1与公网地址 2绑定; 通过绑定公网地址 2与公网地址 1, 确定 BGF 2到 BGF 1的路径关系;私网地址 2则用于 BGF 2将公网地址 2的媒体流 在私网内传输。  4) The P-CSCF 2 uses the bearer control signaling to request the BGF 2 to allocate the private network address 2 and the public network address 2 through the PDF 2, and bind the public network address 1 to the public network address 2; The public network address 1 determines the path relationship between BGF 2 and BGF 1. The private network address 2 is used by BGF 2 to transmit the media stream of public network address 2 in the private network.
5 ) P-CSCF 2向 UE 2发送携带私网地址 2的呼叫请求, 确定 UE 2到 BGF 2 的路径关系。  5) The P-CSCF 2 sends a call request carrying the private network address 2 to the UE 2, and determines the path relationship between the UE 2 and the BGF 2.
6 ) UE 2向 P-CSCF 2返回携带 UE 2的私网地址的呼叫响应。  6) UE 2 returns a call response carrying the private network address of UE 2 to P-CSCF 2.
7 )P-CSCF 2使用承载控制信令通过 PDF 2请求 BGF 2将 UE 2的私网地址与 私网地址 2绑定, 确定 BGF 2到 UE 2的路径关系。  7) The P-CSCF 2 uses the bearer control signaling to request the BGF 2 to bind the private network address of the UE 2 to the private network address 2 by using the bearer control signaling, and determine the path relationship of the BGF 2 to the UE 2.
8 ) P-CSCF 2向 P-CSCF 1返回携带公网地址 2的呼叫响应。  8) The P-CSCF 2 returns a call response carrying the public network address 2 to the P-CSCF 1.
9 ) P-CSCF 1使用承载控制信令通过 PDF 1请求 BGF 1将公网地址 2与公网 地址 1绑定, 即, 确定 BGF 1到 BGF 2的路径关系。  9) The P-CSCF 1 uses the bearer control signaling to request the BGF 1 to bind the public network address 2 to the public network address 1 by using the bearer control signaling, that is, to determine the path relationship of the BGF 1 to the BGF 2.
10 ) P-CSCF 1向 UE 1返回携带私网地址 1的呼叫响应,即,确定 UE 1到 BGF 1的路径关系。  10) The P-CSCF 1 returns the call response carrying the private network address 1 to the UE 1, that is, determines the path relationship of the UE 1 to the BGF 1.
此时 UE 1以自身的私网地址与 BGF 1的私网地址 1通信 , BGF 1按照地址的 绑定关系以公网地址 1代表私网地址 1与 BGF 2的公网地址 2通信, BGF 2按照地 址的绑定关系以私网地址 2代表公网地址 2与 UE 2的私网地址通信;所建立的媒 体流路径如图 3所示。 法所确定的媒体流路径需要经过 BGF提供的公网地址进行中转, 而当呼叫双 方的用户设备处于相同的地址域时, 例如 UE1与 UE2在同一个私有网络下, 这显然不是最佳的媒体流路径, 将造成路径冗余, 并且既增加了 BGF的处理 负荷又对公网地址造成浪费。  At this time, the UE 1 communicates with the private network address 1 of the BGF 1 by its own private network address. The BGF 1 communicates with the public network address 2 of the BGF 2 by the public network address 1 according to the binding relationship of the address, BGF 2 According to the binding relationship of the address, the private network address 2 represents the public network address 2 and communicates with the private network address of the UE 2; the established media stream path is as shown in FIG. 3 . The media stream path determined by the method needs to be transited through the public network address provided by the BGF, and when the user equipments of the calling parties are in the same address domain, for example, UE1 and UE2 are in the same private network, which is obviously not the best medium. The flow path will cause path redundancy and increase the processing load of the BGF and waste the public network address.
发明内容 Summary of the invention
本发明实施例提供确定媒体流路径关系的方法以及相应的呼叫控制系统、 策略决策功能实体和会话控制功能实体, 用于有效避免路径冗余。 一种确定媒体流路径关系的方法, 包括:接收第一用户对第二用户的第一 呼叫请求, 所述第一呼叫请求携带有第一用户的私网地址;发送对第二用户的 第二呼叫请求,所述第二呼叫请求携带有第一用户的私网地址和与该第一用户 的私网地址绑定的第一公网地址;接收返回的与所述第二呼叫请求对应的第二 呼叫响应,所述第二呼叫响应携带有与第一用户的媒体传输地址匹配的第二用 户的媒体传输地址;第一用户的媒体传输地址为第一公网地址或第一用户的私 网地址, 所述第二用户的媒体传输地址为第二公网地址或第二用户的私网地 址;根据所述第二呼叫响应携带的第二用户的媒体传输地址,返回与所述第一 呼叫请求对应的第一呼叫响应,所述第一呼叫响应携带有所述第一用户下一跳 的目的地址信息。 Embodiments of the present invention provide a method for determining a path relationship of a media stream, and a corresponding call control system, a policy decision function entity, and a session control function entity, for effectively avoiding path redundancy. A method for determining a relationship of a media stream path, comprising: receiving a first call request of a first user to a second user, where the first call request carries a private network address of the first user; a call request, the second call request carrying a private network address of the first user and a first public network address bound to the private network address of the first user; receiving the returned corresponding to the second call request The second call response carries a media transmission address of the second user that matches the media transmission address of the first user; the media transmission address of the first user is the first public network address or the private network of the first user Address, the media transmission address of the second user is a second public network address or a private network address of the second user; and returning with the first call according to the media transmission address of the second user carried in the second call response And requesting a corresponding first call response, where the first call response carries destination address information of the first user next hop.
一种确定媒体流路径关系的方法,包括:接收对第二用户的第二呼叫请求, 所述第二呼叫请求携带有第一公网地址和第一用户的私网地址; W所述第二 呼叫请求获得第二用户的注册地址 ,才 据所述第一用户的私网地址和第二用户 的注册地址判断第一用户和第二用户能否直接通信,按照判断结果确定第一用 户的媒体传输地址,所述第一用户的媒体传输地址为第一公网地址或第一用户 的私网地址;获得与所述第一用户的媒体传输地址匹配的第二用户的媒体传输 地址,返回与所述第二呼叫请求对应的第二呼叫响应,所述第二呼叫响应携带 有所述第二用户的媒体传输地址。  A method for determining a relationship of a media stream path, comprising: receiving a second call request to a second user, where the second call request carries a first public network address and a private network address of the first user; The call request obtains the registered address of the second user, and determines whether the first user and the second user can directly communicate according to the private network address of the first user and the registered address of the second user, and determines the media of the first user according to the determination result. Transmitting an address, the media transmission address of the first user is a first public network address or a private network address of the first user; obtaining a media transmission address of the second user that matches the media transmission address of the first user, and returning The second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user.
一种确定媒体流路径关系的方法,包括:接收对第二用户的第二呼叫请求, 所述第二呼叫请求携带有第一公网地址和第一用户的私网地址;才 据所述第二 呼叫请求获得第二用户的注册地址, 并发送承载地址选择请求, 所述承载地址 选择请求携带有所述第一公网地址、第一用户的私网地址和第二用户的注册地 址;接收返回的与所述承载地址选择请求对应的承载地址选择响应, 所述承载 地址选择响应携带有第一用户的媒体传输地址,所述第一用户的媒体传输地址 为第一公网地址或第一用户的私网地址;获得与所述第一用户的媒体传输地址 匹配的第二用户的媒体传输地址,返回与所述第二呼叫请求对应的第二呼叫响 应, 所述第二呼叫响应携带有所述第二用户的媒体传输地址。  A method for determining a relationship of a media stream path, comprising: receiving a second call request to a second user, where the second call request carries a first public network address and a private network address of the first user; The second call request obtains the registration address of the second user, and sends a bearer address selection request, where the bearer address selection request carries the first public network address, the private network address of the first user, and the registered address of the second user; Returning a bearer address selection response corresponding to the bearer address selection request, the bearer address selection response carries a media transmission address of the first user, and the media transmission address of the first user is a first public network address or the first a private network address of the user; obtaining a media transmission address of the second user that matches the media transmission address of the first user, and returning a second call response corresponding to the second call request, where the second call response carries The media transfer address of the second user.
一种确定媒体流路径关系的方法, 包括: 接收承载地址选择请求, 所述承 载地址选择请求携带有第一公网地址、第一用户的私网地址和第二用户的注册 地址; 所述第一用户的私网地址和第二用户的注册地址判断第一用户和第 二用户能否直接通信; 按照判断结果确定第一用户的媒体传输地址, 所述第一 用户的媒体传输地址为第一公网地址或第一用户的私网地址;返回与所述承载 地址选择请求对应的承载地址选择响应,所述承载地址选择响应携带有所述第 一用户的媒体传输地址。 A method for determining a path relationship of a media stream, comprising: receiving a bearer address selection request, where the bearer address selection request carries a first public network address, a private network address of the first user, and a registration of the second user The first user's private network address and the second user's registered address determine whether the first user and the second user can directly communicate; the first user's media transmission address is determined according to the determination result, and the first user's media The transport address is the first public network address or the private network address of the first user; the bearer address selection response corresponding to the bearer address selection request is returned, and the bearer address selection response carries the media transport address of the first user.
一种确定媒体流路径关系的方法, 包括:接收第一用户对第二用户的第一 呼叫请求, 所述第一呼叫请求携带有第一用户的私网地址; 确定所述第二用户 归属于本会话控制功能实体,获得第二用户的注册地址;发送承载方式判断请 求 ,所述承载方式判断请求携带有所述第一用户的私网地址和第二用户的注册 地址;接收返回的与所述承载方式判断请求对应的承载方式判断响应, 所述承 载方式判断响应携带有表示第一用户和第二用户能否直接通信的信息;根据所 述承载方式判断响应中携带的表示第一用户和第二用户能否直接通信的信息, 确定第一用户和第二用户能直接通信; 获得第二用户的私网地址,返回与所述 第一呼叫请求对应的第一呼叫响应,所述第一呼叫响应携带有所述第二用户的 私网地址。  A method for determining a relationship of a media stream path, comprising: receiving a first call request of a first user to a second user, where the first call request carries a private network address of the first user; determining that the second user belongs to The session control function entity obtains the registration address of the second user, and sends a bearer mode determination request, where the bearer mode determination request carries the private network address of the first user and the registration address of the second user; The bearer mode determining response corresponding to the bearer mode determining request carries the information indicating whether the first user and the second user can directly communicate; and determining, according to the bearer mode, the first user and the carrying Determining, by the second user, whether the first user and the second user can directly communicate; obtaining a private network address of the second user, and returning a first call response corresponding to the first call request, the first The call response carries the private network address of the second user.
一种确定媒体流路径关系的方法, 包括: 接收承载方式判断请求, 所述承 载方式判断请求携带有第一用户的私网地址和第二用户的注册地址; 据所述 第一用户的私网地址和第二用户的注册地址判断第一用户和第二用户能否直 接通信; 返回与所述承载方式判断请求对应的承载方式判断响应, 所述承载方 式判断响应携带有与所述判断结果对应的信息。  A method for determining a relationship of a media stream path, comprising: receiving a bearer mode determining request, where the bearer mode determining request carries a private network address of a first user and a registered address of a second user; according to the private network of the first user The address and the registration address of the second user determine whether the first user and the second user can directly communicate; return a bearer mode determination response corresponding to the bearer mode determination request, and the bearer mode judgment response carries a corresponding to the judgment result Information.
一种会话控制功能实体, 包括: 呼叫接收单元, 用于获得第一用户对第二 用户的第一呼叫请求, 所述第一呼叫请求携带有第一用户的私网地址;  A session control function entity, comprising: a call receiving unit, configured to obtain a first call request of a first user to a second user, where the first call request carries a private network address of the first user;
呼叫接续单元, 用于发送对第二用户的第二呼叫请求, 所述第二呼叫请求 携带有第一用户的私网地址和与该第一用户的私网地址绑定的第一公网地址; 响应获得单元, 用于获得返回的与所述第二呼叫请求对应的第二呼叫响应, 所 述第二呼叫响应携带有与第一用户的媒体传输地址匹配的第二用户的媒体传 输地址, 所述第一用户的媒体传输地址为第一公网地址或第一用户的私网地 址, 所述第二用户的媒体传输地址为第二公网地址或第二用户的私网地址; 响 应处理单元, 用于根据所述第二呼叫响应携带的第二用户的媒体传输地址,返 回与所述第一呼叫请求对应的第一呼叫响应,所述第一呼叫响应携带有所述第 一用户下一跳的目的地址信息。 a call connection unit, configured to send a second call request to the second user, where the second call request carries a private network address of the first user and a first public network address bound to the private network address of the first user And a response obtaining unit, configured to obtain a returned second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user that matches the media transmission address of the first user, The media transmission address of the first user is the first public network address or the private network address of the first user, and the media transmission address of the second user is the second public network address or the private network address of the second user; a unit, configured to return, according to the media transmission address of the second user carried by the second call response, Returning to the first call response corresponding to the first call request, the first call response carries destination address information of the first user next hop.
一种呼叫控制系统, 包括: 会话获得单元, 用于获得对第二用户的第二呼 叫请求, 所述第二呼叫请求携带有第一公网地址和第一用户的私网地址; 并才艮 据所述第二呼叫请求获得第二用户的注册地址; 策略决策单元, 用于 据所述 第一用户的私网地址和所述第二用户的注册地址判断第一用户和第二用户能 否直接通信,按照判断结果确定第一用户的媒体传输地址, 所述第一用户的媒 体传输地址为第一公网地址或第一用户的私网地址; 地址获得单元, 用于获得 与所述第一用户的媒体传输地址匹配的第二用户的媒体传输地址;会话响应单 元, 用于返回与所述第二呼叫请求对应的第二呼叫响应, 所述第二呼叫响应携 带有所述第二用户的媒体传输地址。  A call control system, comprising: a session obtaining unit, configured to obtain a second call request to a second user, where the second call request carries a first public network address and a private network address of the first user; Determining, according to the second call request, a registration address of the second user; the policy decision unit, configured to determine, according to the private network address of the first user, and the registration address of the second user, whether the first user and the second user can Directly communicating, determining a media transmission address of the first user according to the determination result, the media transmission address of the first user is a first public network address or a private network address of the first user; and an address obtaining unit, configured to obtain the a media transmission address of the second user that matches the media transmission address of the user; a session response unit, configured to return a second call response corresponding to the second call request, where the second call response carries the second user Media transfer address.
一种会话控制功能实体, 包括: 接续获得单元, 用于获得发送给第二用户 的第二呼叫请求,所述第二呼叫请求携带有第一公网地址和第一用户的私网地 址; 地址协商单元, 用于^^据所述第二呼叫请求获得第二用户的注册地址, 并 发送承载地址选择请求, 所述承载地址选择请求携带有所述第一公网地址、第 一用户的私网地址和第二用户的注册地址; 协商获得单元, 用于获得返回的与 所述承载地址选择请求对应的承载地址选择响应 ,所述承载地址选择响应携带 有第一用户的媒体传输地址 ,所述第一用户的媒体传输地址为第一公网地址或 第一用户的私网地址; 地址匹配单元,用于获得与所述第一用户的媒体传输地 址匹配的第二用户的媒体传输地址;接续响应单元, 用于返回与所述第二呼叫 请求对应的第二呼叫响应 ,所述第二呼叫响应携带有所述第二用户的媒体传输 地址。  A session control function entity, comprising: a connection obtaining unit, configured to obtain a second call request sent to a second user, where the second call request carries a first public network address and a private network address of the first user; a negotiating unit, configured to obtain a registration address of the second user according to the second call request, and send a bearer address selection request, where the bearer address selection request carries the first public network address and the private content of the first user a network address and a registration address of the second user; a negotiation obtaining unit, configured to obtain a returned bearer address selection response corresponding to the bearer address selection request, where the bearer address selection response carries a media transmission address of the first user, where The media transmission address of the first user is the first public network address or the private network address of the first user; the address matching unit is configured to obtain a media transmission address of the second user that matches the media transmission address of the first user; a connection response unit, configured to return a second call response corresponding to the second call request, where the second call response carries The media transmission address of the second user.
一种策略决策功能实体, 包括: 选择获得单元, 用于获得承载地址选择请 求, 所述承载地址选择请求携带有第一公网地址、第一用户的私网地址和第二 用户的注册地址; 地址选择单元, 用于才 据所述第一用户的私网地址和第二用 户的注册地址判断第一用户和第二用户能否直接通信,按照判断结果确定第一 用户的媒体传输地址,所述第一用户的媒体传输地址为第一公网地址或第一用 户的私网地址; 选择响应单元, 用于返回与所述承载地址选择请求对应的承载 地址选择响应 , 所述承载地址选择响应携带有所述第一用户的媒体传输地址。 本发明实施例的技术方案中通过对呼叫双方的用户设备能否直接通信进 行判断 ,从与用户设备关联的私网地址和公网地址中选择用于确定路径关系的 媒体传输地址 , 当呼叫双方的用户设备处于相同地址域时 ,通过确定私网内的 直接路径来进行呼叫双方的媒体流承载;此时建立的媒体流路径无需经过边缘 网关设备提供的公网地址进行中转, 不仅减少了边缘网关设备的处理负荷,还 减少了公网地址的使用,有效避免了冗余路径的产生, 降低了由于公网地址有 限而导致的呼叫失败的概率。 A policy decision function entity, comprising: a selection obtaining unit, configured to obtain a bearer address selection request, where the bearer address selection request carries a first public network address, a private network address of the first user, and a registered address of the second user; An address selection unit, configured to determine whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and determine a media transmission address of the first user according to the determination result, where The media transmission address of the first user is the first public network address or the private network address of the first user; the selection response unit is configured to return a bearer address selection response corresponding to the bearer address selection request, and the bearer address selection response Carrying the media transmission address of the first user. In the technical solution of the embodiment of the present invention, a media transmission address for determining a path relationship is selected from a private network address and a public network address associated with the user equipment by determining whether the user equipment of the calling party can directly communicate with each other. When the user equipment is in the same address domain, the media stream bearer of the two parties is determined by determining the direct path in the private network. The media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device, which not only reduces the edge. The processing load of the gateway device also reduces the use of the public network address, effectively avoids the generation of redundant paths, and reduces the probability of call failure due to limited public network addresses.
附图说明 DRAWINGS
图 1是现有 IMS网络结构的简化示意图;  1 is a simplified schematic diagram of a structure of an existing IMS network;
图 2是现有确定媒体流路径关系的方法流程示意图;  2 is a schematic flow chart of a method for determining a relationship of a media stream path;
图 3是按照现有方法确定的媒体流路径示意图;  3 is a schematic diagram of a media flow path determined according to an existing method;
图 4是本发明实施例一确定媒体流路径关系的方法流程示意图;  4 is a schematic flowchart of a method for determining a path relationship of a media stream according to Embodiment 1 of the present invention;
图 5是本发明实施例二确定媒体流路径关系的方法流程示意图;  5 is a schematic flowchart of a method for determining a path relationship of a media stream according to Embodiment 2 of the present invention;
图 6是本发明实施例一的一个具体应用的方法流程示意图;  6 is a schematic flow chart of a specific application method according to Embodiment 1 of the present invention;
图 7是本发明实施例一的应用例的地址分配流程示意图;  7 is a schematic diagram of an address allocation process of an application example according to Embodiment 1 of the present invention;
图 8是本发明实施例一的应用例的地址释放流程示意图;  8 is a schematic diagram of an address release procedure of an application example according to Embodiment 1 of the present invention;
图 9是本发明实施例一的应用例中确定的一种媒体流路径示意图; 图 10是本发明实施例一的应用例的地址绑定流程示意图;  9 is a schematic diagram of a media flow path determined in an application example of the first embodiment of the present invention; FIG. 10 is a schematic diagram of an address binding process of an application example according to Embodiment 1 of the present invention;
图 11是本发明实施例三会话控制功能实体的逻辑结构示意图;  11 is a schematic diagram showing the logical structure of a third session control function entity according to an embodiment of the present invention;
图 12是本发明实施例四呼叫控制系统的逻辑结构示意图;  12 is a schematic diagram showing the logical structure of a call control system according to a fourth embodiment of the present invention;
图 13是本发明实施例五会话控制功能实体的逻辑结构示意图;  13 is a schematic diagram showing the logical structure of a five session control function entity according to an embodiment of the present invention;
图 14是本发明实施例六策略决策功能实体的逻辑结构示意图。  FIG. 14 is a schematic diagram showing the logical structure of a sixth policy decision function entity according to an embodiment of the present invention.
具体实施方式 detailed description
本发明实施例提供确定媒体流路径关系的方法,对呼叫双方的用户设备能 否直接通信进行判断 ,从与用户设备关联的私网地址和公网地址中选择用于确 定路径关系的媒体传输地址。本发明实施例还提供相应的呼叫控制系统、策略 决策功能实体和会话控制功能实体。 以下分别进行伴细说明。  An embodiment of the present invention provides a method for determining a path relationship of a media stream, and determining whether a user equipment of the two parties can directly communicate with each other, and selecting a media transmission address for determining a path relationship from a private network address and a public network address associated with the user equipment. . Embodiments of the present invention also provide a corresponding call control system, a policy decision function entity, and a session control function entity. The following is a detailed description.
实施例一、 一种确定媒体流路径关系的方法。 流程如图 4所示, 包括步骤: Al、 第一呼叫控制系统接收第一用户对第二用户的第一呼叫请求, 所述 第一呼叫请求携带有第一用户的私网地址。 Embodiment 1 A method for determining a path relationship of a media stream. The process is as shown in FIG. 4, including the steps of: Al, the first call control system receives a first call request of the first user to the second user, The first call request carries the private network address of the first user.
用户的私网地址是其在所属地址域内使用的通讯地址,通常是其所在地址 域内的网络通讯地址,例如 192.168.0.1等;第一用户在对第二用户发起呼叫时, 呼叫中所使用的第二用户的标识通常可以是便于识别和记忆的名称, 例如 UE2@abc.com等,第一呼叫控制系统根据第二用户的标识可确定第二用户归属 的第二呼叫控制系统。 该步骤可参照现有方式执行。  The private network address of the user is the communication address used in the address domain, usually the network communication address in the address domain, such as 192.168.0.1, etc.; when the first user initiates a call to the second user, the call is used. The identifier of the second user may generally be a name that is easy to identify and memorize, such as UE2@abc.com, etc., and the first call control system may determine the second call control system to which the second user belongs according to the identifier of the second user. This step can be performed with reference to the existing method.
A2、 第一呼叫控制系统发送对第二用户的第二呼叫请求给第二用户归属 的第二呼叫控制系统,所述第二呼叫请求携带有第一用户的私网地址和与该第 一用户的私网地址绑定的第一公网地址。  A2: The first call control system sends a second call request to the second user to the second call control system of the second user, where the second call request carries the private network address of the first user and the first user The first public network address bound to the private network address.
本实施例中所称呼叫控制系统为网络侧对呼叫进行控制的设备的集合 ,可 以由具备综合能力的单个实体来实现,也可以采用分层结构由多个实体组合而 成, 例如可包括会话控制功能实体和策略决策功能实体等。此步骤中与第一用 户的私网地址绑定的第一公网地址的获得可参照现有方式执行。  The call control system in the embodiment is a set of devices for controlling the call on the network side, and may be implemented by a single entity having comprehensive capabilities, or may be composed of multiple entities by using a hierarchical structure, for example, may include a session. Control function entities and policy decision function entities, etc. The obtaining of the first public network address bound to the private network address of the first user in this step can be performed by referring to the existing mode.
若第一呼叫控制系统采用包括第一会话控制功能实体和第一策略决策功 能实体的分层结构,此步骤可具体执行为: 第一会话控制功能实体接收到呼叫 后 ,使用承载控制信令通过第一策略决策功能实体请求第一边缘网关设备分配 与第一用户的私网地址绑定的第一公网地址。 当然, 第一边缘网关设备还会同 时分配一同绑定的第一私网地址用作自身与第一用户在私网内的通讯地址。  If the first call control system adopts a hierarchical structure including the first session control function entity and the first policy decision function entity, this step may be specifically performed as follows: After receiving the call, the first session control function entity uses bearer control signaling to pass The first policy decision function entity requests the first edge gateway device to allocate a first public network address bound to the private network address of the first user. Of course, the first edge gateway device also allocates the first private network address that is bound together at the same time as the communication address of the first user in the private network.
为便于后续识别第二呼叫控制系统返回的地址选择信息,第一呼叫控制系 统可以在发送的第二呼叫请求中 ,按设定的位置顺序放置第一公网地址和第一 用户的私网地址; 例如, 可将第一用户的私网地址放置在前, 将第一公网地址 放置在后。  In order to facilitate subsequent identification of the address selection information returned by the second call control system, the first call control system may, in the second call request sent, place the first public network address and the private network address of the first user in the set position order. For example, the first user's private network address can be placed first, and the first public network address can be placed later.
A3、 第二呼叫控制系统根据所述第二呼叫请求获得第二用户的注册地址 , 才艮据所述第一用户的私网地址和第二用户的注册地址判断第一用户和第二用 户能否直接通信,按照判断结果确定第一用户的媒体传输地址,该第一用户的 媒体传输地址为第一公网地址或第一用户的私网地址。  A3. The second call control system obtains the registration address of the second user according to the second call request, and determines that the first user and the second user can be determined according to the private network address of the first user and the registration address of the second user. The direct communication is performed, and the media transmission address of the first user is determined according to the determination result, and the media transmission address of the first user is the first public network address or the private network address of the first user.
若第二呼叫控制系统采用包括第二会话控制功能实体和第二策略决策功 能实体的分层结构, 此步骤可具体执行为:  If the second call control system adopts a hierarchical structure including the second session control function entity and the second policy decision function entity, this step may be specifically implemented as:
①第二会话控制功能实体接收所述第二呼叫请求 , ^居所述第二呼叫请求 获得第二用户的注册地址, 向第二策略决策功能实体发送承载地址选择请求, 所述承载地址选择请求携带所述第一公网地址、第一用户的私网地址和第二用 户的注册地址。 1 The second session control function entity receives the second call request, and the second call request Obtaining a registration address of the second user, and sending a bearer address selection request to the second policy decision function entity, where the bearer address selection request carries the first public network address, the private network address of the first user, and the registered address of the second user .
第二会话控制功能实体可根据第二呼叫请求中使用的第二用户的标识获 得第二用户的注册地址。  The second session control function entity may obtain the registration address of the second user based on the identity of the second user used in the second call request.
②第二策略决策功能实体^ ^据所述第一用户的私网地址和第二用户的注 册地址判断第一用户和第二用户能否直接通信,按照判断结果确定第一用户的 媒体传输地址,该第一用户的媒体传输地址为第一公网地址或第一用户的私网 地址,返回携带有所述第一用户的媒体传输地址的承载地址选择响应给第二会 话控制功能实体。  The second policy decision function entity determines whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and determines the media transmission address of the first user according to the determination result. The media transmission address of the first user is the first public network address or the private network address of the first user, and the bearer address selection response carrying the media transmission address of the first user is returned to the second session control function entity.
在此步骤中, 第二策略决策功能实体执行此次呼叫承载方式的选择,确定 第一用户与第二用户是直接通信还是采用公网地址进行通信。通常可通过判断 第一用户的私网地址和第二用户的注册地址是否属于同一个地址域来确定第 一用户和第二用户能否直接通信,如果属于同一个地址域则可以直接通信,如 果不属于同一个地址域则需要使用公网地址进行通信。  In this step, the second policy decision function entity performs the selection of the call bearer mode to determine whether the first user communicates with the second user directly or by using a public network address. Generally, whether the first user and the second user can directly communicate by determining whether the private network address of the first user and the registered address of the second user belong to the same address domain, if the information belongs to the same address domain, the communication can be directly performed. If you do not belong to the same address domain, you need to use the public network address for communication.
第二策略决策功能实体在返回的承载地址选择响应中可以仅携带承载方 式选择的结果, 即第一用户的媒体传输地址, 这种情况下, 当所返回的是第一 公网地址时,第二会话控制功能实体可按照现有方式使用承载地址请求再次通 过第二策略决策功能实体请求第二边缘网关设备分配与第一公网地址绑定的 第二公网地址。  The second policy decision function entity may only carry the result of the bearer mode selection, that is, the media transport address of the first user, in this case, when the returned first public network address, the second The session control function entity may request the second edge gateway device to allocate the second public network address bound to the first public network address by using the second policy decision function entity by using the bearer address request in an existing manner.
当然, 第二策略决策功能实体也可以合并执行地址选择和地址分配的过 程, 即当第二策略决策功能实体判断第一用户和第二用户不能直接通信时, 除 了选择第一公网地址作为第一用户的媒体传输地址,还执行获得与第一公网地 址绑定的第二公网地址的操作,并在返回的承载地址选择响应中增加携带第二 公网地址。这样第二会话控制功能实体只需要下发一次承载地址选择请求,在 选择结果为第一公网地址时, 无须再次下发承载地址请求。  Certainly, the second policy decision function entity may also combine the process of performing address selection and address allocation, that is, when the second policy decision function entity determines that the first user and the second user cannot directly communicate, except for selecting the first public network address as the first The operation of obtaining the second public network address bound to the first public network address is performed by the media transport address of the user, and the second public network address is added to the returned bearer address selection response. In this way, the second session control function entity only needs to deliver the bearer address selection request once. When the result of the selection is the first public network address, the bearer address request does not need to be sent again.
A4、 第二呼叫控制系统获得与所述第一用户的媒体传输地址匹配的第二 用户的媒体传输地址,返回携带有所述第二用户的媒体传输地址的第二呼叫响 应给第一呼叫控制系统。 根据上一步骤中选择的第一用户的媒体传输地址,第二呼叫控制系统可分 为两种情形进行处理: A4. The second call control system obtains a media transmission address of the second user that matches the media transmission address of the first user, and returns a second call response that carries the media transmission address of the second user to the first call control. system. According to the media transmission address of the first user selected in the previous step, the second call control system can be processed in two cases:
①第一用户的媒体传输地址为第一公网地址,表示第一用户和第二用户需 要使用公网地址进行通信,因此第二呼叫控制系统需要获得第二公网地址作为 与第一用户的媒体传输地址匹配的第二用户的媒体传输地址。  1 The first user's media transmission address is the first public network address, indicating that the first user and the second user need to use the public network address for communication, so the second call control system needs to obtain the second public network address as the first user. The media transfer address of the second user whose media transfer address matches.
若第二呼叫控制系统采用包括第二会话控制功能实体和第二策略决策功 能实体的分层结构,根据上一步骤中第二策略决策功能实体对承载地址选择请 求的不同处理方式,第二会话控制功能实体可以使用承载控制信令继续获得第 二公网地址;也可以直接从第二策略决策功能实体返回的承载地址选择响应中 获得第二公网地址。此后, 第二会话控制功能实体可采用现有方式执行媒体流 路径关系的确定操作。  If the second call control system adopts a hierarchical structure including the second session control function entity and the second policy decision function entity, according to the second policy decision function entity in the previous step, the different processing manner of the bearer address selection request, the second session The control function entity may continue to obtain the second public network address by using the bearer control signaling; or obtain the second public network address directly from the bearer address selection response returned by the second policy decision function entity. Thereafter, the second session control function entity can perform the determining operation of the media stream path relationship in an existing manner.
②第一用户的媒体传输地址为第一用户的私网地址,表示第一用户和第二 用户能够直接通信,因此第二呼叫控制系统需要获得第二用户的私网地址作为 与第一用户的媒体传输地址匹配的第二用户的媒体传输地址。 具体过程可包 括:  2 The media transmission address of the first user is the private network address of the first user, indicating that the first user and the second user can directly communicate, so the second call control system needs to obtain the private network address of the second user as the first user. The media transfer address of the second user whose media transfer address matches. The specific process can include:
a、 第二呼叫控制系统向第二用户发送携带第一用户的私网地址的第三呼 叫请求;  a second call control system sends a third call request carrying the private network address of the first user to the second user;
b、 第二用户向第二呼叫控制系统返回携带第二用户的私网地址的第三呼 叫响应。  b. The second user returns a third call response carrying the private network address of the second user to the second call control system.
若第二呼叫控制系统采用包括第二会话控制功能实体和第二策略决策功 能实体的分层结构, 上述步骤&、 b中的操作由第二会话控制功能实体执行。  If the second call control system employs a hierarchical structure including the second session control function entity and the second policy decision function entity, the operations in the above steps &, b are performed by the second session control function entity.
此外,若第一呼叫控制系统在发送的第二呼叫请求中按设定的位置顺序放 置第一公网地址和第一用户的私网地址,则第二呼叫控制系统可按如下方式返 回携带有第二用户的媒体传输地址的第二呼叫响应:将第二用户的媒体传输地 址对应于其所匹配的第一用户的媒体传输地址在所述第二呼叫请求中的位置 进行放置 ,将与所述第二呼叫请求中的另一条地址信息对应的位置设置为无效 地址。 例如, 若第二呼叫请求中第一用户的私网地址放置在前, 第一公网地址 放置在后; 则第二呼叫响应中也携带两条地址信息, 若第一条地址信息有效, 则为第二用户的私网地址, 若第一条地址信息无效、第二条地址信息有效则为 第二公网地址。 无效地址可基于双方的约定设置, 例如将全 0地址视为无效地 址。 例如: 第二呼叫请求中放置的地址为【1.1丄1; 2.2.2.2】, 假设第一用户的 私网地址在前, 第一公网地址在后; 第二呼叫响应为【0.0.0.0; 3.3.3.3】; 因为 第二呼叫响应中前一个地址无效, 所以判断返回的是与第一公网地址 2.2.2.2匹 配的第二公网地址 3.3.3.3 , 进而判断后续需要按照现有路径关系确定过程继续 执行。 In addition, if the first call control system places the first public network address and the private network address of the first user in the set position sequence in the second call request sent, the second call control system may return and carry the following a second call response of the media transmission address of the second user: placing the media transmission address of the second user corresponding to the location of the media transmission address of the first user to which it matches in the second call request, The location corresponding to another address information in the second call request is set as an invalid address. For example, if the private network address of the first user in the second call request is placed first, and the first public network address is placed after the second call response, the second call response also carries two address information, and if the first address information is valid, For the private network address of the second user, if the first address information is invalid and the second address information is valid, The second public network address. The invalid address can be set based on the agreement of both parties, for example, treating the all 0 address as an invalid address. For example: the address placed in the second call request is [1.1丄1; 2.2.2.2], assuming that the private network address of the first user is in the front and the first public network address is in the back; the second call response is [0.0.0.0; 3.3.3.3]; Because the previous address in the second call response is invalid, it is judged that the second public network address 3.3.3.3 matching the first public network address 2.2.2.2 is returned, and then the subsequent path relationship is determined according to the existing path. The determination process continues.
A5、 第一呼叫控制系统根据所述第二呼叫响应中携带的第二用户的媒体 传输地址,返回与所述第一呼叫请求对应的第一呼叫响应, 所述第一呼叫响应 携带有所述第一用户下一跳的目的地址信息。  The first call control system returns a first call response corresponding to the first call request according to the media transmission address of the second user carried in the second call response, where the first call response carries the Destination address information of the first user next hop.
第一呼叫控制系统^ ^据第二呼叫响应携带的第二用户的媒体传输地址来 确定第一用户和第二用户能否直接通信。基于上一步骤中第二呼叫控制系统按 位置顺序放置第二用户的媒体传输地址的方式,第一呼叫控制系统可^^据第二 呼叫响应中有效地址的位置判断第一用户和第二用户为直接通信或为通过公 网地址通信。 第一呼叫控制系统根据判断结果分为两种情形进行处理:  The first call control system determines whether the first user and the second user can directly communicate according to the media transmission address of the second user carried in the second call response. The first call control system can determine the first user and the second user according to the location of the effective address in the second call response, based on the manner in which the second call control system places the media transmission address of the second user in the position order in the previous step. For direct communication or for communication via a public address. The first call control system is divided into two situations according to the judgment result:
①第二用户的媒体传输地址为第二公网地址,表示第一用户和第二用户需 要使用公网地址进行通信,第一呼叫控制系统可采用现有方式执行路径关系的 确定操作, 即将所述第二呼叫响应中携带的第二公网地址与第一公网地址绑 定,返回携带有与所述第一用户的私网地址绑定的第一私网地址的第一呼叫响 应。  1 The second user's media transmission address is a second public network address, indicating that the first user and the second user need to use the public network address for communication, and the first call control system may perform the path relationship determination operation in an existing manner, that is, The second public network address carried in the second call response is bound to the first public network address, and returns a first call response carrying the first private network address bound to the private network address of the first user.
②第二用户的媒体传输地址为第二用户的私网地址,表示第一用户和第二 用户能够直接通信,第一呼叫控制系统向第一用户返回携带有第二用户的私网 地址的第一呼叫响应 ,即可直接通过第二用户的私网地址与第一用户的私网地 址确定第一用户到第二用户的路径关系。  2 The media transmission address of the second user is the private network address of the second user, indicating that the first user and the second user can directly communicate, and the first call control system returns to the first user the number of the private network address carrying the second user. A call response can directly determine the path relationship between the first user and the second user by using the private network address of the second user and the private network address of the first user.
此外,在第一呼叫控制系统确定第一用户和第二用户为直接通信之后, 为 了不浪费之前已分配的第一公网地址,第一呼叫控制系统还可以释放绑定到第 一用户的私网地址的第一公网地址。若第一呼叫控制系统采用包括第一^舌控 制功能实体和第一策略决策功能实体的分层结构,此步骤可具体执行为: 第一 会话控制功能实体使用承载控制信令通过第一策略决策功能实体请求第一边 缘网关设备释放绑定到第一用户的私网地址的第一公网地址; 当然, 第一边缘 网关设备会同时释放一同绑定的第一私网地址。 In addition, after the first call control system determines that the first user and the second user are in direct communication, the first call control system may release the private binding to the first user in order not to waste the previously assigned first public network address. The first public network address of the network address. If the first call control system adopts a hierarchical structure including the first control function entity and the first policy decision function entity, this step may be specifically performed as follows: the first session control function entity uses bearer control signaling to pass the first policy decision The function entity requests the first edge gateway device to release the first public network address bound to the private network address of the first user; of course, the first edge The gateway device releases the first private network address that is bound together.
上述实施例中通过在被叫侧对呼叫双方的用户设备能否直接通信进行判 断,从与主叫方用户设备关联的私网地址和公网地址中选择用于确定路径关系 的媒体传输地址, 当呼叫双方的用户设备处于相同地址域时, 能够确定私网内 的直接路径来进行呼叫双方的媒体流承载;此时建立的媒体流路径无需经过边 缘网关设备提供的公网地址进行中转, 不仅减少了边缘网关设备的处理负荷, 还减少了公网地址的使用 , 降低了由于公网地址有限而导致的呼叫失败的概 率。  In the above embodiment, by determining whether the user equipment of the calling party can directly communicate on the called side, the media transmission address for determining the path relationship is selected from the private network address and the public network address associated with the calling party user equipment. When the user equipments of the calling parties are in the same address domain, the direct path in the private network can be determined to carry the media stream bearer of the two parties. The media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device. The processing load of the edge gateway device is reduced, the use of the public network address is reduced, and the probability of call failure due to the limited public network address is reduced.
实施例二、 一种确定媒体流路径关系的方法, 流程如图 5所示。  Embodiment 2 A method for determining a relationship of a media stream path is shown in FIG. 5.
本实施例与实施例一的区别之处在于,实施例一采用在被叫侧对呼叫双方 的用户设备能否直接通信进行判断的方式;本实施例则采用在主叫侧对呼叫双 方的用户设备能否直接通信进行判断的方式,适用于主被叫用户归属相同呼叫 控制系统的情形。 当然, 在主被叫用户归属相同呼叫控制系统时, 采用实施例 一方法同样是可行的,此时, 第一呼叫控制系统与第二呼叫控制系统为同一系 统。 由于本实施例方案和实施例一方案分别在主叫和被叫侧执行, 因此在实际 应用中, 可单独使用实施例一和本实施例方案, 也可合并使用。 本实施例方法 具体包括步骤:  The difference between the embodiment and the first embodiment is that the first embodiment adopts a method for judging whether the user equipment of the calling party can directly communicate with each other on the called side; in this embodiment, the user of the calling party is used at the calling side. The manner in which the device can directly communicate and judge is applicable to the case where the calling party and the called user belong to the same call control system. Of course, it is also feasible to adopt the first embodiment when the calling party and the called party belong to the same call control system. At this time, the first call control system and the second call control system are the same system. Since the solution of the embodiment and the solution of the first embodiment are performed on the calling and called sides respectively, in the actual application, the solution of the first embodiment and the embodiment may be used separately, or may be used in combination. The method of this embodiment specifically includes the following steps:
B 1、 第一会话控制功能实体接收第一用户对第二用户的第一呼叫请求 , 所述第一呼叫请求携带第一用户的私网地址。  B1. The first session control function entity receives a first call request of the first user to the second user, where the first call request carries a private network address of the first user.
B2、 第一会话控制功能实体确定所述第二用户归属于本会话控制功能实 体, 获得第二用户的注册地址。  B2. The first session control function entity determines that the second user belongs to the session control function entity, and obtains a registration address of the second user.
B3、 第一会话控制功能实体向第一策略决策功能实体发送承载方式判断 请求 ,所述承载方式判断请求携带所述第一用户的私网地址和第二用户的注册 地址。  B3. The first session control function entity sends a bearer mode determining request to the first policy decision function entity, where the bearer mode determining request carries the private network address of the first user and the registered address of the second user.
B4、 第一策略决策功能实体才 据所述第一用户的私网地址和第二用户的 注册地址判断第一用户和第二用户能否直接通信,返回携带判断结果的承载方 式判断响应给第一会话控制功能实体。  B4. The first policy decision function entity determines whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and returns a bearer mode judgment response carrying the judgment result to the first A session control function entity.
与实施例一中的步骤 A3的子步骤②类似, 第一策略决策功能实体在返回 的承载方式判断响应中可以仅携带对第一用户和第二用户能否直接通信的判 断结果, 即"是"或"否"。 这种情况下, 当所返回的结果为"否"时, 第一^舌控 制功能实体可按照现有方式使用承载地址请求再次通过第一策略决策功能实 体请求第一边缘网关设备分配与第一用户的私网地址绑定的第一公网地址。 Similar to sub-step 2 of step A3 in the first embodiment, the first policy decision function entity may only carry the judgment of whether the first user and the second user can directly communicate in the returned bearer mode judgment response. Break the result, which is "yes" or "no". In this case, when the returned result is "No", the first control function entity may request the first edge gateway device to be allocated with the first user by the first policy decision function entity again using the bearer address request according to the existing manner. The first public network address bound to the private network address.
当然,第一策略决策功能实体也可以合并执行承载方式判断和地址分配的 过程, 即当第一策略决策功能实体判断第一用户和第二用户不能直接通信时, 还执行获得与第一用户的私网地址绑定的第一公网地址的操作,以返回第一公 网地址作为判断为"否"的结果。这样第一会话控制功能实体只需要下发一次承 载方式判断请求, 在判断结果为 "否"时, 无须再次下发承载地址请求。  Of course, the first policy decision function entity may also perform the process of performing bearer mode judgment and address assignment, that is, when the first policy decision function entity determines that the first user and the second user cannot directly communicate, the first policy and the first user are also performed. The operation of the first public network address bound to the private network address returns the first public network address as the result of the determination of "No". In this way, the first session control function entity only needs to issue the bearer mode judgment request once, and when the judgment result is "No", it is not necessary to issue the bearer address request again.
B5、 第一会话控制功能实体根据所述承载方式判断响应, 确定第一用户 和第二用户能否直接通信; 在确定为能时, 执行步骤 B6; 在确定为否时, 执 行步骤 B7。  B5. The first session control function entity determines a response according to the bearer mode, and determines whether the first user and the second user can directly communicate; when it is determined to be capable, step B6 is performed; when the determination is no, step B7 is performed.
B6、 第一会话控制功能实体获得第二用户的私网地址, 向第一用户返回 携带有第二用户的私网地址的第一呼叫响应,即通过第一用户的私网地址与第 二用户的私网地址确定第一用户到第二用户的路径关系。  B6. The first session control function entity obtains the private network address of the second user, and returns a first call response carrying the private network address of the second user to the first user, that is, the private network address of the first user and the second user. The private network address determines the path relationship of the first user to the second user.
此步骤可参照实施例一步骤 A5中的情形②执行。 此时, 第一会话控制功 能实体即为第二会话控制功能实体。  This step can be performed by referring to Case 2 in the first step A5 of the first embodiment. At this time, the first session control function entity is the second session control function entity.
B7、 第一会话控制功能实体获得第二用户的私网地址以及第一用户和第 二用户的公网地址,通过第一用户和第二用户的公网地址确定第一用户到第二 用户的路径关系, 即, 需要执行现有的地址交互过程。  B7. The first session control function entity obtains the private network address of the second user and the public network address of the first user and the second user, and determines the first user to the second user by using the public network addresses of the first user and the second user. The path relationship, that is, the need to perform an existing address interaction process.
此步骤可参照现有确定媒体流路径关系的方法执行。  This step can be performed by referring to the existing method of determining the relationship of the media stream path.
上述实施例中通过在主叫侧对呼叫双方的用户设备能否直接通信进行判 断,选择与主叫方用户设备关联的私网地址或公网地址作为确定路径关系的媒 体传输地址, 当呼叫双方的用户设备处于相同地址域时 , 能够确定私网内的直 接路径来进行呼叫双方的媒体流承载;此时建立的媒体流路径无需经过边缘网 关设备提供的公网地址进行中转, 不仅减少了边缘网关设备的处理负荷,还减 少了公网地址的使用 , 降低了由于公网地址有限而导致的呼叫失败的概率。  In the above embodiment, by determining whether the user equipment of the calling party can directly communicate on the calling side, the private network address or the public network address associated with the calling party user equipment is selected as the media transmission address for determining the path relationship, when both parties call When the user equipment is in the same address domain, the direct path in the private network can be determined to carry the media stream bearer of the two parties. The media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device, which not only reduces the edge. The processing load of the gateway device also reduces the use of the public network address, and reduces the probability of call failure due to the limited public network address.
为更好的理解上述实施例,下面以实施例一方法的一个具体应用为例来进 行进一步的详细说明。 应用场景为: 第一用户 UE 1向第二用户 UE 2发起呼叫, For a better understanding of the above embodiments, a specific application of the method of the first embodiment will be further described in detail below. The application scenario is: the first user UE 1 initiates a call to the second user UE 2,
IMS网络采用如图 1所示的结构。 流程如图 6所示, 包括步骤: 1 ) UE 1向 P-CSCF 1发起对 UE 2的第一呼叫请求,该第一呼叫请求携带 UE 1的私网地址。 The IMS network adopts the structure shown in FIG. The process is shown in Figure 6, including the steps: 1) The UE 1 initiates a first call request to the UE 2 to the P-CSCF 1, the first call request carrying the private network address of the UE 1.
2 ) P-CSCF 1获得用于本次呼叫的媒体流传送的私网地址 1和公网地址 1, 并将 UE 1的私网地址与私网地址 1和公网地址 1绑定。 具体流程如图 7所示, 包 括:  2) The P-CSCF 1 obtains the private network address 1 and the public network address 1 for the media stream transmission of the current call, and binds the private network address of the UE 1 to the private network address 1 and the public network address 1. The specific process is shown in Figure 7, which includes:
2.1 ) P-CSCF 1向 PDF 1发送携带 UE 1的私网地址的承载地址请求;  2.1) P-CSCF 1 sends a bearer address request carrying the private network address of UE 1 to PDF 1;
2.2 ) PDF 1向 BGF 1发送携带 UE 1的私网地址的承载地址请求;  2.2) PDF 1 sends a bearer address request carrying the private network address of UE 1 to BGF 1;
2.3 )BGF 1分配私网地址 1和公网地址 1,并且同 UE 1的私网地址进行绑定, 然后向 PDF 1返回携带私网地址 1和公网地址 1的承载地址响应;  2.3) BGF 1 assigns a private network address 1 and a public network address 1, and binds to the private network address of UE 1, and then returns a bearer address response carrying private network address 1 and public network address 1 to PDF 1;
其中私网地址 1用于在私有网络内 UE 1与 BGF 1进行媒体流传输, 公网地 址 1用于 BGF 1将 UE 1的媒体流对外进行传输。通过绑定私网地址 1和 UE 1的私 网地址, 确定 BGF 1到 UE 1的路径关系; 一同绑定的公网地址 1为私网地址 1对 外的传输地址。  The private network address 1 is used for media stream transmission between the UE 1 and the BGF 1 in the private network, and the public network address 1 is used by the BGF 1 to transmit the media stream of the UE 1 to the outside. The path relationship between the BGF 1 and the UE 1 is determined by binding the private network address 1 and the private network address of the UE 1. The public network address 1 that is bound together is the transport address of the private network address.
2.4 ) PDF 1向 P-CSCF 1返回携带私网地址 1和公网地址 1的承载地址响应。 3 ) P-CSCF 1发送对 UE 2的第二呼叫请求给 UE 2归属的 P-CSCF 2, 该第二 呼叫请求携带公网地址 1和 UE 1的私网地址。  2.4) PDF 1 returns to P-CSCF 1 the bearer address response carrying private network address 1 and public network address 1. 3) The P-CSCF 1 sends a second call request to the UE 2 to the P-CSCF 2 to which the UE 2 belongs, and the second call request carries the public network address 1 and the private network address of the UE 1.
4 ) P-CSCF 2获得 UE 2的注册地址, 发送承载地址选择请求给 PDF 2, 该 承载地址选择请求携带公网地址 1、 UE 1的私网地址和 UE 2的注册地址。  4) The P-CSCF 2 obtains the registration address of the UE 2, and sends a bearer address selection request to the PDF 2, and the bearer address selection request carries the public network address 1, the private network address of the UE 1, and the registered address of the UE 2.
5 ) PDF 2判断 UE 1和 UE 2能否直接通信 , 即 , 判断 UE 1的私网地址和 UE 2的注册地址是否属于同一个地址域, 若是, 则按照情形一步骤处理; 若否, 则按照情形二步骤处理。  5) The PDF 2 determines whether the UE 1 and the UE 2 can communicate directly, that is, whether the private network address of the UE 1 and the registered address of the UE 2 belong to the same address domain, and if so, the processing is performed according to the situation; if not, then Follow the second step of the situation.
情形一:  Situation 1:
6 ) PDF 2确定 UE 1和 UE 2可以直接通信, 向 P-CSCF 2返回携带 UE 1的私 网地址的 载地址选择响应。  6) PDF 2 determines that UE 1 and UE 2 can communicate directly, and return to the P-CSCF 2 an address address selection response carrying the private network address of UE 1.
7 ) P-CSCF 2确定 UE 1和 UE 2为直接通信 , 向 UE 2发送携带 UE 1的私网地 址的第三呼叫请求, 即确定 UE 2到 UE 1的路径关系。  7) The P-CSCF 2 determines that the UE 1 and the UE 2 are in direct communication, and sends a third call request carrying the private network address of the UE 1 to the UE 2, that is, determining the path relationship between the UE 2 and the UE 1.
8 ) UE 2向 P-CSCF 2返回携带 UE 2的私网地址的第三呼叫响应。  8) UE 2 returns a third call response carrying the private network address of UE 2 to P-CSCF 2.
9 ) P-CSCF 2确定 UE 1和 UE 2为直接通信, 向 P-CSCF 1返回携带 UE 2的私 网地址的第二呼叫响应。 10 ) P-CSCF 1确定 UE 1和 UE 2为直接通信, 释放原来请求分配的私网地 址 1和公网地址 1。 具体流程如图 8所示, 包括: 9) The P-CSCF 2 determines that UE 1 and UE 2 are in direct communication, and returns a second call response carrying the private network address of UE 2 to P-CSCF 1. 10) The P-CSCF 1 determines that the UE 1 and the UE 2 are in direct communication, and releases the private network address 1 and the public network address 1 originally requested to be allocated. The specific process is shown in Figure 8, including:
10.1 ) P-CSCF 1向 PDF 1发送携带 UE 1的私网地址的承载地址释放请求; 10.1) The P-CSCF 1 sends a bearer address release request carrying the private network address of the UE 1 to the PDF 1;
10.2 ) PDF 1向 BGF 1发送携带 UE 1的私网地址的承载地址释放请求; 10.3 ) BGF 1释放与 UE 1的私网地址绑定的私网地址 1和公网地址 1, 即释 tBGF 1到 UE 1的路径, 然后向 PDF 1返回 载地址释放响应; 10.2) PDF 1 sends a bearer address release request carrying the private network address of UE 1 to BGF 1; 10.3) BGF 1 releases the private network address 1 and public network address 1 bound to the private network address of UE 1, releasing tBGF 1 Go to the path of UE 1, and then return the load release response to PDF 1;
10.4 ) PDF 1向 P-CSCF 1返回承载地址释放响应。  10.4) PDF 1 returns the bearer address release response to P-CSCF 1.
11 ) P-CSCF 1向 UE 1返回携带有 UE 2的私网地址的第一呼叫响应, 确定 了 UE 1下一跳目的地址信息 , 亦即确定 UE 1到 UE 2的路径关系。  11) The P-CSCF 1 returns a first call response carrying the private network address of the UE 2 to the UE 1, and determines the next hop destination address information of the UE 1, that is, determines the path relationship between the UE 1 and the UE 2.
此时 UE 1和 UE 2即可通过双方的私网地址进行直接通信, 所建立的媒体 流路径如图 9所示。  At this time, UE 1 and UE 2 can directly communicate through the private network addresses of the two parties, and the established media stream path is as shown in FIG.
情形二:  Case 2:
12 ) PDF 2确定 UE 1和 UE 2需要通过公网地址通信, 为 UE 2侧分配用于媒 体流传送的私网地址 2和公网地址 2, 并将公网地址 1与私网地址 2和公网地址 2 绑定。 具体过程与步骤 2.2 )和 2.3 )类似, 不再赞述。  12) PDF 2 determines that UE 1 and UE 2 need to communicate through the public network address, and allocate the private network address 2 and the public network address 2 for the media stream transmission to the UE 2 side, and the public network address 1 and the private network address 2 and Public network address 2 is bound. The specific process is similar to steps 2.2) and 2.3) and is not mentioned.
13 ) PDF 2向 P-CSCF 2返回承载地址选择响应 , 该承载地址选择响应携带 公网地址 1、 私网地址 2和公网地址 2。  13) PDF 2 returns a bearer address selection response to the P-CSCF 2, and the bearer address selection response carries the public network address 1, the private network address 2, and the public network address 2.
14 ) P-CSCF 2确定 UE 1和 UE 2为通过公网地址通信, 向 UE 2发送携带有 私网地址 2的第三呼叫请求。  14) The P-CSCF 2 determines that the UE 1 and the UE 2 transmit a third call request carrying the private network address 2 to the UE 2 by communicating via the public network address.
15 ) UE 2向 P-CSCF 2返回携带有 UE 2的私网地址的第三呼叫响应。  15) The UE 2 returns to the P-CSCF 2 a third call response carrying the private network address of the UE 2.
16 ) P-CSCF 2确定 UE 1和 UE 2为通过公网地址通信, 将 UE 2的私网地址 与私网地址 2绑定。 具体流程如图 10所示, 包括:  16) The P-CSCF 2 determines that the UE 1 and the UE 2 are bound by the public network address, and the private network address of the UE 2 is bound to the private network address 2. The specific process is shown in Figure 10, including:
16.1 )P-CSCF 2向 PDF 2发送携带 UE 2的私网地址和私网地址 2的承载地址 绑定请求;  16.1) The P-CSCF 2 sends a bearer address binding request carrying the private network address of the UE 2 and the private network address 2 to the PDF 2;
16.2 ) PDF 2向 BGF 2发送携带 UE 2的私网地址和私网地址 2的承载地址绑 定请求;  16.2) PDF 2 sends a bearer address binding request carrying the private network address of UE 2 and the private network address 2 to BGF 2;
16.3 ) BGF 2将 UE 2的私网地址与私网地址 2绑定, 向 PDF 2返回承载地址 绑定响应, 所述承载地址绑定响应表示绑定成功;  16.3) BGF 2 binds the private network address of the UE 2 to the private network address 2, and returns a bearer address binding response to the PDF 2, where the bearer address binding response indicates that the binding is successful;
16.4 ) PDF 2向 P-CSCF 2返回承载地址绑定响应。 17 ) P-CSCF 2确定 UE 1和 UE 2为通过公网地址通信, 向 P-CSCF 1返回携 带有公网地址 2的第二呼叫响应。 16.4) PDF 2 returns the bearer address binding response to P-CSCF 2. 17) The P-CSCF 2 determines that the UE 1 and the UE 2 return a second call response carrying the public network address 2 to the P-CSCF 1 by communicating over the public network address.
18 )P-CSCF 1确定 UE 1和 UE 2为通过公网地址通信,在 BGF 1上将 P-CSCF 2返回的公网地址 2与公网地址 1绑定。 具体流程与步骤 16 )相同, 只是承载地 址绑定请求所携带的是公网地址 2与公网地址 1。  18) The P-CSCF 1 determines that the UE 1 and the UE 2 communicate with each other through the public network address, and binds the public network address 2 returned by the P-CSCF 2 to the public network address 1 on the BGF 1. The specific procedure is the same as the step 16), except that the bearer address binding request carries the public network address 2 and the public network address 1.
19 ) P-CSCF 1向 UE 1返回携带有私网地址 1的第一呼叫响应。  19) The P-CSCF 1 returns to the UE 1 a first call response carrying the private network address 1.
此时 UE 1与 UE2之间的媒体流路径为: UE 1的私网地址、 私网地址 1、 公 网地址 1、 公网地址 2、 私网地址 2、 UE 2的私网地址; 所建立的媒体流路径如 图 3所示, 与现有方式确定的相同。  The media stream path between the UE 1 and the UE 2 is: the private network address of the UE 1, the private network address 1, the public network address 1, the public network address 2, the private network address 2, and the private network address of the UE 2; The media flow path is as shown in Figure 3, which is the same as determined by the existing method.
下面对本发明实施例的会话控制功能实体、呼叫控制系统和策略决策功能 实体进行详细说明。  The session control function entity, the call control system, and the policy decision function entity of the embodiment of the present invention are described in detail below.
实施例三、本发明实施例还提供一种会话控制功能实体, 用于在呼叫接续 的过程中携带两种类型的地址给对端呼叫控制系统,才 据对端呼叫控制系统对 地址类型的选择进行呼叫接续, 如图 11所示, 包括:  Embodiment 3 The embodiment of the present invention further provides a session control function entity, which is configured to carry two types of addresses to the peer call control system during the call connection process, and select the address type according to the peer call control system. Perform call connection, as shown in Figure 11, including:
呼叫接收单元 11 , 用于获得第一用户对第二用户的第一呼叫请求, 所述第 一呼叫请求携带有第一用户的私网地址;  The call receiving unit 11 is configured to obtain a first call request of the first user to the second user, where the first call request carries a private network address of the first user;
呼叫接续单元 12, 用于发送对第二用户的第二呼叫请求,该第二呼叫请求 携带有第一用户的私网地址和与该第一用户的私网地址绑定的第一公网地址; 响应获得单元 13,用于获得返回的与呼叫接续单元 11生成的第二呼叫请求 对应的第二呼叫响应,该第二呼叫响应携带有与第一用户的媒体传输地址匹配 的第二用户的媒体传输地址,该第一用户的媒体传输地址为第一公网地址或第 一用户的私网地址,该第二用户的媒体传输地址为第二公网地址或第二用户的 私网地址;  The call connection unit 12 is configured to send a second call request to the second user, where the second call request carries a private network address of the first user and a first public network address bound to the private network address of the first user. The response obtaining unit 13 is configured to obtain a returned second call response corresponding to the second call request generated by the call connection unit 11, the second call response carrying the second user that matches the media transmission address of the first user a media transmission address, where the media transmission address of the first user is a first public network address or a private network address of the first user, and the media transmission address of the second user is a second public network address or a private network address of the second user;
响应处理单元 14,用于根据响应获得单元 13获得的第二呼叫响应所携带的 第二用户的媒体传输地址, 生成与所述第一呼叫请求对应的第一呼叫响应, 所 述第一呼叫响应携带有所述第一用户下一跳的目的地址信息。  The response processing unit 14 is configured to generate, according to the media transmission address of the second user carried by the second call response obtained by the response obtaining unit 13, a first call response corresponding to the first call request, the first call response Carrying destination address information of the first user next hop.
响应处理单元 14具体可包括:  The response processing unit 14 may specifically include:
判断单元 141 , 用于根据响应获得单元 12获得的第二呼叫响应所携带的第 二用户的媒体传输地址判断第一用户和第二用户为直接通信或为通过公网地 址通信; The determining unit 141 is configured to determine, according to the media transmission address of the second user that is carried by the second call response obtained by the response obtaining unit 12, that the first user and the second user are in direct communication or through the public network. Address communication
公网单元 142,用于在判断单元 141确定第一用户和第二用户为通过公网地 址通信时,返回与所述第一呼叫请求对应的第一呼叫响应, 所述第一呼叫响应 携带有与所述第一用户的私网地址绑定的第一私网地址;  The public network unit 142 is configured to: when the determining unit 141 determines that the first user and the second user communicate by using the public network address, return a first call response corresponding to the first call request, where the first call response carries a first private network address bound to the private network address of the first user;
私网单元 143, 用于在判断单元 141确定第一用户和第二用户为直接通信 时,返回与所述第一呼叫请求对应的第一呼叫响应, 所述第一呼叫响应携带有 所述第二用户的私网地址。  The private network unit 143 is configured to: when the determining unit 141 determines that the first user and the second user are in direct communication, return a first call response corresponding to the first call request, where the first call response carries the first The private network address of the second user.
响应处理单元 14还可进一步包括:  The response processing unit 14 may further include:
绑定释放单元 144,用于在判断单元 141确定第一用户和第二用户为直接通 信时, 释放绑定到第一用户的私网地址的第一公网地址。  The binding release unit 144 is configured to release the first public network address bound to the private network address of the first user when the determining unit 141 determines that the first user and the second user are in direct communication.
本实施例会话控制功能实体可用于在实施例一所描述的确定媒体流路径 关系的方法中执行第一呼叫控制系统的操作。  The session control function entity of this embodiment can be used to perform the operation of the first call control system in the method of determining the media stream path relationship described in the first embodiment.
实施例四、本发明实施例还提供一种呼叫控制系统, 用于在呼叫接续的过 程中对对端呼叫控制系统发送的两种类型的地址进行选择,按照选择结果进行 呼叫接续, 如图 12所示, 包括:  Embodiment 4 The embodiment of the present invention further provides a call control system, configured to select two types of addresses sent by a peer call control system during a call connection process, and perform call connection according to the selection result, as shown in FIG. 12 . As shown, including:
^舌获得单元 201 , 用于获得对第二用户的第二呼叫请求, 所述第二呼叫 请求携带第一公网地址和第一用户的私网地址;并才 据所述第二呼叫请求获得 第二用户的注册地址;  a tongue obtaining unit 201, configured to obtain a second call request to the second user, where the second call request carries the first public network address and the private network address of the first user; and is obtained according to the second call request The registered address of the second user;
策略决策单元 202,用于根据会话获得单元 201提供的第一用户的私网地址 和第二用户的注册地址判断第一用户和第二用户能否直接通信,按照判断结果 确定第一用户的媒体传输地址,该第一用户的媒体传输地址为第一公网地址或 第一用户的私网地址;  The policy decision unit 202 is configured to determine, according to the private network address of the first user and the registration address of the second user that the session obtaining unit 201 provides, whether the first user and the second user can directly communicate, and determine the media of the first user according to the determination result. a transmission address, where the media transmission address of the first user is a first public network address or a private network address of the first user;
地址获得单元 203 ,用于获得与策略决策单元 202提供的第一用户的媒体传 输地址匹配的第二用户的媒体传输地址;  The address obtaining unit 203 is configured to obtain a media transmission address of the second user that matches the media transmission address of the first user provided by the policy decision unit 202;
会话响应单元 204,用于返回与会话获得单元 201获得的第二呼叫请求对应 的第二呼叫响应 , 该第二呼叫响应携带有地址获得单元 203提供的第二用户的 媒体传输地址。  The session response unit 204 is configured to return a second call response corresponding to the second call request obtained by the session obtaining unit 201, where the second call response carries the media transmission address of the second user provided by the address obtaining unit 203.
本实施例呼叫控制系统可用于作为第二呼叫控制系统执行实施例一所描 述的确定媒体流路径关系的方法。 实施例五、本发明实施例还提供一种会话控制功能实体, 用于在呼叫接续 的过程中请求 PDF对接收到的对端呼叫控制系统发送的两种类型的地址进行 选择, 按照选择结果进行呼叫接续, 如图 13所示, 包括: The call control system of this embodiment can be used as the second call control system to perform the method for determining the media stream path relationship described in Embodiment 1. Embodiment 5 The embodiment of the present invention further provides a session control function entity, configured to request a PDF to select two types of addresses sent by the received peer call control system during a call connection process, according to the selection result. The call connection, as shown in Figure 13, includes:
接续获得单元 21 , 用于获得对第二用户的第二呼叫请求,该第二呼叫请求 携带有第一公网地址和第一用户的私网地址;  The connection obtaining unit 21 is configured to obtain a second call request for the second user, where the second call request carries the first public network address and the private network address of the first user;
地址协商单元 22,用于根据接续获得单元 21获得的第二呼叫请求获得第二 用户的注册地址,发送承载地址选择请求,该承载地址选择请求携带有所述第 一公网地址、 第一用户的私网地址和第二用户的注册地址;  The address negotiation unit 22 is configured to obtain a registration address of the second user according to the second call request obtained by the connection obtaining unit 21, and send a bearer address selection request, where the bearer address selection request carries the first public network address, the first user Private network address and registered address of the second user;
协商获得单元 23 ,用于获得返回的与地址协商单元 22生成的承载地址选择 请求对应的承载地址选择响应,该承载地址选择响应携带有第一用户的媒体传 输地址, 该第一用户的媒体传输地址为第一公网地址或第一用户的私网地址; 地址匹配单元 24,用于获得与协商获得单元 23收到的承载地址选择响应中 携带的第一用户的媒体传输地址匹配的第二用户的媒体传输地址;  The negotiation obtaining unit 23 is configured to obtain a returned bearer address selection response corresponding to the bearer address selection request generated by the address negotiation unit 22, where the bearer address selection response carries the media transmission address of the first user, and the media transmission of the first user The address is the first public network address or the private network address of the first user; the address matching unit 24 is configured to obtain a second matching with the media transmission address of the first user carried in the bearer address selection response received by the negotiation obtaining unit 23 User's media transfer address;
接续响应单元 25,用于返回与接续获得单元 21获得的第二呼叫请求对应的 第二呼叫响应,该第二呼叫响应携带有地址匹配单元 24获得的第二用户的媒体 传输地址。  The connection response unit 25 is configured to return a second call response corresponding to the second call request obtained by the connection obtaining unit 21, where the second call response carries the media transmission address of the second user obtained by the address matching unit 24.
地址匹配单元 24具体可包括:  The address matching unit 24 may specifically include:
判断子单元 241 , 用于根据所述承载地址选择响应判断第一用户和第二用 户能否直接通信;  a determining subunit 241, configured to determine, according to the bearer address selection response, whether the first user and the second user can directly communicate;
公网子单元 242,用于在判断子单元 241确定第一用户和第二用户不能直接 通信时, 获得第二公网地址作为第二用户的媒体传输地址;  The public network sub-unit 242 is configured to obtain the second public network address as the media transmission address of the second user when the determining sub-unit 241 determines that the first user and the second user cannot directly communicate;
私网子单元 243,用于在判断子单元 241确定第一用户和第二用户能直接通 信时, 获得第二用户的私网地址作为第二用户的媒体传输地址。  The private network sub-unit 243 is configured to obtain the private network address of the second user as the media transmission address of the second user when the determining sub-unit 241 determines that the first user and the second user can directly communicate.
本实施例会话控制功能实体可用于作为第二会话控制功能实体执行实施 例一所描述的确定媒体流路径关系的方法。  The session control function entity of this embodiment may be used as the second session control function entity to perform the method for determining the media stream path relationship described in Embodiment 1.
实施例六、本发明实施例还提供一种策略决策功能实体, 用于在呼叫接续 的过程中根据 P-CSCF的请求对用户之间需要采用的通讯方式进行选择, 如图 14所示, 包括:  The sixth embodiment of the present invention further provides a policy decision function entity, which is used to select a communication mode to be used between users according to the request of the P-CSCF in the process of call connection, as shown in FIG. :
选择获得单元 31 , 用于获得承载地址选择请求, 所述承载地址选择请求携 带有第一公网地址、 第一用户的私网地址和第二用户的注册地址; 地址选择单元 32,用于根据选择获得单元 31收到的承载地址选择请求携带 的第一用户的私网地址和第二用户的注册地址判断第一用户和第二用户能否 直接通信,按照判断结果确定第一用户的媒体传输地址,该第一用户的媒体传 输地址为第一公网地址或第一用户的私网地址; The obtaining unit 31 is configured to obtain a bearer address selection request, where the bearer address selection request carries The first public network address, the private network address of the first user, and the registration address of the second user; the address selection unit 32 is configured to: according to the private network of the first user carried by the bearer address selection request received by the selection obtaining unit 31 The address and the registration address of the second user determine whether the first user and the second user can directly communicate, and determine the media transmission address of the first user according to the determination result, where the media transmission address of the first user is the first public network address or the first User's private network address;
选择响应单元 33,用于返回与选择获得单元 31获得的承载地址选择请求对 应的承载地址选择响应,该承载地址选择响应携带有地址选择单元 32确定的第 一用户的媒体传输地址。  The selection response unit 33 is configured to return a bearer address selection response corresponding to the bearer address selection request obtained by the selection obtaining unit 31, the bearer address selection response carrying the media transmission address of the first user determined by the address selection unit 32.
本实施例策略决策功能实体, 还可进一步包括:  The policy decision function entity in this embodiment may further include:
绑定获得单元 34,用于在地址选择单元 32判断第一用户和第二用户不能直 接通信时, 获得与所述第一公网地址绑定的第二公网地址; 此时, 选择响应单 元 33返回的承载地址选择响应还携带有该第二公网地址。  The binding obtaining unit 34 is configured to obtain, when the address selecting unit 32 determines that the first user and the second user cannot directly communicate, obtain a second public network address bound to the first public network address; The returned bearer address selection response returned by 33 also carries the second public network address.
本实施例策略决策功能实体可用于作为第二策略决策功能实体执行实施 例一所描述的确定媒体流路径关系的方法。  The policy decision function entity of this embodiment may be used as the second policy decision function entity to perform the method for determining the media stream path relationship described in Embodiment 1.
本领域普通技术人员可以理解上述实施例方法中的全部或部分步骤是可 以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介 质中, 该程序在执行时, 包括上述实施例方法中的全部或部分步骤, 所述存储 介质可以包括: ROM, RAM, 磁盘或光盘等。  A person skilled in the art can understand that all or part of the steps in the foregoing embodiment method can be completed by a program instructing related hardware, and the program can be stored in a computer readable storage medium, and the program includes the above when executed. All or part of the steps in the method of the embodiment, the storage medium may include: a ROM, a RAM, a magnetic disk or an optical disk, and the like.
通过上述实施例可以看出,本发明实施例通过对呼叫双方的用户设备能否 直接通信进行判断 ,从与用户设备关联的私网地址和公网地址中选择用于确定 路径关系的媒体传输地址, 当呼叫双方的用户设备处于相同地址域时, 能够确 定私网内的直接路径来进行呼叫双方的媒体流承载;此时建立的媒体流路径无 需经过边缘网关设备提供的公网地址进行中转,不仅减少了边缘网关设备的处 理负荷, 还减少了公网地址的使用, 有效避免了冗余路径的产生, 降低了由于 公网地址有限而导致的呼叫失败的概率。  It can be seen that the foregoing embodiment of the present invention determines the media transmission address used to determine the path relationship from the private network address and the public network address associated with the user equipment by determining whether the user equipment of the calling party can directly communicate. When the user equipments of the calling parties are in the same address domain, the direct path in the private network can be determined to carry the media stream bearer of the two parties. The media stream path established at this time does not need to be transited through the public network address provided by the edge gateway device. It not only reduces the processing load of the edge gateway device, but also reduces the use of the public network address, effectively avoids the generation of redundant paths, and reduces the probability of call failure due to the limited public network address.
以上对本发明实施例所提供的确定媒体流路径关系的方法以及相应的呼 叫控制系统、策略决策功能实体和会话控制功能实体进行了详细介绍,本文中 是用于帮助理解本发明的方法及其核心思想; 同时,对于本领域的一般技术人 员, 依据本发明的思想, 在具体实施方式及应用范围上均会有改变之处, 综上 所述, 本说明书内容不应理解为对本发明的限制。 The method for determining the relationship of the media stream path and the corresponding call control system, the policy decision function entity and the session control function entity are provided in detail in the above embodiments, and are used herein to help understand the method and core of the present invention. Thought; at the same time, for the average person in the field In the above, the description of the present invention is not limited to the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种确定媒体流路径关系的方法, 其特征在于, 包括:  A method for determining a relationship of a media stream path, comprising:
接收第一用户对第二用户的第一呼叫请求,所述第一呼叫请求携带有第一 用户的私网地址;  Receiving, by the first user, a first call request to the second user, where the first call request carries a private network address of the first user;
发送对第二用户的第二呼叫请求,所述第二呼叫请求携带有第一用户的私 网地址和与该第一用户的私网地址绑定的第一公网地址;  Sending a second call request to the second user, where the second call request carries a private network address of the first user and a first public network address bound to the private network address of the first user;
接收返回的与所述第二呼叫请求对应的第二呼叫响应,所述第二呼叫响应 携带有与第一用户的媒体传输地址匹配的第二用户的媒体传输地址;第一用户 的媒体传输地址为第一公网地址或第一用户的私网地址,所述第二用户的媒体 传输地址为第二公网地址或第二用户的私网地址;  Receiving a returned second call response corresponding to the second call request, the second call response carrying a media transmission address of a second user that matches a media transmission address of the first user; a media transmission address of the first user The first public network address or the private network address of the first user, where the media transmission address of the second user is the second public network address or the private network address of the second user;
根据所述第二呼叫响应携带的第二用户的媒体传输地址,返回与所述第一 呼叫请求对应的第一呼叫响应,所述第一呼叫响应携带有所述第一用户下一跳 的目的地址信息。  Returning, according to the media transmission address of the second user carried in the second call response, a first call response corresponding to the first call request, where the first call response carries the purpose of the first user next hop Address information.
2、根据权利要求 1所述的确定媒体流路径关系的方法, 其特征在于, 所述 根据第二呼叫响应携带的第二用户的媒体传输地址,返回与所述第一呼叫请求 对应的第一呼叫响应的步骤包括:  The method for determining a path relationship of a media stream according to claim 1, wherein the returning the first corresponding to the first call request according to the media transmission address of the second user carried in the second call response The steps of the call response include:
根据所述第二呼叫响应携带的第二用户的媒体传输地址确定第一用户和 第二用户为直接通信;  Determining, according to the media transmission address of the second user carried in the second call response, that the first user and the second user are in direct communication;
返回携带有第二用户的私网地址的第一呼叫响应。  Returns the first call response carrying the private network address of the second user.
3、根据权利要求 2所述的确定媒体流路径关系的方法, 其特征在于, 在确 定第一用户和第二用户为直接通信的步骤之后, 还包括:  The method for determining a media stream path relationship according to claim 2, further comprising: after determining that the first user and the second user are in direct communication, further comprising:
释放绑定到第一用户的私网地址的第一公网地址。  Release the first public network address bound to the private network address of the first user.
4、 根据权利要求 1 - 3任意一项所述的确定媒体流路径关系的方法, 其特 征在于,  A method of determining a media stream path relationship according to any one of claims 1 - 3, characterized in that
在所述发送第二呼叫请求的步骤中 ,是按设定的位置顺序在所述第二呼叫 请求中放置第一公网地址和第一用户的私网地址;  In the step of sending the second call request, placing the first public network address and the private network address of the first user in the second call request in the set position order;
所述返回的第二呼叫响应中,第二用户的媒体传输地址对应于其所匹配的 第一用户的媒体传输地址在所述第二呼叫请求中的位置进行放置,与所述第二 呼叫请求中的另一条地址信息对应的位置上为无效地址; 所述根据第二呼叫响应携带的第二用户的媒体传输地址,返回与所述第一 呼叫请求对应的第一呼叫响应的步骤包括: In the returned second call response, the media transmission address of the second user is placed corresponding to the location of the media transmission address of the first user that it matches in the second call request, and the second call request The address corresponding to another address information in the address is an invalid address; The step of returning the first call response corresponding to the first call request according to the media transmission address of the second user carried by the second call response includes:
根据第二呼叫响应中有效地址的位置判断第一用户和第二用户为直接通 信或为通过公网地址通信;  Determining, by the location of the effective address in the second call response, that the first user and the second user are in direct communication or communicating through a public network address;
当第一用户和第二用户为直接通信 ,返回携带有所述第二用户的私网地址 的第一呼叫响应;  Returning, by the first user and the second user, a first call response carrying a private network address of the second user;
当第一用户和第二用户为通过公网地址通信,返回携带有与所述第一用户 的私网地址绑定的第一私网地址的第一呼叫响应。  When the first user and the second user communicate through the public network address, the first call response carrying the first private network address bound to the private network address of the first user is returned.
5、 一种确定媒体流路径关系的方法, 其特征在于, 包括:  5. A method for determining a path relationship of a media stream, the method comprising:
接收对第二用户的第二呼叫请求,所述第二呼叫请求携带有第一公网地址 和第一用户的私网地址;  Receiving a second call request to the second user, where the second call request carries a first public network address and a private network address of the first user;
根据所述第二呼叫请求获得第二用户的注册地址,根据所述第一用户的私 网地址和第二用户的注册地址判断第一用户和第二用户能否直接通信,按照判 断结果确定第一用户的媒体传输地址,所述第一用户的媒体传输地址为第一公 网地址或第一用户的私网地址;  Determining, according to the second call request, the registration address of the second user, determining whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and determining, according to the determination result a media transmission address of the user, where the media transmission address of the first user is a first public network address or a private network address of the first user;
获得与所述第一用户的媒体传输地址匹配的第二用户的媒体传输地址 ,返 回与所述第二呼叫请求对应的第二呼叫响应,所述第二呼叫响应携带有所述第 二用户的媒体传输地址。  Obtaining a media transmission address of the second user that matches the media transmission address of the first user, and returning a second call response corresponding to the second call request, where the second call response carries the second user Media transfer address.
6、 一种确定媒体流路径关系的方法, 其特征在于, 包括:  6. A method for determining a relationship of a media stream path, the method comprising:
接收对第二用户的第二呼叫请求 ,所述第二呼叫请求携带有第一公网地址 和第一用户的私网地址;  Receiving a second call request to the second user, where the second call request carries a first public network address and a private network address of the first user;
根据所述第二呼叫请求获得第二用户的注册地址,并发送承载地址选择请 求, 所述承载地址选择请求携带有所述第一公网地址、第一用户的私网地址和 第二用户的注册地址;  Obtaining a registration address of the second user according to the second call request, and sending a bearer address selection request, where the bearer address selection request carries the first public network address, the private network address of the first user, and the second user Registered address;
接收返回的与所述承载地址选择请求对应的承载地址选择响应 ,所述承载 地址选择响应携带有第一用户的媒体传输地址,所述第一用户的媒体传输地址 为第一公网地址或第一用户的私网地址;  And receiving, by the bearer address selection response, the bearer address selection response, where the bearer address selection response carries the media transmission address of the first user, and the media transmission address of the first user is the first public network address or the first The private network address of a user;
获得与所述第一用户的媒体传输地址匹配的第二用户的媒体传输地址 ,返 回与所述第二呼叫请求对应的第二呼叫响应,所述第二呼叫响应携带有所述第 二用户的媒体传输地址。 Obtaining a media transmission address of the second user that matches the media transmission address of the first user, Returning a second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user.
7、根据权利要求 6所述的确定媒体流路径关系的方法, 其特征在于, 当所 述承载地址选择响应中携带有所述第一公网地址时,所述承载地址选择响应中 进一步携带有第二公网地址;  The method for determining a path relationship of a media stream according to claim 6, wherein when the bearer address selection response carries the first public network address, the bearer address selection response further carries Second public network address;
所述获得与第一用户的媒体传输地址匹配的第二用户的媒体传输地址的 步骤具体为:根据所述承载地址选择响应中携带的所述第一公网地址,从所述 承载地址选择响应中获得所述第二公网地址,所述第二用户的媒体传输地址为 所述第二公网地址。  The step of obtaining the media transmission address of the second user that matches the media transmission address of the first user is specifically: selecting the first public network address carried in the response according to the bearer address, and selecting a response from the bearer address The second public network address is obtained, and the media transmission address of the second user is the second public network address.
8、根据权利要求 6所述的确定媒体流路径关系的方法, 其特征在于, 当所 述承载地址选择响应携带的第一用户的媒体传输地址为第一用户的私网地址; 所述获得与第一用户的媒体传输地址匹配的第二用户的媒体传输地址的 步骤包括:  The method for determining a media stream path relationship according to claim 6, wherein the media transmission address of the first user carried in the bearer address selection response is a private network address of the first user; The step of matching the media transmission address of the second user of the media transmission address of the first user includes:
根据承载地址选择响应中携带的第一用户的媒体传输地址确定第一用户 和第二用户为直接通信,发送携带有第一用户的私网地址的第三呼叫请求;接 收返回的与所述第三呼叫请求对应的第三呼叫响应,所述第三呼叫响应中携带 有第二用户的私网地址;  Determining, by the first user and the second user, that the first user and the second user are in direct communication according to the media transmission address of the first user carried in the bearer address selection response, and sending a third call request carrying the private network address of the first user; receiving the returned a third call response corresponding to the third call request, where the third call response carries a private network address of the second user;
所述返回与第二呼叫请求对应的第二呼叫响应的步骤具体为:返回携带有 第二用户的私网地址的第二呼叫响应。  The step of returning the second call response corresponding to the second call request is specifically: returning a second call response carrying the private network address of the second user.
9、 根据权利要求 6 - 8任意一项所述的确定媒体流路径关系的方法, 其特 征在于,  9. A method of determining a media stream path relationship according to any of claims 6-8, characterized in that
所述第二呼叫请求中 ,第一公网地址和第一用户的私网地址是按设定的位 置顺序放置;  In the second call request, the first public network address and the private network address of the first user are placed in the set position order;
在所述返回第二呼叫响应的步骤中 ,是将第二用户的媒体传输地址对应于 其所匹配的第一用户的媒体传输地址在所述第二呼叫请求中的位置进行放置, 将与所述第二呼叫请求中的另一条地址信息对应的位置设置为无效地址。  In the step of returning the second call response, the media transmission address of the second user is placed corresponding to the location of the media transmission address of the first user to which it matches in the second call request, The location corresponding to another address information in the second call request is set as an invalid address.
10、 一种确定媒体流路径关系的方法, 其特征在于, 包括:  10. A method for determining a path relationship of a media stream, the method comprising:
接收承载地址选择请求, 所述承载地址选择请求携带有第一公网地址、第 一用户的私网地址和第二用户的注册地址; 才艮据所述第一用户的私网地址和第二用户的注册地址判断第一用户和第 二用户能否直接通信; Receiving a bearer address selection request, where the bearer address selection request carries a first public network address, a private network address of the first user, and a registered address of the second user; Determining whether the first user and the second user can directly communicate according to the private network address of the first user and the registered address of the second user;
按照判断结果确定第一用户的媒体传输地址,所述第一用户的媒体传输地 址为第一公网地址或第一用户的私网地址;  Determining, by the determination result, a media transmission address of the first user, where the media transmission address of the first user is a first public network address or a private network address of the first user;
返回与所述承载地址选择请求对应的承载地址选择响应 ,所述承载地址选 择响应携带有所述第一用户的媒体传输地址。  Returning a bearer address selection response corresponding to the bearer address selection request, the bearer address selection response carrying the media transmission address of the first user.
11、根据权利要求 10所述的确定媒体流路径关系的方法, 其特征在于, 在 判断第一用户和第二用户不能直接通信时, 还包括:  The method for determining a relationship of a media stream path according to claim 10, wherein when determining that the first user and the second user cannot directly communicate, the method further includes:
获得与所述第一公网地址绑定的第二公网地址;  Obtaining a second public network address bound to the first public network address;
所述返回的承载地址选择响应还携带有所述第二公网地址。  The returned bearer address selection response also carries the second public network address.
12、 一种确定媒体流路径关系的方法, 其特征在于, 包括:  12. A method for determining a path relationship of a media stream, the method comprising:
接收第一用户对第二用户的第一呼叫请求,所述第一呼叫请求携带有第一 用户的私网地址;  Receiving, by the first user, a first call request to the second user, where the first call request carries a private network address of the first user;
确定所述第二用户归属于本会话控制功能实体, 获得第二用户的注册地 址;  Determining that the second user belongs to the session control function entity, and obtains a registration address of the second user;
发送承载方式判断请求,所述承载方式判断请求携带有所述第一用户的私 网地址和第二用户的注册地址;  Sending a bearer mode determining request, where the bearer mode determining request carries the private network address of the first user and the registered address of the second user;
接收返回的与所述承载方式判断请求对应的承载方式判断响应,所述承载 方式判断响应携带有表示第一用户和第二用户能否直接通信的信息;  And receiving, by the bearer mode determining response corresponding to the bearer mode determining request, the bearer mode determining response carries information indicating whether the first user and the second user can directly communicate;
根据所述承载方式判断响应中携带的表示第一用户和第二用户能否直接 通信的信息, 确定第一用户和第二用户能直接通信;  Determining, according to the bearer mode, information indicating whether the first user and the second user can directly communicate, and determining that the first user and the second user can directly communicate;
获得第二用户的私网地址, 返回与所述第一呼叫请求对应的第一呼叫响 应, 所述第一呼叫响应携带有所述第二用户的私网地址。  Obtaining a private network address of the second user, and returning a first call response corresponding to the first call request, where the first call response carries a private network address of the second user.
13、 一种确定媒体流路径关系的方法, 其特征在于, 包括:  13. A method for determining a relationship of a media stream path, the method comprising:
接收承载方式判断请求,所述承载方式判断请求携带有第一用户的私网地 址和第二用户的注册地址;  Receiving a bearer mode determining request, where the bearer mode determining request carries a private network address of the first user and a registered address of the second user;
才艮据所述第一用户的私网地址和第二用户的注册地址判断第一用户和第 二用户能否直接通信;  Determining whether the first user and the second user can directly communicate according to the private network address of the first user and the registered address of the second user;
返回与所述承载方式判断请求对应的承载方式判断响应 ,所述承载方式判 断响应携带有与所述判断结果对应的信息。 Returning a bearer mode judgment response corresponding to the bearer mode determination request, where the bearer mode is determined The broken response carries information corresponding to the judgment result.
14、 一种会话控制功能实体, 其特征在于, 包括:  14. A session control function entity, comprising:
呼叫接收单元, 用于获得第一用户对第二用户的第一呼叫请求, 所述第一 呼叫请求携带有第一用户的私网地址;  a call receiving unit, configured to obtain a first call request of the first user to the second user, where the first call request carries a private network address of the first user;
呼叫接续单元, 用于发送对第二用户的第二呼叫请求, 所述第二呼叫请求 携带有第一用户的私网地址和与该第一用户的私网地址绑定的第一公网地址; 响应获得单元, 用于获得返回的与所述第二呼叫请求对应的第二呼叫响 应,所述第二呼叫响应携带有与第一用户的媒体传输地址匹配的第二用户的媒 体传输地址,所述第一用户的媒体传输地址为第一公网地址或第一用户的私网 地址, 所述第二用户的媒体传输地址为第二公网地址或第二用户的私网地址; 响应处理单元 ,用于根据所述第二呼叫响应携带的第二用户的媒体传输地 址,返回与所述第一呼叫请求对应的第一呼叫响应, 所述第一呼叫响应携带有 所述第一用户下一跳的目的地址信息。  a call connection unit, configured to send a second call request to the second user, where the second call request carries a private network address of the first user and a first public network address bound to the private network address of the first user And a response obtaining unit, configured to obtain a returned second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user that matches the media transmission address of the first user, The media transmission address of the first user is the first public network address or the private network address of the first user, and the media transmission address of the second user is the second public network address or the private network address of the second user; a unit, configured to return, according to the media transmission address of the second user carried in the second call response, a first call response corresponding to the first call request, where the first call response carries the first user Destination address information for one hop.
15、根据权利要求 14所述的会话控制功能实体, 其特征在于, 所述响应处 理单元包括:  The session control function entity according to claim 14, wherein the response processing unit comprises:
判断单元,用于才 据所述第二用户的媒体传输地址判断第一用户和第二用 户为直接通信或为通过公网地址通信;  a determining unit, configured to determine, according to the media transmission address of the second user, that the first user and the second user are in direct communication or communicate through a public network address;
公网单元,用于在所述判断单元确定第一用户和第二用户为通过公网地址 通信时,返回与所述第一呼叫请求对应的第一呼叫响应, 所述第一呼叫响应携 带有与所述第一用户的私网地址绑定的第一私网地址;  a public network unit, configured to: when the determining unit determines that the first user and the second user communicate by using a public network address, return a first call response corresponding to the first call request, where the first call response carries a first private network address bound to the private network address of the first user;
私网单元 , 用于在所述判断单元确定第一用户和第二用户为直接通信时, 返回与所述第一呼叫请求对应的第一呼叫响应,所述第一呼叫响应携带有所述 第二用户的私网地址。  a private network unit, configured to: when the determining unit determines that the first user and the second user are in direct communication, return a first call response corresponding to the first call request, where the first call response carries the first The private network address of the second user.
16、根据权利要求 15所述的会话控制功能实体, 其特征在于, 所述响应处 理单元还包括:  The session control function entity according to claim 15, wherein the response processing unit further comprises:
绑定释放单元,用于在所述判断单元确定第一用户和第二用户为直接通信 时, 释放绑定到第一用户的私网地址的第一公网地址。  The binding release unit is configured to release the first public network address bound to the private network address of the first user when the determining unit determines that the first user and the second user are in direct communication.
17、 一种呼叫控制系统, 其特征在于, 包括:  17. A call control system, comprising:
^舌获得单元, 用于获得对第二用户的第二呼叫请求, 所述第二呼叫请求 携带有第一公网地址和第一用户的私网地址;并根据所述第二呼叫请求获得第 二用户的注册地址; a tongue obtaining unit, configured to obtain a second call request to the second user, the second call request Carrying the first public network address and the private network address of the first user; and obtaining the registered address of the second user according to the second call request;
策略决策单元,用于才 据所述第一用户的私网地址和所述第二用户的注册 地址判断第一用户和第二用户能否直接通信 ,按照判断结果确定第一用户的媒 体传输地址,所述第一用户的媒体传输地址为第一公网地址或第一用户的私网 地址;  a policy decision unit, configured to determine whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and determine a media transmission address of the first user according to the determination result. The media transmission address of the first user is a first public network address or a private network address of the first user;
地址获得单元 ,用于获得与所述第一用户的媒体传输地址匹配的第二用户 的媒体传输地址;  An address obtaining unit, configured to obtain a media transmission address of the second user that matches the media transmission address of the first user;
会话响应单元, 用于返回与所述第二呼叫请求对应的第二呼叫响应, 所述 第二呼叫响应携带有所述第二用户的媒体传输地址。  a session response unit, configured to return a second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user.
18、 一种会话控制功能实体, 其特征在于, 包括:  18. A session control function entity, comprising:
接续获得单元, 用于获得对第二用户的第二呼叫请求, 所述第二呼叫请求 携带有第一公网地址和第一用户的私网地址;  a connection obtaining unit, configured to obtain a second call request to the second user, where the second call request carries the first public network address and the private network address of the first user;
地址协商单元, 用于^^据所述第二呼叫请求获得第二用户的注册地址, 并 发送承载地址选择请求, 所述承载地址选择请求携带有所述第一公网地址、第 一用户的私网地址和第二用户的注册地址;  An address negotiation unit, configured to obtain a registration address of the second user according to the second call request, and send a bearer address selection request, where the bearer address selection request carries the first public network address and the first user The private network address and the registered address of the second user;
协商获得单元,用于获得返回的与所述承载地址选择请求对应的承载地址 选择响应, 所述承载地址选择响应携带有第一用户的媒体传输地址, 所述第一 用户的媒体传输地址为第一公网地址或第一用户的私网地址;  a negotiation obtaining unit, configured to obtain a returned bearer address selection response corresponding to the bearer address selection request, where the bearer address selection response carries a media transmission address of the first user, and the media transmission address of the first user is a public network address or a private network address of the first user;
地址匹配单元,用于获得与所述第一用户的媒体传输地址匹配的第二用户 的媒体传输地址;  An address matching unit, configured to obtain a media transmission address of the second user that matches the media transmission address of the first user;
接续响应单元, 用于返回与所述第二呼叫请求对应的第二呼叫响应, 所述 第二呼叫响应携带有所述第二用户的媒体传输地址。  And a connection response unit, configured to return a second call response corresponding to the second call request, where the second call response carries a media transmission address of the second user.
19、根据权利要求 18所述的会话控制功能实体, 其特征在于, 所述地址匹 配单元包括:  The session control function entity according to claim 18, wherein the address matching unit comprises:
判断子单元,用于根据所述承载地址选择响应中携带的第一用户的媒体传 输地址判断第一用户和第二用户能否直接通信;  a determining subunit, configured to determine, according to the media transmission address of the first user carried in the bearer address selection response, whether the first user and the second user can directly communicate;
公网子单元 ,用于在所述判断子单元确定第一用户和第二用户不能直接通 信时, 获得第二公网地址作为第二用户的媒体传输地址; 私网子单元,用于在所述判断子单元确定第一用户和第二用户能直接通信 时, 获得第二用户的私网地址作为第二用户的媒体传输地址。 a public network sub-unit, configured to obtain, when the determining sub-unit determines that the first user and the second user cannot directly communicate, obtain the second public network address as the media transmission address of the second user; The private network sub-unit is configured to obtain, when the determining sub-unit determines that the first user and the second user can directly communicate, obtain the private network address of the second user as the media transmission address of the second user.
20、 一种策略决策功能实体, 其特征在于, 包括:  20. A policy decision function entity, comprising:
选择获得单元, 用于获得承载地址选择请求, 所述承载地址选择请求携带 有第一公网地址、 第一用户的私网地址和第二用户的注册地址;  a selection obtaining unit, configured to obtain a bearer address selection request, where the bearer address selection request carries a first public network address, a private network address of the first user, and a registered address of the second user;
地址选择单元,用于才 据所述第一用户的私网地址和第二用户的注册地址 判断第一用户和第二用户能否直接通信 ,按照判断结果确定第一用户的媒体传 输地址, 所述第一用户的媒体传输地址为第一公网地址或第一用户的私网地 址;  An address selection unit, configured to determine whether the first user and the second user can directly communicate according to the private network address of the first user and the registration address of the second user, and determine a media transmission address of the first user according to the determination result, where The media transmission address of the first user is a first public network address or a private network address of the first user;
选择响应单元,用于返回与所述承载地址选择请求对应的承载地址选择响 应 , 所述承载地址选择响应携带有所述第一用户的媒体传输地址。  And a selection response unit, configured to return a bearer address selection response corresponding to the bearer address selection request, where the bearer address selection response carries the media transmission address of the first user.
21、 根据权利要求 20所述的策略决策功能实体, 其特征在于, 还包括: 绑定获得单元,用于在所述地址选择单元判断第一用户和第二用户不能直 接通信时, 获得与所述第一公网地址绑定的第二公网地址;  The policy decision function entity according to claim 20, further comprising: a binding obtaining unit, configured to obtain, when the address selecting unit determines that the first user and the second user cannot directly communicate Describe a second public network address bound to the first public network address;
其中 ,所述选择响应单元返回的承载地址选择响应还携带有所述第二公网 地址。  The bearer address selection response returned by the selection response unit further carries the second public network address.
PCT/CN2008/072517 2007-09-29 2008-09-25 Method for determining the media stream path relation and call control system WO2009043289A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710161532.3A CN101399822B (en) 2007-09-29 2007-09-29 Method for determining media stream path relation and call control system
CN200710161532.3 2007-09-29

Publications (1)

Publication Number Publication Date
WO2009043289A1 true WO2009043289A1 (en) 2009-04-09

Family

ID=40518075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072517 WO2009043289A1 (en) 2007-09-29 2008-09-25 Method for determining the media stream path relation and call control system

Country Status (2)

Country Link
CN (1) CN101399822B (en)
WO (1) WO2009043289A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497314A (en) * 2011-12-09 2012-06-13 徐州医学院 Routing method for hierarchically passing through intranet
CN104660564A (en) * 2013-11-22 2015-05-27 乐视网信息技术(北京)股份有限公司 Method for establishing connection relationship between peers, and server
CN106302857B (en) * 2016-08-18 2020-01-31 中国联合网络通信集团有限公司 IP address allocation method and server
CN113315877A (en) * 2020-02-27 2021-08-27 成都鼎桥通信技术有限公司 Call processing method for private network terminal
CN112437395B (en) * 2020-09-29 2023-11-24 海能达通信股份有限公司 Calling method, base station and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030027595A1 (en) * 2001-07-31 2003-02-06 Ejzak Richard Paul Provision of services in a communication system including an interworking mobile switching center
CN1902889A (en) * 2003-11-08 2007-01-24 马科尼英国知识产权有限公司 Call set-up systems
CN1925450A (en) * 2005-09-02 2007-03-07 华为技术有限公司 Communication method preventing circumbendibus of media-flow
CN101047548A (en) * 2006-03-31 2007-10-03 株式会社日立制作所 Communication in multiple NAT private network
CN101179491A (en) * 2007-11-24 2008-05-14 华为技术有限公司 Method, equipment, device and system for privately using communication between network inside terminals

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6693894B1 (en) * 1999-01-12 2004-02-17 Telefonaktiebolaget Lm Ericsson (Pulb) Communications network and method for directly routing calls to mobile subscribers using an internet protocol network
CN1645838B (en) * 2005-01-19 2010-04-28 哈尔滨工业大学 Self network organized and distance concerned multi-routing method for complete route information
CN100433907C (en) * 2005-04-20 2008-11-12 华为技术有限公司 Method for interconnection between domains and its communication network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030027595A1 (en) * 2001-07-31 2003-02-06 Ejzak Richard Paul Provision of services in a communication system including an interworking mobile switching center
CN1902889A (en) * 2003-11-08 2007-01-24 马科尼英国知识产权有限公司 Call set-up systems
CN1925450A (en) * 2005-09-02 2007-03-07 华为技术有限公司 Communication method preventing circumbendibus of media-flow
CN101047548A (en) * 2006-03-31 2007-10-03 株式会社日立制作所 Communication in multiple NAT private network
CN101179491A (en) * 2007-11-24 2008-05-14 华为技术有限公司 Method, equipment, device and system for privately using communication between network inside terminals

Also Published As

Publication number Publication date
CN101399822A (en) 2009-04-01
CN101399822B (en) 2012-05-23

Similar Documents

Publication Publication Date Title
JP5113916B2 (en) Method and apparatus for establishing multimedia communication session
EP2605471B1 (en) Relay-based media channel establishing method and the system thereof
EP1579627B1 (en) Apparatus and method for controlling and managing individual directed sessions in a communications system
JP4804244B2 (en) Apparatus, system and method for filtering applications
US7023813B2 (en) Methods for managing a pool of multicast addresses and allocating addresses in a communications system
US7369567B2 (en) Methods for affiliating endpoints with a group and determining common communication capabilities for the affiliated endpoints
EP1584043A2 (en) System and method for controlling and managing sessions between endpoints in a communications system
KR20070024586A (en) Session set-up for time-critical services
WO2009071012A1 (en) Method, system and device for processing media flow request in sip network
WO2014044224A1 (en) Qos bearer resource control method and system during access negotiation and release
US20110085470A1 (en) Apparatus and method for integrated signal processing for ip-based convergence network
KR101453971B1 (en) Apparatus and method for interworking between wirless network and wireline network
WO2009043289A1 (en) Method for determining the media stream path relation and call control system
JP5718827B2 (en) Method and apparatus for distinguishing several user devices sharing the same public user ID
WO2009010013A1 (en) A method for accomplishing poc service and a poc gateway
JP5506941B2 (en) Method for establishing optimized media path and signaling gateway implementing the method
WO2007098652A1 (en) A service gateway, serving system, serving quality negotiation and serving resource release method
WO2010075721A1 (en) Method and system for ims user level controlling based on the subscription data
WO2010121521A1 (en) Method, system, mobile switching center server, and session terminal for realizing service continuity
WO2009079843A1 (en) Method for realizing resource admission control at push mode in nomadism scene of ngn
WO2008003214A1 (en) Method, device and system for media flow traversing nat
WO2008154850A1 (en) Method, entity and system of realizing network address transfer
WO2008110110A1 (en) Ip multimedia subsystem service providing method and system
WO2012142978A1 (en) Method, resource control proxy and system for policy control in peer-to-peer network
CN101222454B (en) Method for refusing illegal service stream

Legal Events

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

Ref document number: 08800989

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: 08800989

Country of ref document: EP

Kind code of ref document: A1