WO2012019546A1 - Method and system for establishing voice over ip call - Google Patents

Method and system for establishing voice over ip call Download PDF

Info

Publication number
WO2012019546A1
WO2012019546A1 PCT/CN2011/078254 CN2011078254W WO2012019546A1 WO 2012019546 A1 WO2012019546 A1 WO 2012019546A1 CN 2011078254 W CN2011078254 W CN 2011078254W WO 2012019546 A1 WO2012019546 A1 WO 2012019546A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
called
called terminal
server
voip server
Prior art date
Application number
PCT/CN2011/078254
Other languages
French (fr)
Chinese (zh)
Inventor
骆文
涂杨巍
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012019546A1 publication Critical patent/WO2012019546A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for establishing a voice over IP (VoIP) call.
  • VoIP voice over IP
  • FIG. 1 is a schematic diagram of a network structure for supporting a VoIP service. As shown in FIG. 1 , whether the called terminal or the calling terminal is connected to the access gateway through the base station, the access channel can reside on the data channel. (DPF, Data Path Function), Paging Controller (PC, Paging Controller) and Anchor AAuthenticator (AA), these entities can be combined on the same access gateway, or can be divided into On different access gateways.
  • DPF Data Path Function
  • PC Paging Controller
  • AA Anchor AAuthenticator
  • the role of the access gateway includes as a sink node for communication between the terminal and the outside world to support data exchange between the terminal and the outside world; the role of the access gateway (PC) includes maintaining the terminal in idle (IDLE) mode.
  • the IDLE mode is also called the IDLE state, and the two are equivalent.
  • the AAA server is an important facility in the communication network, which is used to implement network operators' control and management of data and users, and provides authentication, authorization and account services.
  • the VoIP server is a node used by the network to carry out VoIP services, including a SIP (Session Initial Protocol) registration for maintaining the terminal, a VoIP session between the calling terminal and the called terminal using the SIP protocol, and a session process.
  • SIP Session Initial Protocol
  • VoIP server and access gateway and AAA server There are interfaces between them.
  • the main function of the interface between the VoIP server and the AAA server is to obtain the end user account information from the AAA server to support the authorization of the user to use the VoIP service;
  • the main function of the interface between the VoIP server and the access gateway is to support the VoIP server and the DPF.
  • the interaction between the DPF and the terminal exchanges signaling and media streams related to the VoIP service.
  • WiMAX Worldwide Interoperability for Microwave Access
  • the VoIP server is also called WVS Server (WVS Server, WiMAX VoIP Service Server), and will not be described.
  • the left and right sides of the dotted line shown in Figure 1 represent the calling side and the called side, respectively.
  • the calling side and the called side also include network devices such as a base station, an access gateway, a VoIP server, and an AAA server, and serve the calling terminal and the called terminal respectively.
  • the calling terminal and the called terminal are respectively registered to their respective VoIP servers.
  • the two VoIP servers are connected through an IP network, such as the Internet, and the signaling and media streams between the calling terminal and the called terminal pass the IP.
  • the calling terminal and the called terminal can also be registered to the same VoIP server.
  • the two VoIP servers on both sides of the dotted line in Figure 1 can be the same physical entity.
  • the following describes the existing SIP registration technology to illustrate the SIP registration process of the terminal.
  • the figure shows the process of registering a terminal with a VoIP server in the prior art. Since the SIP protocol is used between the terminal and the VoIP server, the registration process is also called the SIP registration process, and mainly includes the following steps:
  • Step 201 The terminal sends a SIP registration request to the VoIP server.
  • Step 202 The VoIP server processes the registration request according to the SIP protocol. After the terminal authentication succeeds, the VoIP server sends an access request message to the AAA server of the terminal.
  • Step 203 After receiving the access request message, the AAA server saves information such as the SIP registration validity period of the terminal, and returns the access acceptance to the VoIP server.
  • Step 204 The VoIP server returns a SIP registration response to the terminal, and completes the SIP registration process.
  • the following describes the prior art related to IDLE, mainly explaining the process in which the IDLE state currently in the terminal is delivered to the AAA server of the terminal.
  • the terminal can achieve the purpose of power saving by entering the IDLE state.
  • a mobile terminal in the IDLE state cannot be called (if a VoIP call cannot be accepted). Therefore, when a mobile terminal in the IDLE state needs to be called, the network (paging controller) must first page the mobile terminal and trigger the mobile terminal to exit the IDLE state.
  • the request is initiated by the terminal itself or by the network side entity, and the request for the terminal to enter the IDLE state is sent to the AA of the terminal, and the AA is allowed. After that, the terminal can enter the IDLE state. Take the process initiated by the terminal as an example.
  • Figure 3 contains the following steps:
  • Step 301 The terminal sends a request message requesting to enter the IDLE state to the AA of the terminal through the access network.
  • Step 302 The AA checks whether the terminal meets the condition of entering the IDLE state. When the condition is met, the AA sends a charging update request message to the AAA server of the terminal, and carries an indication to notify the AAA server that the terminal is currently in the IDLE state.
  • the charging update request message is an intermediate update request.
  • Step 303 The AAA server saves the status information that the terminal is currently in the IDLE state locally, and returns a charging update response message to the AA.
  • the charging update response message is an intermediate update response.
  • Step 304 The AA returns an IDLE status entry response message to the terminal, and agrees that the terminal enters the IDLE state.
  • Each terminal in the IDLE state is assigned a paging cycle.
  • the duration of the paging cycle should not be set too short, otherwise the power saving purpose cannot be achieved, especially for a terminal having a MIMO (Multiple Input Multiple Output) function.
  • a typical minimum suitable length is 5.12 seconds. Taking the period value of 5.12 seconds as an example, the terminal in the IDLE state wakes up every 5.12 seconds and listens to whether there is a paging message for paging itself. The terminal does not accept any messages during the time. Therefore, if the PC wants to page the terminal, it must send a paging message at the point in time when the terminal wakes up, that is, the opportunity to wake up the terminal at most once every 5.12 seconds. If the terminal receives a paging message at the point in time when the terminal wakes up, the terminal triggers the process of exiting the IDLE state, and returns to the active state (mode;). In the ACTIVE state, the terminal can Accept the call.
  • the calling party when the calling terminal calls the called terminal, the calling party first needs to send a SIP INVITE signaling message to the called terminal.
  • the process mainly includes the following contents: 1.
  • the calling terminal will SIP.
  • the INVITE signaling message is sent to the VoIP server of the calling terminal (the calling VoIP server, the left side of the dotted line in Figure 1).
  • the calling terminal first sends the signaling message to the access gateway (an anchor DPF) in the form of an IP data packet, and then the access gateway sends the IP packet to the calling VoIP server.
  • the access gateway an anchor DPF
  • the calling VoIP server parses the signaling message, finds the VoIP server of the called terminal (called the VoIP server, the right side of the dotted line in Figure 1), and sends the signaling message to the called VoIP server.
  • the called VoIP server sends the signaling message to the called terminal. Specifically, the called VoIP server sends the signaling to the access gateway (an anchor DPF) in the form of an IP data packet, and then the access gateway sends the IP packet to the called terminal through the base station.
  • the access gateway an anchor DPF
  • the anchor DPF cannot continue to send the IP packet. To the called terminal, this IP packet can only be cached locally.
  • the anchor DPF notifies the PC of the terminal that the data sent to the called terminal arrives; after the PC performs the paging process to prompt the terminal to exit the IDLE state, the anchor DPF then passes the cached signaling message in the form of an IP packet. The base station sends to the called terminal.
  • the PC since the PC must page the terminal at the point in time when the terminal wakes up, in the worst case, when the anchor DPF notifies the PC to page the terminal, the terminal has just woken up once. At this time, the PC must wait for the paging cycle of an entire terminal to page the terminal.
  • the setting of the paging cycle of the terminal is generally not too short, and generally is greater than the typical minimum suitable duration (5.12 seconds). Therefore, it takes time for the PC to page the terminal and trigger the terminal to exit the IDLE state.
  • the called VoIP server wants to confirm that the SIP INVITE message is received by the called terminal and has to wait for a long time, and waiting for a long time will lead to the following problems:
  • the called VoIP server does not get the response of the called terminal for a long time, which will cause the called VoIP server timer to time out, and resend the SIP INVITE signaling message, or even resend it more than once. These messages will be treated as IP.
  • the package is stacked in the anchor DPF.
  • the access gateway sends all the accumulated IP packets to the called terminal at one time, so that the called terminal receives multiple SIP INVITE messages at the same time, causing the called terminal to process. Failure, resulting in call setup failure;
  • the called VoIP server does not get the response of the called terminal for a long time, and it will judge that the terminal is currently offline or unreachable, which in turn triggers the execution of unnecessary call forwarding services (for example, offline transfer).
  • unnecessary call forwarding services for example, offline transfer.
  • the second is to charge the user's service usage fee
  • the third is to cause the called user to question the network capability, because the called user is in the boot state. But can't receive the call. Both the second and third will cause the called user to be greatly dissatisfied with the operator, which will reduce the reputation of the operator, which is not conducive to business development.
  • the called terminal exits the IDLE state and receives the anchor DPF.
  • the called terminal After the cached SIP INVITE message, the called terminal will process the message normally and send a SIP response to the calling party. At this point, the caller will receive a response from the called party and a SIP response from another terminal after the call transfer, which will cause the caller to confuse the call, causing the call setup to fail;
  • the main object of the present invention is to provide a method and system for implementing VoIP call setup, which can avoid the situation that the called VoIP server wants to confirm that the SIP INVITE message has to wait for a long time after being received by the called terminal.
  • a method for implementing network telephone call setup comprising: when a called network telephone (VoIP) server receives a Session Initiation Protocol (SIP) Invite (INVITE) message addressed to a called terminal, according to the obtained called terminal
  • VoIP Session Initiation Protocol
  • INVITE Session Initiation Protocol
  • the status information determines that the called terminal is currently in an idle (IDLE) state, or determines that the terminal type of the called terminal is a mobile terminal according to the obtained terminal type information of the called terminal, and performs corresponding Call setup operation.
  • the obtaining the status information of the called terminal includes: an authentication authorization charging (AAA) server sends (push) the status information of the called terminal to the VoIP server.
  • AAA authentication authorization charging
  • the obtaining the status information of the called terminal or acquiring the terminal type information of the called terminal includes: the VoIP server actively requests (requests) from the AAA server, and acquires (pulls) the called terminal from the AAA server.
  • the status information, or the terminal type of the called terminal, wherein the status information of the called terminal includes: the called terminal is currently in the IDLE state, or the called terminal is currently in an ACTIVE state.
  • the terminal type information of the called terminal includes: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is a fixed terminal.
  • the performed call setup operation includes: the called VoIP server adjusts the SIP message.
  • the timer, the extended timeout period is long enough to complete the paging of the called terminal, and/or the called VoIP server returns a ringback tone message to the calling party.
  • a system for implementing network telephone call setup comprising: a judging unit and a call setup Unit; among them,
  • the determining unit is configured to: when receiving the SIP INVITE message sent to the called terminal, determine, according to the obtained state information of the called terminal, that the current state of the called terminal is in an IDLE state, or according to the acquired state
  • the terminal type information of the called terminal determines that the terminal type of the called terminal is a mobile terminal
  • the call establishing unit is configured to perform a corresponding call setup operation according to the determination result of the determining unit.
  • the system further includes an obtaining unit, configured to obtain status information of the called terminal, and the acquiring includes: the AAA server directly sends (push) the status information of the called terminal to the VoIP server.
  • the system further includes an obtaining unit, configured to acquire status information of the called terminal, or obtain terminal type information of the called terminal; the obtaining includes the VoIP server actively requesting (requesting) from the AAA server, from the AAA The server acquires (pushes) the status information of the called terminal or the terminal type information of the called terminal.
  • the status information of the called terminal includes: the called terminal is currently in the IDLE state, or the called terminal is currently in the ACTIVE state.
  • the terminal type information of the called terminal includes: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is a fixed terminal.
  • the call establishing unit is further configured to: when it is determined that the current state of the called terminal is an IDLE state, or when determining that the terminal type of the called terminal is a mobile terminal, the called VoIP server adjusts the SIP.
  • the timer of the message, the extension timeout is long enough to complete the paging of the called terminal, and/or the called VoIP server returns a ringback tone message to the calling party.
  • the called VoIP server When the called VoIP server receives the SIP INVITE message addressed to the called terminal, it determines whether the current state of the called terminal is in the IDLE state according to the obtained state information of the called terminal, or according to the obtained called terminal. Terminal type information to determine the terminal class of the called terminal Whether the type is a mobile terminal, performs a corresponding call setup operation.
  • the status information of the called terminal or the terminal type information of the called terminal can be obtained, thereby determining whether the current state of the called terminal is in the IDLE state according to the acquired status information of the called terminal, or according to the obtained
  • the terminal type information of the called terminal determines whether the terminal type of the called terminal is a mobile terminal to perform a corresponding call setup operation, and can avoid waiting for the called VoIP server to confirm that the SIP INVITE message is received by the called terminal.
  • FIG. 1 is a schematic diagram of a network structure supporting a VoIP service in the prior art
  • FIG. 2 is a flow chart of registering a terminal with a VoIP server in the prior art
  • 3 is a flow chart of the AAA server in which the IDLE status of the terminal is transmitted to the terminal in the prior art
  • FIG. 5 is a flowchart of implementing VoIP call establishment when a called terminal is in an IDLE state according to Embodiment 1 of the present invention
  • FIG. 6 is a flowchart of acquiring status information of a called terminal according to Embodiment 2 of the present invention.
  • FIG. 7 is a flowchart of implementing VoIP call establishment when the called terminal is in the IDLE state according to the second embodiment of the present invention. detailed description
  • the basic idea of the present invention is: Receive a SIP addressed to the called terminal at the called VoIP server.
  • the INVITE message it is determined whether the current state of the called terminal is the IDLE state according to the acquired state information of the called terminal, or whether the terminal type of the called terminal is a mobile terminal according to the acquired terminal type information of the called terminal. Perform the corresponding call setup operation.
  • the prior art can only call the called terminal when the called terminal exits the IDLE state, so as to implement VoIP call setup, that is, it is necessary to wait until the called terminal wakes up at the time point to page the terminal. It takes a long time from waiting for the point in time to paging the called terminal and triggering the called terminal to exit the IDLE state.
  • the judgment is performed according to the obtained state information of the called terminal, or the judgment according to the obtained terminal type of the called terminal is added ( Fixed terminal ⁇ mobile terminal), which determines the process of performing the operation, realizes the VoIP call establishment when the called terminal is in the IDLE state, and can avoid waiting for the called VoIP server to confirm that the SIP INVITE message is received by the called terminal.
  • a method for implementing VoIP call establishment mainly includes the following contents:
  • the called VoIP server When the called VoIP server receives the SIP INVITE message addressed to the called terminal, it determines whether the current state of the called terminal is in the IDLE state according to the obtained status information of the called terminal, or according to the acquired terminal of the called terminal.
  • the type information determines whether the terminal type of the called terminal is a mobile terminal, thereby determining which corresponding operation is performed.
  • the corresponding operation performed by the called terminal in the IDLE state is different from the corresponding operation performed by the called terminal in the IDLE state;
  • the terminal type of the called terminal is The corresponding operation performed by the mobile terminal and the terminal type of the called terminal are different from the corresponding operations performed by the fixed terminal.
  • obtaining the status information of the called terminal specifically includes: the AAA server notifying the VoIP server of the status information of the called terminal.
  • obtaining the status information of the called terminal, or acquiring the terminal type information of the called terminal specifically includes: in the process of establishing the call, the VoIP server actively requests the AAA server for the status information of the called terminal, or the terminal of the called terminal. Type information.
  • obtaining the status information of the called terminal specifically includes: in the process of registering the called terminal to the VoIP server, the VoIP server requests the AAA server for the terminal type of the called terminal. Information.
  • the status information of the called terminal specifically includes: the called terminal is currently in the IDLE state, or the called terminal is currently in the ACTIVE state.
  • the terminal type information of the called terminal specifically includes: the current terminal type of the called terminal is a mobile terminal, or the called terminal is currently a fixed terminal.
  • the called VoIP server sends the SIP INVITE message sent to the called terminal to the called terminal.
  • the corresponding operations performed by the VoIP server specifically include:
  • the called VoIP server adjusts (resets) the timer of the SIP message (such as a SIP INVITE message) (The timer may be a timeout timer), the timeout period is extended to allow the network to complete paging to the called terminal; and/or the called VoIP server returns a ringback tone message to the calling party;
  • the calling party includes one of the following: a calling terminal, or a calling VoIP server.
  • a calling terminal or a calling VoIP server.
  • the invention is illustrated by way of example below.
  • Embodiment 1 After the VoIP server requests the AAA server, the AAA server obtains the status information of the terminal.
  • the called VoIP server receives the SIP INVITE message sent from the calling terminal to the called terminal, firstly to the AAA server of the called terminal, and queries whether the called terminal status information is The calling terminal is currently in the IDLE state. If the called terminal is currently in the IDLE state, the timeout timer of the SIP message is adjusted (reset), the timeout period is extended, and the ringback tone is returned to the calling party.
  • the VoIP server obtains the terminal status information from the AAA server, and the general process can be executed whether it is called or not.
  • the process includes the following steps: Step 401: The VoIP server sends a terminal status information request message to the AAA server, where the terminal status information request message carries the identifier of the terminal.
  • the identifier of the terminal may be a network access identifier (NAI) of the terminal, or an identifier used by the terminal to use the VoIP service.
  • NAI network access identifier
  • the terminal status information request message further carries an indication (Indication) for instructing the AAA server to return the current status of the designated terminal, or an indication that the AAA server returns whether the designated terminal is in the IDLE state.
  • indication for instructing the AAA server to return the current status of the designated terminal, or an indication that the AAA server returns whether the designated terminal is in the IDLE state.
  • the terminal status information request message may be an AAA message, for example, a message defined by a Remote Authentication Dial In User Service (RADIUS) protocol, or a message defined by a Diameter protocol.
  • RADIUS Remote Authentication Dial In User Service
  • the terminal status information request message corresponds to an access request (Access-Request) message.
  • Step 402 The AAA server returns a terminal status information response message to the VoIP server, where the current status of the specified terminal is carried.
  • the state is used to indicate that the terminal is currently in the IDLE state, or is in the ACTIVE state; or the state is a 1/0 value (true/false value), 1 indicates that the terminal is in the IDLE state, and 0 indicates that the terminal is not in the IDLE state. status.
  • the terminal status information response message may also be used to send the paging cycle value of the terminal to the VoIP server.
  • the terminal status information response message may be an AAA message as described in step 401.
  • the terminal status information response message corresponds to an Access-Accept message.
  • the called VoIP server After the called VoIP server receives the SIP INVITE message, it can obtain information about whether the called terminal is currently in the IDLE state from the AAA server of the called terminal; and, preferably, when determined to be When the terminal is in the IDLE state, the VoIP server can also know the paging cycle of the called terminal.
  • the process of supporting the VoIP call establishment includes the following steps:
  • Step 501 The SIP INVITE message sent by the calling terminal to the called terminal is first sent to the calling VoIP server.
  • Step 502 The calling VoIP server returns to the calling terminal SIP is trying (SIP 100
  • Step 505 The calling VoIP server finds the called VoIP server and sends the above SIP INVITE message to the called VoIP server.
  • Step 506 The called VoIP server returns a SIP 100 (Trying) message to the calling VoIP server.
  • Step 507 The called VoIP server sends a terminal status information request message to the AAA server of the called terminal to request the current status of the called terminal (as described in step 401).
  • the called VoIP server can find the AAA server of the called terminal according to the identifier of the called terminal carried in the SIP INVITE message from the calling VoIP server, in particular, the domain name information carried in the identifier.
  • Step 508 The AAA server of the called terminal acquires current status information of the called terminal, and returns the status information to the called VoIP server according to step 402.
  • the AAA server of the called terminal may send a message to the AA of the called terminal to query the current status of the called terminal; or, the called terminal After receiving the query request from the called VoIP server, the AAA server always goes to the AA query of the called terminal, that is, the AAA server requests the AA to exchange the status information of the terminal, and finally the AAA server of the called terminal obtains the status information.
  • the message sent by the AAA server to the AA is an AAA message (RADIUS, or Diameter).
  • the AAA message may be a RADIUS CoA message, and the AA responds to the AAA server by using a RADIUS CoA ACK message, where the current terminal is carried. Status information.
  • Step 509 When the information obtained from the AAA server indicates that the called terminal is currently in the IDLE state, the VoIP server extends the waiting timeout timer duration for the SIP INVITE message.
  • the extended timeout period of the timer can be customized by the operator.
  • the maximum paging period of the called terminal is 20 seconds, and the timeout period may be determined by referring to 20 seconds (for example, 25 seconds) to accommodate the worst case; or The duration is determined by referring to the paging cycle of the called terminal (as described in step 402, the VoIP server can obtain the paging period value of the called terminal from the AAA server). In this way, depending on the called terminal, the VoIP server can set different timeout durations. Before the timer expires, the VoIP server does not resend the SIP INVITE message, and does not trigger services such as call forwarding.
  • Step 510 ⁇ Step 511 The called VoIP server sends a ringback response (SIP 180) to the calling VoIP server; the calling VoIP server further sends SIP 180 to the calling terminal, and plays the RBT to the calling user, prompting the user to wait.
  • SIP 180 ringback response
  • Step 512 The called VoIP server sends a SIP INVITE message to the called terminal, and the message is first sent in the form of a data packet to the access network of the called terminal (the called anchor DPF). And start the above timeout timer.
  • step 512 and step 510 can be performed simultaneously.
  • Step 513 At this time, the access network finds that the called terminal is in the IDLE state, so the triggering PC initiates paging to the called terminal, prompting the called terminal to exit the IDLE state.
  • Step 514 After the called terminal exits the IDLE state, the access network of the terminal sends the above data packet (containing the SIP INVITE message) to the called terminal.
  • Step 515 After processing the SIP message, the terminal returns a SIP to the called VoIP server. 100 ( Trying ) message. At this point, the called VoIP server receives the message before the timer expires.
  • Step 516 Since the current terminal has exited the IDLE state and enters the ACVITE state, the subsequent steps are the same as the prior art, and are not described again.
  • the VoIP server of the called terminal can send the SIP INVITE message to the called terminal, which is beneficial to reduce the delay of the entire call setup, that is, steps 507 and 512 can be simultaneously carried out.
  • Embodiment 2 The AAA server directly notifies the terminal status information to the VoIP server registered by the terminal, so that the VoIP server acquires the terminal status information.
  • the AAA server of the terminal When the AAA server of the terminal receives the indication that the terminal enters the IDLE state, it actively informs the VoIP server registered by the terminal. In this way, when the terminal is called as the called terminal, the called VoIP server can directly obtain the state of the called terminal locally.
  • the AAA server notifies the VoIP server of the terminal status information to the terminal to register the VoIP server, so that the VoIP server can obtain the terminal status information, whether it is called or not, can perform the general process.
  • the process includes the following steps:
  • Step 601 The AAA server sends a terminal status information update message to the VoIP server, where the terminal status information update message carries the identifier of the terminal.
  • the identifier of the terminal may be the NAI of the terminal, or the identifier used by the terminal to use the VoIP service.
  • the step is triggered by the AAA server receiving the charging update request message as described in step 302.
  • the charging update request message can be represented by "Billing - Intermediate Update Request".
  • the VoIP server when the terminal registers with the VoIP server, the VoIP server sends a message (access request message) to the AAA server of the terminal.
  • the VoIP server is also required to carry its own identifier in the message, and send its own identifier (preferably, also including an IP address) to the AAA server, and the AAA server saves it locally.
  • the AAA can find the VoIP server registered by the terminal, and send the terminal status information update message to the terminal.
  • the terminal status information update message further carries an indication for indicating the current status of the terminal, or carries whether the terminal is in IDLE. An indication of the status.
  • the above indication will be used to inform the VoIP server that the terminal is in (or not in) the IDLE state.
  • the terminal status information update message may further carry the paging period value of the terminal.
  • the terminal status information update message may be an AAA message, for example, a message defined by using a RADIUS protocol, or a message defined by a Diameter protocol.
  • the called terminal status information update message is a CoA Request (Change of Authorization Request) message.
  • Step 602 The VoIP server sends a terminal status information update response message to the AAA server.
  • the VoIP server receives the indication of the terminal status information update message for indicating the current status of the terminal, or the indication of whether the terminal is in the IDLE state, and saves the status of the terminal (eg, in the IDLE state). local. For example, the state of the terminal is saved by using the identifier of the terminal as an index.
  • the terminal status information update response message may be an AAA message, for example, a message defined by using a RADIUS protocol, or a message defined by a Diameter protocol.
  • the terminal status information update response message is a CoA ACK (Change of Authorization ACK) message.
  • the VoIP server registered by the terminal can know the current state of the terminal in real time or in near real time, or know that the current terminal is in/out of the IDLE state. at this time,
  • the VoIP server of the terminal in this case, the called VoIP server
  • the VoIP server of the terminal can locally query whether the called terminal is currently in the IDLE state.
  • the process of supporting the VoIP call establishment includes the following steps:
  • Step 701 - Step 706 Same as step 501 to step 506.
  • Step 707 The called VoIP server locally queries the current state of the called terminal.
  • the AAA server of the called terminal will send the called terminal's paging period value to the called terminal to register the current state of the called terminal, and preferably, when the called terminal is in the IDLE state.
  • VoIP server Therefore, after receiving the SIP INVITE message, the VoIP server can obtain the current state information of the called terminal locally, and determine whether the called terminal is currently in the IDLE state.
  • Step 708 When it is determined that the called terminal is currently in the IDLE state, as described in step 509, the VoIP server extends the waiting timeout timer duration for the SIP INVITE message.
  • Step 709 ⁇ Step 715 Same as step 510 ⁇ Step 516.
  • the called VoIP server acquires that the called terminal is currently in the
  • the timer itself is extended to solve the problem of the prior art.
  • the called VoIP server also plays a ringback tone to the calling terminal in advance to prompt the calling party to wait, which also solves the defect that the prior art will cause the satisfaction of the calling user to decrease.
  • Embodiment 3 The VoIP server acquires the terminal type information of the terminal from the AAA server, and learns whether the current terminal type is a mobile terminal or a fixed terminal. In general, the fixed terminal does not consider the power saving problem, that is, the fixed terminal does not enter the IDLE state.
  • the called VoIP server knows the type of the called terminal: If the called terminal is a mobile terminal, adjust (reset) the timeout timer of the SIP message, and extend the timeout period. , returning a ringback tone to the calling party.
  • the VoIP server when the terminal registers with the VoIP server, the VoIP server will go to the terminal.
  • the AAA server sends a message (access request message), and after the AAA server of the terminal performs the corresponding processing, it returns a response message (access acceptance) to the VoIP server.
  • the AAA of the terminal is also required to return the type information of the terminal to the terminal.
  • the type information indicates that the terminal is a mobile terminal or a fixed terminal; or the type information indicates whether the terminal is a mobile terminal.
  • the VoIP server saves the information locally.
  • the subscription information of the user stored on the AAA may indicate that the user is a fixed terminal user, or a nomadic terminal user, or a mobile terminal user.
  • the AAA can determine the type of the terminal according to the subscription information of the user: determining the terminal of the contracted fixed terminal user as the fixed terminal; determining the terminal of the subscription mobile terminal user as the mobile terminal; signing the nomadic terminal
  • the user can be determined as a fixed terminal or a mobile terminal according to the operator policy.
  • the process of supporting the establishment of the VoIP call includes the following steps:
  • Step 801 to step 806 Same as step 701 to step 706.
  • Step 807 The called VoIP server locally queries the terminal type of the called terminal.
  • the called VoIP server can obtain the type of the called terminal from the called AAA server and save it locally. In this step, the VoIP server can obtain the type of the called terminal locally.
  • the terminal may be in the IDLE state or may not be in the IDLE state
  • the following steps 808-810 are performed; otherwise, the SIP call flow in the prior art is executed, and the SIP INVITE message is sent to the called party. Terminal (the terminal must not be in the IDLE state). The following assumes that the type of the terminal is a mobile terminal.
  • Step 808 When it is determined that the terminal is a mobile terminal, as described in step 509, the VoIP server extends the waiting timeout timer duration for the SIP INVITE message.
  • Step 809 ⁇ Step 810 Same as step 510 ⁇ Step 511.
  • Step 811 The called VoIP server sends a SIP INVITE message to the called terminal, and the message is first sent to the access network of the called terminal in the form of a data packet.
  • Step 812 If the called terminal is currently in the IDLE state, the access network triggers the execution of the paging terminal process, so that the called terminal exits the IDLE state. If the called terminal is not in the IDLE state, this step is not performed, and step 813 is directly executed.
  • Step 813 The access network of the terminal sends the foregoing data packet (containing the SIP INVITE message) to the called terminal.
  • the terminal type does not change after the terminal enters the network. Therefore, the VoIP server obtains the terminal type from the AAA server during the SIP registration process of the terminal.
  • the possibility that the VoIP server does not acquire the terminal type in the SIP registration process is not excluded.
  • the called VoIP server receives the SIP INVITE message sent to the called terminal (refer to the example shown in FIG. 5)
  • the AAA server can be sent to the called terminal. Request the type of the terminal.
  • the type information is saved locally.
  • the interaction between the VoIP server and the AAA can also use the RADIUS protocol, or the Diameter protocol, and will not be described again.
  • the above VoIP server is also called WVS Server.
  • the VoIP server equivalent can be replaced with the WVS server, and the principle is the same.
  • a system for establishing a VoIP call comprising: a judging unit and a call establishing unit, wherein the judging unit is configured to judge, according to the acquired state information of the called terminal, when receiving the SIP INVITE message addressed to the called terminal The terminal is currently in the IDLE state, or determines the terminal type of the called terminal as the mobile terminal according to the obtained terminal type information of the called terminal.
  • the call establishing unit is configured to perform a corresponding call establishing operation according to the judgment result of the determining unit.
  • the system further includes an obtaining unit, configured to obtain status information of the called terminal, and the acquiring includes the AAA server directly transmitting (pushing) the status information of the called terminal to the VoIP server.
  • the system further includes an obtaining unit, configured to acquire state information of the called terminal, or obtain terminal type information of the called terminal; the obtaining includes: the VoIP server actively requests (requests) from the AAA server, and obtains from the AAA server. (pull) the status information of the called terminal, or the terminal type information of the called terminal.
  • the status information of the called terminal specifically includes: the called terminal is currently in the IDLE state, or the called terminal is currently in the ACTIVE state.
  • the terminal type information of the called terminal specifically includes: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is a fixed terminal.
  • the call setup unit is further configured to: when determining that the called terminal is currently in the IDLE state, or determining that the terminal type of the called terminal is a mobile terminal, the called VoIP server adjusts (resets) the timing of the SIP message.
  • the extension timeout is long enough to complete the paging of the called terminal, and/or the called VoIP server returns a ringback tone message to the calling party.

Abstract

Disclosed is a method for establishing a Voice over IP call. The method comprises: when receiving a Session Initial Protocol (SIP) INVITE message sent to a called terminal, a called Voice over IP (VoIP) server judging that the called terminal is currently in an IDLE state according to acquired state information of the called terminal, or judging that a terminal type of the called terminal is a mobile terminal according to acquired terminal type information of the called terminal, and performing corresponding call establishing operations. Also disclosed is a system for establishing a Voice over IP call. A call establishing unit is used for performing corresponding call establishing operations according to a judgment result of a judging unit. The method and system of the present invention can prevent the problems generated because the called VoIP server must wait for a long time to confirm that the SIP INVITE message is received by the called terminal.

Description

一种实现网络电话呼叫建立的方法及系统 技术领域  Method and system for realizing network telephone call establishment
本发明涉及通信领域, 尤其涉及一种实现网络电话(VoIP, Voice over IP )呼叫建立的方法及系统。 背景技术  The present invention relates to the field of communications, and in particular, to a method and system for establishing a voice over IP (VoIP) call. Background technique
VoIP是一种使用互联网协议(IP )在网络上进行语音传输的技术, 是 目前广大运营商的关注的热点。 图 1为现有的一种支持开展 VoIP业务的网 络结构示意图, 如图 1 所示, 无论被叫终端还是主叫终端都通过基站连接 到接入网关,接入网关上可以驻留数据通道功能( DPF, Data Path Function ), 寻呼控制器 (PC , Paging Controller ) 以及锚点鉴权器 ( AA , Anchor Authenticator )等实体, 这些实体可以合设在同一个接入网关上, 也可以分 部在不同的接入网关上。接入网关(DPF )的作用包括作为终端与外界之间 通信的汇聚节点, 以支持终端与外界之间的数据交换等; 接入网关 (PC ) 的作用包括维护处于空闲 (IDLE )模式的终端的状态、 寻呼处于空闲模式 的终端等; 接入网关 ( AA ) 的作用是协助鉴权授权计费 ( AAA , Authentication, Authorization and Accounting )月良务器实现对终端的鉴权认 证等。 其中, IDLE模式又称为 IDLE状态, 两者等同。  VoIP is a technology that uses the Internet Protocol (IP) to transmit voice over the network. It is a hot spot for operators. FIG. 1 is a schematic diagram of a network structure for supporting a VoIP service. As shown in FIG. 1 , whether the called terminal or the calling terminal is connected to the access gateway through the base station, the access channel can reside on the data channel. (DPF, Data Path Function), Paging Controller (PC, Paging Controller) and Anchor AAuthenticator (AA), these entities can be combined on the same access gateway, or can be divided into On different access gateways. The role of the access gateway (DPF) includes as a sink node for communication between the terminal and the outside world to support data exchange between the terminal and the outside world; the role of the access gateway (PC) includes maintaining the terminal in idle (IDLE) mode. The status of the paging, the terminal in the idle mode, etc.; the role of the access gateway (AA) is to assist the authentication and authorization (AAA, Authentication, Authorization and Accounting) to implement authentication and authentication of the terminal. Among them, the IDLE mode is also called the IDLE state, and the two are equivalent.
AAA服务器是通信网络中的重要设施, 用于实现网络运营商对数据、 用户的控制和管理, 提供认证、 授权及账户服务。  The AAA server is an important facility in the communication network, which is used to implement network operators' control and management of data and users, and provides authentication, authorization and account services.
VoIP服务器是网络用于开展 VoIP业务的节点,包括负责维护终端的会 话初始协议 ( SIP, Session Initial Protocol )注册、 使用 SIP协议在主叫终端 与被叫终端之间建立 VoIP会话、 以及在会话过程中负责媒体流即语音数据 包的传递、 媒体格式转换等。 VoIP服务器与接入网关以及 AAA服务器之 间都有接口。 其中, VoIP服务器与 AAA服务器间的接口的主要功能是从 AAA服务器获取终端用户账户信息以支撑对用户使用 VoIP业务的授权; VoIP服务器与接入网关间接口的主要功能是支持 VoIP服务器与 DPF之间 的交互,通过 DPF与终端交换与 VoIP业务相关的信令和媒体流。这里需要 指出的是, 在全球微波互联接入(WiMAX, Worldwide Interoperability for Microwave Access )网络中, VoIP服务器又被称为 WVS业务服务器( WVS Server, WiMAX VoIP Service Server ), 不作赘述。 The VoIP server is a node used by the network to carry out VoIP services, including a SIP (Session Initial Protocol) registration for maintaining the terminal, a VoIP session between the calling terminal and the called terminal using the SIP protocol, and a session process. Responsible for the media stream, that is, the transmission of voice packets, media format conversion, and so on. VoIP server and access gateway and AAA server There are interfaces between them. The main function of the interface between the VoIP server and the AAA server is to obtain the end user account information from the AAA server to support the authorization of the user to use the VoIP service; the main function of the interface between the VoIP server and the access gateway is to support the VoIP server and the DPF. The interaction between the DPF and the terminal exchanges signaling and media streams related to the VoIP service. It should be noted that in the Worldwide Interoperability for Microwave Access (WiMAX) network, the VoIP server is also called WVS Server (WVS Server, WiMAX VoIP Service Server), and will not be described.
图 1 所示虚线左右两边分别代表主叫侧和被叫侧。 主叫侧、 被叫侧除 了包含主叫终端、 被叫终端外, 均还含有基站、 接入网关、 VoIP服务器以 及 AAA服务器等网络设备, 分别为主叫终端、 被叫终端服务。 主叫终端、 被叫终端分别注册到各自的 VoIP服务器上, 这两个 VoIP服务器之间通过 IP网, 如 Internet网相连, 主叫终端与被叫终端之间信令以及媒体流都通过 该 IP网进行交换,如图 1所示,有两个独立的 VoIP服务器分别为主叫终端 和被叫终端服务。 主叫终端和被叫终端也可注册到同一个 VoIP服务器上, 此时图 1中虚线两边的两个 VoIP服务器可以是同一个物理实体。  The left and right sides of the dotted line shown in Figure 1 represent the calling side and the called side, respectively. In addition to the calling terminal and the called terminal, the calling side and the called side also include network devices such as a base station, an access gateway, a VoIP server, and an AAA server, and serve the calling terminal and the called terminal respectively. The calling terminal and the called terminal are respectively registered to their respective VoIP servers. The two VoIP servers are connected through an IP network, such as the Internet, and the signaling and media streams between the calling terminal and the called terminal pass the IP. The network exchanges, as shown in Figure 1, there are two independent VoIP servers serving the calling terminal and the called terminal respectively. The calling terminal and the called terminal can also be registered to the same VoIP server. In this case, the two VoIP servers on both sides of the dotted line in Figure 1 can be the same physical entity.
以下对现有的 SIP注册技术进行举例阐述,以说明终端的 SIP注册过程。 图 所示为现有技术中终端向 VoIP服务器注册的流程。 由于终端与 VoIP服务器之间使用 SIP协议, 所以该注册流程又被称为 SIP注册流程, 主要包含以下步驟:  The following describes the existing SIP registration technology to illustrate the SIP registration process of the terminal. The figure shows the process of registering a terminal with a VoIP server in the prior art. Since the SIP protocol is used between the terminal and the VoIP server, the registration process is also called the SIP registration process, and mainly includes the following steps:
步驟 201 : 终端向 VoIP服务器发送 SIP注册请求。  Step 201: The terminal sends a SIP registration request to the VoIP server.
步驟 202: VoIP服务器依据 SIP协议处理注册请求; 在对终端认证成 功后, VoIP服务器向终端的 AAA服务器发送接入请求消息。  Step 202: The VoIP server processes the registration request according to the SIP protocol. After the terminal authentication succeeds, the VoIP server sends an access request message to the AAA server of the terminal.
步驟 203: 收到接入请求消息以后, AAA服务器保存该终端的 SIP注 册有效期等信息, 并向 VoIP服务器返回接入接受。  Step 203: After receiving the access request message, the AAA server saves information such as the SIP registration validity period of the terminal, and returns the access acceptance to the VoIP server.
步驟 204: VoIP服务器向终端返回 SIP注册应答, 完成 SIP注册流程。 以下阐述与 IDLE相关的现有技术, 主要说明终端当前所处于的 IDLE 状态被传递到终端的 AAA服务器上的过程。 Step 204: The VoIP server returns a SIP registration response to the terminal, and completes the SIP registration process. The following describes the prior art related to IDLE, mainly explaining the process in which the IDLE state currently in the terminal is delivered to the AAA server of the terminal.
终端可以通过进入 IDLE状态的方法达到节电的目的。 处于 IDLE状态 的移动终端无法被呼叫 (如无法接受 VoIP呼叫)。 因此, 在需要呼叫处于 IDLE状态的移动终端时, 网络(寻呼控制器)必须首先寻呼移动终端, 触 发移动终端退出 IDLE状态。 在现有技术中, 若需要终端进入 IDLE状态, 该需求无论是终端本身发起的, 还是网络侧实体发出的, 让终端进入 IDLE 状态的请求都会被发送到终端的 AA上,在得到 AA的允许之后,终端才能 进入 IDLE状态, 以终端发起的流程为例, 图 3包含以下步驟:  The terminal can achieve the purpose of power saving by entering the IDLE state. A mobile terminal in the IDLE state cannot be called (if a VoIP call cannot be accepted). Therefore, when a mobile terminal in the IDLE state needs to be called, the network (paging controller) must first page the mobile terminal and trigger the mobile terminal to exit the IDLE state. In the prior art, if the terminal needs to enter the IDLE state, the request is initiated by the terminal itself or by the network side entity, and the request for the terminal to enter the IDLE state is sent to the AA of the terminal, and the AA is allowed. After that, the terminal can enter the IDLE state. Take the process initiated by the terminal as an example. Figure 3 contains the following steps:
步驟 301 : 终端将请求进入 IDLE状态的请求消息通过接入网发送到终 端的 AA上。  Step 301: The terminal sends a request message requesting to enter the IDLE state to the AA of the terminal through the access network.
步驟 302: AA检查终端是否满足进入 IDLE状态的条件, 在满足条件 时, AA向该终端的 AAA服务器发送一条计费更新请求消息, 并携带指示 以通知 AAA服务器终端当前处于 IDLE状态。 其中, 所述计费更新请求消 息是中间更新请求。  Step 302: The AA checks whether the terminal meets the condition of entering the IDLE state. When the condition is met, the AA sends a charging update request message to the AAA server of the terminal, and carries an indication to notify the AAA server that the terminal is currently in the IDLE state. The charging update request message is an intermediate update request.
步驟 303: AAA服务器将终端当前正处于 IDLE状态的状态信息保存 在本地, 并向 AA返回计费更新应答消息。 其中, 所述计费更新应答消息 是中间更新应答。  Step 303: The AAA server saves the status information that the terminal is currently in the IDLE state locally, and returns a charging update response message to the AA. The charging update response message is an intermediate update response.
步驟 304: AA向终端返回 IDLE状态进入应答消息,同意终端进入 IDLE 状态。  Step 304: The AA returns an IDLE status entry response message to the terminal, and agrees that the terminal enters the IDLE state.
每个处于 IDLE状态的终端都会被指定一个寻呼周期。现有技术中,寻 呼周期时长不宜设置过短, 否则达不到节电目的, 特别是针对具有多路输 入多路输出 ( MIMO, Multiple-Input Multiple-Out-put )功能的终端。 一个典 型的最短合适时长为为 5.12秒。 以周期取值为 5.12秒为例, 处于 IDLE状 态的终端每 5.12秒会醒来一次, 并侦听有没有寻呼自己的寻呼消息, 其余 时间内, 终端不接受任何消息。 所以 PC若想寻呼终端, 就必须在终端醒来 的那个时间点上发送寻呼消息, 即最多每 5.12秒有一次唤醒终端的机会。 若终端在醒来的那个时间点上收到寻呼自己的寻呼消息, 终端就会触发执 行退出 IDLE状态的流程, 回到活跃 ( ACTIVE )状态(模式;), 在 ACTIVE 状态下, 终端可以接受呼叫。 Each terminal in the IDLE state is assigned a paging cycle. In the prior art, the duration of the paging cycle should not be set too short, otherwise the power saving purpose cannot be achieved, especially for a terminal having a MIMO (Multiple Input Multiple Output) function. A typical minimum suitable length is 5.12 seconds. Taking the period value of 5.12 seconds as an example, the terminal in the IDLE state wakes up every 5.12 seconds and listens to whether there is a paging message for paging itself. The terminal does not accept any messages during the time. Therefore, if the PC wants to page the terminal, it must send a paging message at the point in time when the terminal wakes up, that is, the opportunity to wake up the terminal at most once every 5.12 seconds. If the terminal receives a paging message at the point in time when the terminal wakes up, the terminal triggers the process of exiting the IDLE state, and returns to the active state (mode;). In the ACTIVE state, the terminal can Accept the call.
现有技术中, 在主叫终端呼叫被叫终端时, 主叫首先需要将 SIP邀请 ( SIP INVITE )信令消息发送到被叫终端上, 这个过程主要包含以下内容: 一. 主叫终端将 SIP INVITE信令消息发送到主叫终端的 VoIP服务器 上(主叫 VoIP服务器, 图 1虚线左侧)。 具体的, 主叫终端首先将该信令 消息以 IP数据包的形式通过基站发送到接入网关 (锚点 DPF ), 然后接入 网关再 4巴该 IP包发送到主叫 VoIP服务器上。  In the prior art, when the calling terminal calls the called terminal, the calling party first needs to send a SIP INVITE signaling message to the called terminal. The process mainly includes the following contents: 1. The calling terminal will SIP. The INVITE signaling message is sent to the VoIP server of the calling terminal (the calling VoIP server, the left side of the dotted line in Figure 1). Specifically, the calling terminal first sends the signaling message to the access gateway (an anchor DPF) in the form of an IP data packet, and then the access gateway sends the IP packet to the calling VoIP server.
二. 主叫 VoIP服务器解析信令消息,找到被叫终端的 VoIP服务器上(被 叫 VoIP服务器,图 1虚线右侧),并将该信令消息发送到被叫 VoIP服务器。  2. The calling VoIP server parses the signaling message, finds the VoIP server of the called terminal (called the VoIP server, the right side of the dotted line in Figure 1), and sends the signaling message to the called VoIP server.
三.被叫 VoIP服务器将该信令消息发送到被叫终端。具体的,被叫 VoIP 服务器将该信令以 IP数据包的形式发送到接入网关 (锚点 DPF ), 然后接 入网关将该 IP包通过基站发送给被叫终端。  3. The called VoIP server sends the signaling message to the called terminal. Specifically, the called VoIP server sends the signaling to the access gateway (an anchor DPF) in the form of an IP data packet, and then the access gateway sends the IP packet to the called terminal through the base station.
在上述过程中, 若当前被叫终端正处于 IDLE状态, 则当被叫 VoIP服 务器将 SIP INVITE信令消息以 IP包的形式发送到锚点 DPF后, 锚点 DPF 将无法将该 IP包继续发送到被叫终端, 只能将此 IP包緩存在本地。 同时, 锚点 DPF通知终端的 PC有发往被叫终端的数据到达;在 PC执行寻呼过程, 促使终端退出 IDLE状态之后, 锚点 DPF再将上述緩存的信令消息以 IP包 的形式通过基站发送到被叫终端。  In the above process, if the currently called terminal is in the IDLE state, after the called VoIP server sends the SIP INVITE signaling message to the anchor DPF in the form of an IP packet, the anchor DPF cannot continue to send the IP packet. To the called terminal, this IP packet can only be cached locally. At the same time, the anchor DPF notifies the PC of the terminal that the data sent to the called terminal arrives; after the PC performs the paging process to prompt the terminal to exit the IDLE state, the anchor DPF then passes the cached signaling message in the form of an IP packet. The base station sends to the called terminal.
综上所述, 由于 PC必须在终端醒来的那个时间点上才能寻呼终端, 最 坏情况下, 上述锚点 DPF通知 PC寻呼该终端时, 终端才刚刚醒来过一次。 此时, PC必须要等待一整个终端的寻呼周期, 才能寻呼该终端。 事实上, 为了达到终端节电的目的, 终端的寻呼周期的设置一般不会太短, 一般都 要大于上述的典型最短合适时长(5.12秒), 因此, PC寻呼终端并触发终 端退出 IDLE状态需要耗费较长的时间, 从而导致被叫 VoIP服务器想要确 认 SIP INVITE消息被被叫终端收到就必须等待较长的时间, 而等待较长时 间会导致如下一系列问题的产生: In summary, since the PC must page the terminal at the point in time when the terminal wakes up, in the worst case, when the anchor DPF notifies the PC to page the terminal, the terminal has just woken up once. At this time, the PC must wait for the paging cycle of an entire terminal to page the terminal. In fact, In order to achieve the purpose of power saving of the terminal, the setting of the paging cycle of the terminal is generally not too short, and generally is greater than the typical minimum suitable duration (5.12 seconds). Therefore, it takes time for the PC to page the terminal and trigger the terminal to exit the IDLE state. For a long time, the called VoIP server wants to confirm that the SIP INVITE message is received by the called terminal and has to wait for a long time, and waiting for a long time will lead to the following problems:
a、 被叫 VoIP服务器长时间得不到被叫终端的响应, 会致使被叫 VoIP 服务器定时器超时,并重发上述 SIP INVITE信令消息,甚至重发不止一次, 这些消息都将被当作 IP包而被堆积在锚点 DPF中。 当被叫终端退出 IDLE 状态恢复到 ACTIVE状态时,接入网关会将上述堆积的 IP包一次性全部发 送给被叫终端, 使得被叫终端同时收到多条 SIP INVITE消息, 致使被叫终 端处理失败, 导致呼叫建立失败;  a. The called VoIP server does not get the response of the called terminal for a long time, which will cause the called VoIP server timer to time out, and resend the SIP INVITE signaling message, or even resend it more than once. These messages will be treated as IP. The package is stacked in the anchor DPF. When the called terminal exits the IDLE state and returns to the ACTIVE state, the access gateway sends all the accumulated IP packets to the called terminal at one time, so that the called terminal receives multiple SIP INVITE messages at the same time, causing the called terminal to process. Failure, resulting in call setup failure;
b、 被叫 VoIP服务器长时间得不到被叫终端的响应, 会判断终端当前 不在线或者不可达, 进而触发执行不必要的呼叫转移业务(如, 不在线转 移)。 这样处理, 一是造成网络资源浪费; 二是造成多收取被叫用户的业务 使用费; 三是会引发被叫用户对网络能力的质疑, 因为在被叫用户看来, 其终端是处于开机状态的, 但是却接收不到呼叫。 二和三都会造成被叫用 户对运营商的极大不满, 使得运营商的信誉下降, 不利于业务开展; 四是 在呼叫转移业务执行后, 被叫终端退出了 IDLE状态并接收到锚点 DPF緩 存的 SIP INVITE消息以后, 被叫终端会正常处理该消息, 向主叫发送 SIP 应答。 此时主叫会收到来自被叫的应答以及来自呼叫转移以后的另一个终 端的 SIP应答, 会引起主叫对呼叫处理的混乱, 导致呼叫建立失败;  b. The called VoIP server does not get the response of the called terminal for a long time, and it will judge that the terminal is currently offline or unreachable, which in turn triggers the execution of unnecessary call forwarding services (for example, offline transfer). In this way, one is to waste network resources; the second is to charge the user's service usage fee; the third is to cause the called user to question the network capability, because the called user is in the boot state. But can't receive the call. Both the second and third will cause the called user to be greatly dissatisfied with the operator, which will reduce the reputation of the operator, which is not conducive to business development. Fourth, after the call forwarding service is executed, the called terminal exits the IDLE state and receives the anchor DPF. After the cached SIP INVITE message, the called terminal will process the message normally and send a SIP response to the calling party. At this point, the caller will receive a response from the called party and a SIP response from another terminal after the call transfer, which will cause the caller to confuse the call, causing the call setup to fail;
c、 主叫用户长时间听不到回铃音(RBT, Ring Back Tone ), 会认为网 络出现故障, 并选择放弃呼叫, 并向运营商抱怨网络质量差, 造成主叫用 户满意度降低, 同样也不利于运营商开展业务。 发明内容 c. The calling user does not hear the ring back tone (RBT, Ring Back Tone) for a long time, and will think that the network is faulty, and choose to abandon the call, and complain to the operator that the network quality is poor, resulting in lower satisfaction of the calling user. It is also not conducive to operators to conduct business. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种实现 VoIP呼叫建立的方法 及系统, 能避免因被叫 VoIP服务器想要确认 SIP INVITE消息被被叫终端 收到必须等待较长的时间而导致的上述一系列问题。  In view of this, the main object of the present invention is to provide a method and system for implementing VoIP call setup, which can avoid the situation that the called VoIP server wants to confirm that the SIP INVITE message has to wait for a long time after being received by the called terminal. The above series of questions.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种实现网络电话呼叫建立的方法, 该方法包括: 在被叫网络电话 ( VoIP )服务器收到发往被叫终端的会话初始协议(SIP )邀请 ( INVITE ) 消息时, 根据获取的被叫终端的状态信息判断出所述被叫终端当前所处的 状态为空闲 (IDLE )状态、 或根据获取的被叫终端的终端类型信息判断出 所述被叫终端的终端类型为移动终端, 执行相对应的呼叫建立操作。  A method for implementing network telephone call setup, the method comprising: when a called network telephone (VoIP) server receives a Session Initiation Protocol (SIP) Invite (INVITE) message addressed to a called terminal, according to the obtained called terminal The status information determines that the called terminal is currently in an idle (IDLE) state, or determines that the terminal type of the called terminal is a mobile terminal according to the obtained terminal type information of the called terminal, and performs corresponding Call setup operation.
其中, 获取所述被叫终端的状态信息包括: 鉴权授权计费 (AAA )服 务器将所述被叫终端的状态信息发送(推送)给 VoIP服务器。  The obtaining the status information of the called terminal includes: an authentication authorization charging (AAA) server sends (push) the status information of the called terminal to the VoIP server.
其中, 获取所述被叫终端的状态信息、 或获取所述被叫终端的终端类 型信息包括: VoIP服务器主动向 AAA服务器请求(索取), 从 AAA服务 器获取(拉取)所述被叫终端的状态信息、 或所述被叫终端的终端类型信 其中, 所述被叫终端的状态信息包括: 被叫终端当前处于 IDLE状态、 或被叫终端当前处于活跃 ( ACTIVE )状态。  The obtaining the status information of the called terminal or acquiring the terminal type information of the called terminal includes: the VoIP server actively requests (requests) from the AAA server, and acquires (pulls) the called terminal from the AAA server. The status information, or the terminal type of the called terminal, wherein the status information of the called terminal includes: the called terminal is currently in the IDLE state, or the called terminal is currently in an ACTIVE state.
其中, 所述被叫终端的终端类型信息包括: 被叫终端的终端类型为移 动终端、 或被叫终端的终端类型为固定终端。  The terminal type information of the called terminal includes: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is a fixed terminal.
其中, 当判断出所述被叫终端当前所处的状态为 IDLE状态、或判断出 所述被叫终端的终端类型为移动终端时, 执行的呼叫建立操作包括: 被叫 VoIP服务器调整 SIP消息的定时器, 延长超时时长至足够完成对所述被叫 终端的寻呼, 和 /或被叫 VoIP服务器向主叫方返回回铃音消息。  When it is determined that the called terminal is currently in the IDLE state, or the terminal type of the called terminal is determined to be a mobile terminal, the performed call setup operation includes: the called VoIP server adjusts the SIP message. The timer, the extended timeout period is long enough to complete the paging of the called terminal, and/or the called VoIP server returns a ringback tone message to the calling party.
一种实现网络电话呼叫建立的系统, 该系统包括: 判断单元和呼叫建 立单元; 其中, A system for implementing network telephone call setup, the system comprising: a judging unit and a call setup Unit; among them,
所述判断单元, 用于在收到发往被叫终端的 SIP INVITE消息时, 根据 获取的被叫终端的状态信息判断出所述被叫终端当前所处的状态为 IDLE 状态、 或根据获取的被叫终端的终端类型信息判断出所述被叫终端的终端 类型为移动终端;  The determining unit is configured to: when receiving the SIP INVITE message sent to the called terminal, determine, according to the obtained state information of the called terminal, that the current state of the called terminal is in an IDLE state, or according to the acquired state The terminal type information of the called terminal determines that the terminal type of the called terminal is a mobile terminal;
所述呼叫建立单元, 用于根据所述判断单元的判断结果, 执行相对应 的呼叫建立操作。  The call establishing unit is configured to perform a corresponding call setup operation according to the determination result of the determining unit.
其中, 该系统还包括获取单元, 用于获取所述被叫终端的状态信息; 所述获取包括 AAA服务器直接将所述被叫终端的状态信息发送(推送 )给 VoIP服务器。  The system further includes an obtaining unit, configured to obtain status information of the called terminal, and the acquiring includes: the AAA server directly sends (push) the status information of the called terminal to the VoIP server.
其中, 该系统还包括获取单元, 用于获取所述被叫终端的状态信息、 或获取所述被叫终端的终端类型信息; 所述获取包括 VoIP服务器主动向 AAA服务器请求(索取), 从 AAA服务器获取(拉取)所述被叫终端的状 态信息、 或所述被叫终端的终端类型信息。  The system further includes an obtaining unit, configured to acquire status information of the called terminal, or obtain terminal type information of the called terminal; the obtaining includes the VoIP server actively requesting (requesting) from the AAA server, from the AAA The server acquires (pushes) the status information of the called terminal or the terminal type information of the called terminal.
其中, 所述被叫终端的状态信息包括: 被叫终端当前处于 IDLE状态、 或被叫终端当前处于 ACTIVE状态。  The status information of the called terminal includes: the called terminal is currently in the IDLE state, or the called terminal is currently in the ACTIVE state.
其中, 所述被叫终端的终端类型信息包括: 被叫终端的终端类型为移 动终端、 或被叫终端的终端类型为固定终端。  The terminal type information of the called terminal includes: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is a fixed terminal.
其中, 所述呼叫建立单元, 进一步用于当判断出所述被叫终端当前所 处的状态为 IDLE状态、 或判断出所述被叫终端的终端类型为移动终端时, 被叫 VoIP服务器调整 SIP消息的定时器, 延长超时时长至足够完成对所述 被叫终端的寻呼, 和 /或被叫 VoIP服务器向主叫方返回回铃音消息。  The call establishing unit is further configured to: when it is determined that the current state of the called terminal is an IDLE state, or when determining that the terminal type of the called terminal is a mobile terminal, the called VoIP server adjusts the SIP. The timer of the message, the extension timeout is long enough to complete the paging of the called terminal, and/or the called VoIP server returns a ringback tone message to the calling party.
本发明在被叫 VoIP服务器收到发往被叫终端的 SIP INVITE消息时, 根据获取的被叫终端的状态信息判断被叫终端当前所处的状态是否为 IDLE状态, 或根据获取的被叫终端的终端类型信息判断被叫终端的终端类 型是否为移动终端, 执行相对应的呼叫建立操作。 When the called VoIP server receives the SIP INVITE message addressed to the called terminal, it determines whether the current state of the called terminal is in the IDLE state according to the obtained state information of the called terminal, or according to the obtained called terminal. Terminal type information to determine the terminal class of the called terminal Whether the type is a mobile terminal, performs a corresponding call setup operation.
采用本发明, 能获取到被叫终端的状态信息或被叫终端的终端类型信 息, 从而根据获取的被叫终端的状态信息判断被叫终端当前所处的状态是 否为 IDLE状态,或根据获取的被叫终端的终端类型信息判断被叫终端的终 端类型是否为移动终端,以执行相对应的呼叫建立操作,能避免因被叫 VoIP 服务器想要确认 SIP INVITE消息被被叫终端收到必须等待较长的时间而导 致的上述一系列问题。 附图说明  According to the present invention, the status information of the called terminal or the terminal type information of the called terminal can be obtained, thereby determining whether the current state of the called terminal is in the IDLE state according to the acquired status information of the called terminal, or according to the obtained The terminal type information of the called terminal determines whether the terminal type of the called terminal is a mobile terminal to perform a corresponding call setup operation, and can avoid waiting for the called VoIP server to confirm that the SIP INVITE message is received by the called terminal. The above series of problems caused by long time. DRAWINGS
图 1为现有技术中支持开展 VoIP业务的网络结构示意图;  FIG. 1 is a schematic diagram of a network structure supporting a VoIP service in the prior art;
图 2为现有技术中终端向 VoIP服务器注册的流程图;  2 is a flow chart of registering a terminal with a VoIP server in the prior art;
图 3为现有技术中终端的 IDLE状态被传到终端的 AAA服务器的流程 图;  3 is a flow chart of the AAA server in which the IDLE status of the terminal is transmitted to the terminal in the prior art;
图 4为本发明实施例一的获取被叫终端状态信息的流程图;  4 is a flowchart of acquiring status information of a called terminal according to Embodiment 1 of the present invention;
图 5为本发明实施例一的被叫终端处于 IDLE状态下时实现 VoIP呼叫 建立的流程图;  5 is a flowchart of implementing VoIP call establishment when a called terminal is in an IDLE state according to Embodiment 1 of the present invention;
图 6为本发明实施例二的获取被叫终端状态信息的流程图;  6 is a flowchart of acquiring status information of a called terminal according to Embodiment 2 of the present invention;
图 7为本发明实施例二的被叫终端处于 IDLE状态下时实现 VoIP呼叫 建立的流程图。 具体实施方式  FIG. 7 is a flowchart of implementing VoIP call establishment when the called terminal is in the IDLE state according to the second embodiment of the present invention. detailed description
本发明的基本思想是: 在被叫 VoIP服务器收到发往被叫终端的 SIP The basic idea of the present invention is: Receive a SIP addressed to the called terminal at the called VoIP server.
INVITE消息时,根据获取的被叫终端的状态信息判断被叫终端当前所处的 状态是否为 IDLE状态,或根据获取的被叫终端的终端类型信息判断被叫终 端的终端类型是否为移动终端, 执行相对应的呼叫建立操作。 In the INVITE message, it is determined whether the current state of the called terminal is the IDLE state according to the acquired state information of the called terminal, or whether the terminal type of the called terminal is a mobile terminal according to the acquired terminal type information of the called terminal. Perform the corresponding call setup operation.
下面结合附图对技术方案的实施作进一步的详细描述。 现有技术只能在被叫终端退出 IDLE状态时才能呼叫该被叫终端,以实 现 VoIP呼叫建立, 即: 需一直等待直至被叫终端醒来的那个时间点上才能 寻呼被终端。 从等待该时间点开始到寻呼被叫终端并触发被叫终端退出 IDLE状态需要耗费很长时间。 本发明的方案, 在被叫 VoIP服务器将 SIP INVITE消息发送到被叫终端之前, 增加了根据获取的被叫终端的状态信息 进行判断, 或者增加了根据获取的被叫终端的终端类型的判断(固定终端 \ 移动终端), 从而决定执行何种操作的过程, 实现被叫终端处于 IDLE状态 时的 VoIP呼叫建立, 能避免因被叫 VoIP服务器想要确认 SIP INVITE消息 被被叫终端收到必须等待较长的时间而导致的上述一系列问题。 The implementation of the technical solution will be further described in detail below with reference to the accompanying drawings. The prior art can only call the called terminal when the called terminal exits the IDLE state, so as to implement VoIP call setup, that is, it is necessary to wait until the called terminal wakes up at the time point to page the terminal. It takes a long time from waiting for the point in time to paging the called terminal and triggering the called terminal to exit the IDLE state. According to the solution of the present invention, before the called VoIP server sends the SIP INVITE message to the called terminal, the judgment is performed according to the obtained state information of the called terminal, or the judgment according to the obtained terminal type of the called terminal is added ( Fixed terminal\mobile terminal), which determines the process of performing the operation, realizes the VoIP call establishment when the called terminal is in the IDLE state, and can avoid waiting for the called VoIP server to confirm that the SIP INVITE message is received by the called terminal. The above series of problems caused by a long time.
一种实现 VoIP呼叫建立的方法, 主要包括以下内容:  A method for implementing VoIP call establishment mainly includes the following contents:
在被叫 VoIP服务器收到发往被叫终端的 SIP INVITE消息时, 根据获 取的被叫终端的状态信息判断被叫终端当前所处的状态是否为 IDLE状态, 或根据获取的被叫终端的终端类型信息判断被叫终端的终端类型是否为移 动终端, 从而决定执行何种相对应的操作。  When the called VoIP server receives the SIP INVITE message addressed to the called terminal, it determines whether the current state of the called terminal is in the IDLE state according to the obtained status information of the called terminal, or according to the acquired terminal of the called terminal. The type information determines whether the terminal type of the called terminal is a mobile terminal, thereby determining which corresponding operation is performed.
这里,被叫终端当前所处的状态为 IDLE状态所执行的相对应操作、和 被叫终端当前所处的状态不为 IDLE状态所执行的相对应操作是不同的;被 叫终端的终端类型是移动终端所执行的相对应操作、 和被叫终端的终端类 型是固定终端所执行的相对应操作是不同的。  Here, the corresponding operation performed by the called terminal in the IDLE state is different from the corresponding operation performed by the called terminal in the IDLE state; the terminal type of the called terminal is The corresponding operation performed by the mobile terminal and the terminal type of the called terminal are different from the corresponding operations performed by the fixed terminal.
进一步的, 获取被叫终端的状态信息具体包括: AAA服务器将所述被 叫终端的状态信息通知给 VoIP服务器。  Further, obtaining the status information of the called terminal specifically includes: the AAA server notifying the VoIP server of the status information of the called terminal.
进一步的, 获取被叫终端的状态信息, 或获取被叫终端的终端类型信 息具体包括: 在呼叫建立的过程中, VoIP服务器主动向 AAA服务器索取 被叫终端的状态信息、 或被叫终端的终端类型信息。  Further, obtaining the status information of the called terminal, or acquiring the terminal type information of the called terminal, specifically includes: in the process of establishing the call, the VoIP server actively requests the AAA server for the status information of the called terminal, or the terminal of the called terminal. Type information.
进一步的, 获取被叫终端的状态信息具体包括: 在被叫终端向 VoIP服 务器注册的过程中, VoIP服务器向 AAA服务器索取被叫终端的终端类型 信息。 Further, obtaining the status information of the called terminal specifically includes: in the process of registering the called terminal to the VoIP server, the VoIP server requests the AAA server for the terminal type of the called terminal. Information.
进一步的,被叫终端的状态信息具体包括: 被叫终端当前处于 IDLE状 态、 或者被叫终端当前处于 ACTIVE状态。  Further, the status information of the called terminal specifically includes: the called terminal is currently in the IDLE state, or the called terminal is currently in the ACTIVE state.
进一步的, 被叫终端的终端类型信息具体包括: 被叫终端当前的终端 类型为移动终端、 或被叫终端当前为固定终端。  Further, the terminal type information of the called terminal specifically includes: the current terminal type of the called terminal is a mobile terminal, or the called terminal is currently a fixed terminal.
进一步的, 被叫 VoIP服务器将发向被叫终端的所述 SIP INVITE消息 发送到被叫终端。  Further, the called VoIP server sends the SIP INVITE message sent to the called terminal to the called terminal.
进一步的, 获取被叫终端当前的状态信息、 或被叫终端的终端类型信 息后, VoIP服务器执行的相对应的操作具体包括:  Further, after the current state information of the called terminal or the terminal type information of the called terminal is obtained, the corresponding operations performed by the VoIP server specifically include:
当判断出被叫终端当前所处的状态为 IDLE状态,或判断出被叫终端的 终端类型为移动终端时, 被叫 VoIP服务器调整(重新设置 ) SIP消息(比 如 SIP INVITE消息) 的定时器(该定时器可以为超时定时器), 延长超时 时长至足够让网络完成对被叫终端的寻呼;和 /或被叫 VoIP服务器向主叫方 返回回铃音消息;  When it is determined that the called terminal is currently in the IDLE state, or it is determined that the terminal type of the called terminal is a mobile terminal, the called VoIP server adjusts (resets) the timer of the SIP message (such as a SIP INVITE message) ( The timer may be a timeout timer), the timeout period is extended to allow the network to complete paging to the called terminal; and/or the called VoIP server returns a ringback tone message to the calling party;
进一步的, 主叫方包括以下之一: 主叫终端、 或主叫 VoIP服务器。 以下对本发明进行举例阐述。  Further, the calling party includes one of the following: a calling terminal, or a calling VoIP server. The invention is illustrated by way of example below.
实施例一: VoIP服务器向 AAA服务器索取后, 从 AAA服务器获取终 端的状态信息。  Embodiment 1: After the VoIP server requests the AAA server, the AAA server obtains the status information of the terminal.
当该终端作为被叫终端被呼叫, 被叫 VoIP服务器收到来自主叫终端发 给被叫终端的 SIP INVITE消息时, 首先到被叫终端的 AAA服务器上, 查 询被叫终端状态信息是否为被叫终端当前处于 IDLE状态,若查询到被叫终 端当前处于 IDLE状态, 则调整(重新设置) SIP消息的超时定时器, 延长 超时时长, 向主叫方返回回铃音。  When the terminal is called as the called terminal, the called VoIP server receives the SIP INVITE message sent from the calling terminal to the called terminal, firstly to the AAA server of the called terminal, and queries whether the called terminal status information is The calling terminal is currently in the IDLE state. If the called terminal is currently in the IDLE state, the timeout timer of the SIP message is adjusted (reset), the timeout period is extended, and the ringback tone is returned to the calling party.
如图 4所示, VoIP服务器从 AAA服务器获取终端状态信息的流程, 无论是不是被叫, 都可以执行这个通用流程, 该流程包括如下步驟: 步驟 401 : VoIP服务器向 AAA服务器发送终端状态信息请求消息, 该 终端状态信息请求消息携带终端的标识。 As shown in FIG. 4, the VoIP server obtains the terminal status information from the AAA server, and the general process can be executed whether it is called or not. The process includes the following steps: Step 401: The VoIP server sends a terminal status information request message to the AAA server, where the terminal status information request message carries the identifier of the terminal.
这里,优选的,终端的标识可以是终端的网络接入标识符( NAI, Network Access Identifier ), 或者是终端用于使用 VoIP业务的标识等。  Here, preferably, the identifier of the terminal may be a network access identifier (NAI) of the terminal, or an identifier used by the terminal to use the VoIP service.
这里, 优选的, 该终端状态信息请求消息还携带一个用于指示 AAA服 务器返回指定终端当前状态的指示(Indication ), 或者指示 AAA服务器返 回指定终端是否处于 IDLE状态的指示。  Here, preferably, the terminal status information request message further carries an indication (Indication) for instructing the AAA server to return the current status of the designated terminal, or an indication that the AAA server returns whether the designated terminal is in the IDLE state.
这里, 优选的, 该终端状态信息请求消息可以是一条 AAA消息, 例如 使用远程用户拨号认证服务( RADIUS, Remote Authentication Dial In User Service )协议定义的消息,或者 Diameter协议定义的消息。 当使用 RADIUS 协议时, 该终端状态信息请求消息对应接入请求( Access-Request ) 消息。  Here, preferably, the terminal status information request message may be an AAA message, for example, a message defined by a Remote Authentication Dial In User Service (RADIUS) protocol, or a message defined by a Diameter protocol. When the RADIUS protocol is used, the terminal status information request message corresponds to an access request (Access-Request) message.
步驟 402: AAA服务器向 VoIP服务器返回终端状态信息应答消息, 其 中携带指定的终端当前的状态。  Step 402: The AAA server returns a terminal status information response message to the VoIP server, where the current status of the specified terminal is carried.
这里, 优选的, 该状态用于指示终端当前处于 IDLE状态, 或者处于 ACTIVE状态;或者该状态就是一个 1/0值(真 /假值), 1代表终端处于 IDLE 状态, 0代表终端不处于 IDLE状态。  Here, preferably, the state is used to indicate that the terminal is currently in the IDLE state, or is in the ACTIVE state; or the state is a 1/0 value (true/false value), 1 indicates that the terminal is in the IDLE state, and 0 indicates that the terminal is not in the IDLE state. status.
这里, 优先的, 当终端处于 IDLE状态时, 该终端状态信息应答消息还 可以用于将终端的寻呼周期( Paging Cycle )值发送给 VoIP服务器。  Here, preferentially, when the terminal is in the IDLE state, the terminal status information response message may also be used to send the paging cycle value of the terminal to the VoIP server.
这里, 优选的, 同步驟 401 所描述的, 该终端状态信息应答消息可以 是一条 AAA消息。 当使用 RADIUS协议时,该终端状态信息应答消息对应 接入接受 ( Access-Accept ) 消息。  Here, preferably, the terminal status information response message may be an AAA message as described in step 401. When the RADIUS protocol is used, the terminal status information response message corresponds to an Access-Accept message.
采用图 4所述的流程, 当被叫 VoIP服务器收到上述 SIP INVITE消息 以后, 可以从被叫终端的 AAA服务器中获取被叫终端当前是否处于 IDLE 状态的信息; 以及, 优选的, 当确定被叫终端处于 IDLE状态时, VoIP月良 务器还可以获知该被叫终端的寻呼周期。 如图 5所示, 当被叫终端处于 IDLE状态下时, 支持 VoIP呼叫建立的 流程, 包括以下步驟: Using the process described in FIG. 4, after the called VoIP server receives the SIP INVITE message, it can obtain information about whether the called terminal is currently in the IDLE state from the AAA server of the called terminal; and, preferably, when determined to be When the terminal is in the IDLE state, the VoIP server can also know the paging cycle of the called terminal. As shown in FIG. 5, when the called terminal is in the IDLE state, the process of supporting the VoIP call establishment includes the following steps:
步驟 501: 主叫终端将其发送给被叫终端的 SIP INVITE消息首先发送 到主叫 VoIP服务器。  Step 501: The SIP INVITE message sent by the calling terminal to the called terminal is first sent to the calling VoIP server.
步驟 502: 主叫 VoIP服务器向主叫终端返回 SIP正在尝试(SIP 100 Step 502: The calling VoIP server returns to the calling terminal SIP is trying (SIP 100
(Trying) ) 消息。 (Trying) ) Message.
步驟 503~步驟 504: 主叫 VoIP服务器查询主叫终端的 AAA服务器, 查询被叫终端是否被允许呼叫。 本实施例假设可以, 则该 AAA服务器向主 叫 VoIP服务器返回肯定的应答。  Step 503~Step 504: The calling VoIP server queries the AAA server of the calling terminal to query whether the called terminal is allowed to call. This embodiment assumes that the AAA server returns a positive response to the calling VoIP server.
步驟 505:主叫 VoIP服务器找到被叫 VoIP服务器,并将上述 SIP INVITE 消息发送到被叫 VoIP服务器。  Step 505: The calling VoIP server finds the called VoIP server and sends the above SIP INVITE message to the called VoIP server.
步驟 506: 被叫 VoIP服务器向主叫 VoIP服务器返回 SIP 100 ( Trying ) 消息。  Step 506: The called VoIP server returns a SIP 100 (Trying) message to the calling VoIP server.
步驟 507: 被叫 VoIP服务器向被叫终端的 AAA服务器发送终端状态 信息请求消息, 以请求被叫终端当前的状态 (同步驟 401所述)。  Step 507: The called VoIP server sends a terminal status information request message to the AAA server of the called terminal to request the current status of the called terminal (as described in step 401).
这里, 被叫 VoIP服务器可以根据上述来自主叫 VoIP服务器的 SIP INVITE 消息中携带的被叫终端的标识, 特别是其中标识中携带的域名信 息, 来找到被叫终端的 AAA服务器。  Here, the called VoIP server can find the AAA server of the called terminal according to the identifier of the called terminal carried in the SIP INVITE message from the calling VoIP server, in particular, the domain name information carried in the identifier.
步驟 508: 被叫终端的 AAA服务器获取被叫终端当前的状态信息, 并 依照步驟 402所描述的, 将该状态信息返回给被叫 VoIP服务器。  Step 508: The AAA server of the called terminal acquires current status information of the called terminal, and returns the status information to the called VoIP server according to step 402.
此外, 若被叫终端的 AAA服务器还未拥有该被叫终端的状态信息, 则 AAA服务器可以向该被叫终端的 AA发送消息, 来查询该被叫终端当前的 状态; 或者, 被叫终端的 AAA服务器在接收到被叫 VoIP服务器的查询请 求以后, 始终都到被叫终端的 AA查询, 即通过 AAA服务器向 AA索取终 端的状态信息的交互过程, 最终被叫终端的 AAA服务器获得该状态信息。 这里, 上述 AAA服务器向 AA发送的消息是 AAA消息 ( RADIUS, 或者 Diameter ),当使用 RADIUS协议时,该 AAA消息可以是 RADIUS CoA 消息, 则 AA用 RADIUS CoA ACK消息回应 AAA服务器, 其中携带终端 当前的状态信息。 In addition, if the AAA server of the called terminal does not have the status information of the called terminal, the AAA server may send a message to the AA of the called terminal to query the current status of the called terminal; or, the called terminal After receiving the query request from the called VoIP server, the AAA server always goes to the AA query of the called terminal, that is, the AAA server requests the AA to exchange the status information of the terminal, and finally the AAA server of the called terminal obtains the status information. . Here, the message sent by the AAA server to the AA is an AAA message (RADIUS, or Diameter). When the RADIUS protocol is used, the AAA message may be a RADIUS CoA message, and the AA responds to the AAA server by using a RADIUS CoA ACK message, where the current terminal is carried. Status information.
步驟 509: 当从 AAA服务器获得的信息指示被叫终端当前处于 IDLE 状态时, VoIP服务器延长对 SIP INVITE消息的等待超时定时器时长。  Step 509: When the information obtained from the AAA server indicates that the called terminal is currently in the IDLE state, the VoIP server extends the waiting timeout timer duration for the SIP INVITE message.
这里, 延长后的该定时器的超时时长可由运营商定制。 例如, 根据运 营商的组网部署, 被叫终端的最大寻呼周期是 20秒, 则上述的超时时长可 参考 20秒而定(例如, 定为 25秒), 以包容最坏的情况; 或者, 该时长参 考被叫终端的寻呼周期来定(同步驟 402所描述, VoIP服务器可以从 AAA 服务器中获取到被叫终端的寻呼周期值)。这样,依据不同的被叫终端, VoIP 服务器可以设定不同的超时时长。 在定时器超时之前, VoIP服务器不重发 SIP INVITE消息, 不触发呼叫前转等业务。  Here, the extended timeout period of the timer can be customized by the operator. For example, according to the network deployment of the operator, the maximum paging period of the called terminal is 20 seconds, and the timeout period may be determined by referring to 20 seconds (for example, 25 seconds) to accommodate the worst case; or The duration is determined by referring to the paging cycle of the called terminal (as described in step 402, the VoIP server can obtain the paging period value of the called terminal from the AAA server). In this way, depending on the called terminal, the VoIP server can set different timeout durations. Before the timer expires, the VoIP server does not resend the SIP INVITE message, and does not trigger services such as call forwarding.
步驟 510~步驟 511: 被叫 VoIP服务器向主叫 VoIP服务器发送回铃响 应(SIP 180 ); 主叫 VoIP服务器进一步向主叫终端发送 SIP 180, 并向主叫 用户播放 RBT, 提示用户等待。  Step 510~Step 511: The called VoIP server sends a ringback response (SIP 180) to the calling VoIP server; the calling VoIP server further sends SIP 180 to the calling terminal, and plays the RBT to the calling user, prompting the user to wait.
步驟 512: 被叫 VoIP服务器向被叫终端发送 SIP INVITE消息, 该消息 首先以数据包的形式发送到被叫终端的接入网 (被叫的锚点 DPF )。 并启动 上述超时定时器。  Step 512: The called VoIP server sends a SIP INVITE message to the called terminal, and the message is first sent in the form of a data packet to the access network of the called terminal (the called anchor DPF). And start the above timeout timer.
这里需要指出的是, 步驟 512与步驟 510可以同时执行。  It should be noted here that step 512 and step 510 can be performed simultaneously.
步驟 513: 此时接入网发现被叫终端正处于 IDLE状态, 因此触发 PC 发起对被叫终端的寻呼, 促使被叫终端退出 IDLE状态。  Step 513: At this time, the access network finds that the called terminal is in the IDLE state, so the triggering PC initiates paging to the called terminal, prompting the called terminal to exit the IDLE state.
步驟 514: 在被叫终端退出 IDLE状态以后, 终端的接入网将上述的数 据包(内含 SIP INVITE消息)发送到被叫终端。  Step 514: After the called terminal exits the IDLE state, the access network of the terminal sends the above data packet (containing the SIP INVITE message) to the called terminal.
步驟 515: 终端在对该 SIP消息处理以后, 向被叫 VoIP服务器返回 SIP 100 ( Trying ) 消息。 此时, 被叫 VoIP服务器收到该消息是在上述的定时 器超时之前。 Step 515: After processing the SIP message, the terminal returns a SIP to the called VoIP server. 100 ( Trying ) message. At this point, the called VoIP server receives the message before the timer expires.
步驟 516: 由于当前终端已经退出 IDLE状态, 进入了 ACVITE状态, 因此后续步驟与现有技术相同, 不再赘述。  Step 516: Since the current terminal has exited the IDLE state and enters the ACVITE state, the subsequent steps are the same as the prior art, and are not described again.
实际上, 在查询被叫终端状态的同时, 被叫终端的 VoIP服务器就可以 将 SIP INVITE消息向被叫终端发送出去, 这样有利于减少整个呼叫建立的 时延, 也即步驟 507与 512可以同时执行。  In fact, while querying the status of the called terminal, the VoIP server of the called terminal can send the SIP INVITE message to the called terminal, which is beneficial to reduce the delay of the entire call setup, that is, steps 507 and 512 can be simultaneously carried out.
实施例二: AAA服务器直接将终端状态信息通知给终端注册的 VoIP 服务器, 使 VoIP服务器获取终端状态信息。  Embodiment 2: The AAA server directly notifies the terminal status information to the VoIP server registered by the terminal, so that the VoIP server acquires the terminal status information.
当终端的 AAA服务器收到终端进入 IDLE状态的指示以后, 主动通知 终端注册的 VoIP服务器。 这样, 在后续该终端作为被叫终端被呼叫时, 被 叫 VoIP服务器可以直接在本地获取被叫终端的状态。  When the AAA server of the terminal receives the indication that the terminal enters the IDLE state, it actively informs the VoIP server registered by the terminal. In this way, when the terminal is called as the called terminal, the called VoIP server can directly obtain the state of the called terminal locally.
如图 6所示, AAA服务器将终端状态信息通知给终端注册的 VoIP服 务器, 使 VoIP服务器获取终端状态信息的流程, 无论是不是被叫, 都可以 执行这个通用流程, 该流程包括如下步驟:  As shown in FIG. 6, the AAA server notifies the VoIP server of the terminal status information to the terminal to register the VoIP server, so that the VoIP server can obtain the terminal status information, whether it is called or not, can perform the general process. The process includes the following steps:
步驟 601 : AAA服务器向 VoIP服务器发送终端状态信息更新消息, 该 终端状态信息更新消息中携带终端的标识。  Step 601: The AAA server sends a terminal status information update message to the VoIP server, where the terminal status information update message carries the identifier of the terminal.
这里, 优选的, 终端的标识可以是终端的 NAI, 或者是终端用于使用 VoIP业务的标识等。  Here, preferably, the identifier of the terminal may be the NAI of the terminal, or the identifier used by the terminal to use the VoIP service.
这里, 优选的, 本步驟如步驟 302所描述的 AAA服务器收到计费更新 请求消息触发。 计费更新请求消息可以用 "计费-中间更新请求" 表示。  Here, preferably, the step is triggered by the AAA server receiving the charging update request message as described in step 302. The charging update request message can be represented by "Billing - Intermediate Update Request".
这里需要指出的是, 如图 2所示, 当终端向 VoIP服务器注册时, VoIP 服务器会向终端的 AAA服务器发送消息 (接入请求消息)。 这里, 还要求 该 VoIP服务器在该消息中携带自身的标识, 将自身的标识(优选的, 还包 括 IP地址)发送给 AAA服务器, AAA服务器将之保存在本地。 这样, 在 本步驟中, AAA能够找到该终端注册的 VoIP服务器, 并向之发送上述的 终端状态信息更新消息。 It should be noted here that, as shown in FIG. 2, when the terminal registers with the VoIP server, the VoIP server sends a message (access request message) to the AAA server of the terminal. Here, the VoIP server is also required to carry its own identifier in the message, and send its own identifier (preferably, also including an IP address) to the AAA server, and the AAA server saves it locally. In this way, In this step, the AAA can find the VoIP server registered by the terminal, and send the terminal status information update message to the terminal.
这里, 优选的, 根据上述 "计费-中间更新请求" 中携带的当前终端状 态的描述, 该终端状态信息更新消息还携带一个用于指示该终端当前状态 的指示, 或者携带该终端是否处于 IDLE状态的指示。  Here, preferably, according to the description of the current terminal status carried in the foregoing “Bill-Intermediate Update Request”, the terminal status information update message further carries an indication for indicating the current status of the terminal, or carries whether the terminal is in IDLE. An indication of the status.
例如,若 "计费-中间更新请求"携带了终端当前处于(或不处于 ) IDLE 状态的描述,则上述的指示将用于通知 VoIP服务器该终端处于(或不处于) IDLE状态。  For example, if the "Bill-Intermediate Update Request" carries a description that the terminal is currently in (or not in) the IDLE state, then the above indication will be used to inform the VoIP server that the terminal is in (or not in) the IDLE state.
这里, 优选的, 当终端处于 IDLE状态时, 该终端状态信息更新消息可 以还携带终端的寻呼周期值。  Here, preferably, when the terminal is in the IDLE state, the terminal status information update message may further carry the paging period value of the terminal.
这里, 优选的, 该终端状态信息更新消息可以是一条 AAA消息, 例如 使用 RADIUS 协议定义的消息, 或者 Diameter协议定义的消息。 当使用 RADIUS 协议时, 该被叫终端状态信息更新消息为授权变更请求 (CoA Request, Change of Authorization Request ) 消息。  Here, preferably, the terminal status information update message may be an AAA message, for example, a message defined by using a RADIUS protocol, or a message defined by a Diameter protocol. When the RADIUS protocol is used, the called terminal status information update message is a CoA Request (Change of Authorization Request) message.
步驟 602: VoIP服务器向 AAA服务器发送终端状态信息更新应答消息。 这里, VoIP服务器收到上述终端状态信息更新消息携带的用于指示该 终端当前状态的指示, 或者携带的该终端是否处于 IDLE状态的指示后, 将 终端的状态(如处于 IDLE状态)信息保存在本地。 例如, 以终端的标识为 索引保存终端的状态。  Step 602: The VoIP server sends a terminal status information update response message to the AAA server. Here, the VoIP server receives the indication of the terminal status information update message for indicating the current status of the terminal, or the indication of whether the terminal is in the IDLE state, and saves the status of the terminal (eg, in the IDLE state). local. For example, the state of the terminal is saved by using the identifier of the terminal as an index.
这里, 优选的, 该终端状态信息更新应答消息可以是一条 AAA消息, 例如使用 RADIUS协议定义的消息, 或者 Diameter协议定义的消息。 当使 用 RADIUS协议时, 该终端状态信息更新应答消息为授权变更应答(CoA ACK, Change of Authorization ACK ) 消息、。  Here, preferably, the terminal status information update response message may be an AAA message, for example, a message defined by using a RADIUS protocol, or a message defined by a Diameter protocol. When the RADIUS protocol is used, the terminal status information update response message is a CoA ACK (Change of Authorization ACK) message.
采用图 6所述的流程, 终端注册的 VoIP服务器可以实时地、 或者准实 时地获知终端当前的状态、 或知道当前终端处于 /不处于 IDLE状态。 此时, 当该终端被呼叫时(即, 作为被叫终端时), 该终端的 VoIP服务器(此时 为被叫 VoIP服务器)可以在本地查询该被叫终端当前是否处于 IDLE状态。 Using the flow described in FIG. 6, the VoIP server registered by the terminal can know the current state of the terminal in real time or in near real time, or know that the current terminal is in/out of the IDLE state. at this time, When the terminal is called (ie, as the called terminal), the VoIP server of the terminal (in this case, the called VoIP server) can locally query whether the called terminal is currently in the IDLE state.
如图 7所示, 当被叫终端处于 IDLE状态下时, 支持 VoIP呼叫建立的 流程, 包括以下步驟:  As shown in FIG. 7, when the called terminal is in the IDLE state, the process of supporting the VoIP call establishment includes the following steps:
步驟 701-步驟 706: 同步驟 501至步驟 506。  Step 701 - Step 706: Same as step 501 to step 506.
步驟 707: 被叫 VoIP服务器从本地查询被叫终端当前的状态。  Step 707: The called VoIP server locally queries the current state of the called terminal.
如图 6所示, 被叫终端的 AAA服务器会将被叫终端当前的状态, 以及 优选的, 当被叫终端处于 IDLE状态时, 将被叫终端的寻呼周期值, 发送给 被叫终端注册的 VoIP服务器。 因此, 当收到 SIP INVITE消息以后, VoIP 服务器可以从本地获取该被叫终端当前的状态信息, 并判断该被叫终端当 前是否处于 IDLE状态。  As shown in FIG. 6, the AAA server of the called terminal will send the called terminal's paging period value to the called terminal to register the current state of the called terminal, and preferably, when the called terminal is in the IDLE state. VoIP server. Therefore, after receiving the SIP INVITE message, the VoIP server can obtain the current state information of the called terminal locally, and determine whether the called terminal is currently in the IDLE state.
步驟 708: 当判断被叫终端当前处于 IDLE状态时, 如步驟 509中描述 的, VoIP服务器延长对 SIP INVITE消息的等待超时定时器时长。  Step 708: When it is determined that the called terminal is currently in the IDLE state, as described in step 509, the VoIP server extends the waiting timeout timer duration for the SIP INVITE message.
步驟 709~步驟 715: 同步驟 510~步驟 516。  Step 709~Step 715: Same as step 510~Step 516.
通过本实施例描述的流程, 在被叫 VoIP服务器获取被叫终端当前处于 Through the process described in this embodiment, the called VoIP server acquires that the called terminal is currently in the
IDLE状态的信息以后,延长本身的定时器,解决了现有技术的问题。 同时, 被叫 VoIP服务器还提前向主叫终端播放回铃音提示主叫用户等待, 也解决 了现有技术会导致主叫用户满意度下降的缺陷。 After the information of the IDLE state, the timer itself is extended to solve the problem of the prior art. At the same time, the called VoIP server also plays a ringback tone to the calling terminal in advance to prompt the calling party to wait, which also solves the defect that the prior art will cause the satisfaction of the calling user to decrease.
实施例三: VoIP服务器从 AAA服务器获取终端的终端类型信息, 获 知当前终端的类型是移动终端, 还是固定终端。 一般来说, 固定终端不考 虑节电问题, 即固定终端不会进入 IDLE状态。在后续该终端作为被叫终端 被呼叫时, 被叫 VoIP服务器在获知被叫终端的类型之后: 若被叫终端是一 个移动终端, 则调整(重新设置) SIP消息的超时定时器, 延长超时时长, 向主叫方返回回铃音。  Embodiment 3: The VoIP server acquires the terminal type information of the terminal from the AAA server, and learns whether the current terminal type is a mobile terminal or a fixed terminal. In general, the fixed terminal does not consider the power saving problem, that is, the fixed terminal does not enter the IDLE state. When the terminal is called as the called terminal, the called VoIP server knows the type of the called terminal: If the called terminal is a mobile terminal, adjust (reset) the timeout timer of the SIP message, and extend the timeout period. , returning a ringback tone to the calling party.
如图 2所示, 当终端向 VoIP服务器注册时, VoIP服务器会向终端的 AAA服务器发送消息(接入请求消息), 终端的 AAA服务器执行完相应的 处理之后, 向 VoIP服务器返回应答消息(接入接受)。 这里, 还要求终端 的 AAA将终端的类型信息返回给终端。 例如, 该类型信息指明终端是移动 终端或者是固定终端; 或者该类型信息指明终端是不是移动终端。 获取终 端的类型信息以后, VoIP服务器将该信息保存在本地。 As shown in Figure 2, when the terminal registers with the VoIP server, the VoIP server will go to the terminal. The AAA server sends a message (access request message), and after the AAA server of the terminal performs the corresponding processing, it returns a response message (access acceptance) to the VoIP server. Here, the AAA of the terminal is also required to return the type information of the terminal to the terminal. For example, the type information indicates that the terminal is a mobile terminal or a fixed terminal; or the type information indicates whether the terminal is a mobile terminal. After obtaining the type information of the terminal, the VoIP server saves the information locally.
现有技术中, AAA上存储的用户的签约信息可以指明该用户是固定终 端用户、 或游牧终端用户、 或移动终端用户。 据此, 在本发明中, AAA可 以根据上述的用户的签约信息来判定终端的类型: 将签约固定终端用户的 终端判定为固定终端; 将签约移动终端用户的终端判定为移动终端; 签约 游牧终端的用户, 根据运营商策略可判定为固定终端, 或者移动终端。  In the prior art, the subscription information of the user stored on the AAA may indicate that the user is a fixed terminal user, or a nomadic terminal user, or a mobile terminal user. According to this, in the present invention, the AAA can determine the type of the terminal according to the subscription information of the user: determining the terminal of the contracted fixed terminal user as the fixed terminal; determining the terminal of the subscription mobile terminal user as the mobile terminal; signing the nomadic terminal The user can be determined as a fixed terminal or a mobile terminal according to the operator policy.
当终端作为被叫终端被呼叫时, 参考图 7所示的流程, 支持 VoIP呼叫 建立的流程, 包括以下步驟:  When the terminal is called as the called terminal, referring to the flow shown in Figure 7, the process of supporting the establishment of the VoIP call includes the following steps:
步驟 801~步驟 806: 同步驟 701~步驟 706。  Step 801 to step 806: Same as step 701 to step 706.
步驟 807: 被叫 VoIP服务器从本地查询被叫终端的终端类型。  Step 807: The called VoIP server locally queries the terminal type of the called terminal.
如上文所说,在 SIP注册流程中,被叫 VoIP服务器可以中被叫的 AAA 服务器中获取被叫终端的类型, 并保存在本地。 在本步驟中, VoIP服务器 可以从本地获取被叫终端的类型。 当判断被叫终端是移动终端时 (终端可 能在 IDLE状态, 也可能不在 IDLE状态), 则执行以下步驟 808-810; 否则 执行现有技术中的 SIP呼叫流程, 将 SIP INVITE消息发送到被叫终端 (终 端一定不在 IDLE状态)。 以下假定判断终端的类型是移动终端。  As mentioned above, in the SIP registration process, the called VoIP server can obtain the type of the called terminal from the called AAA server and save it locally. In this step, the VoIP server can obtain the type of the called terminal locally. When it is determined that the called terminal is a mobile terminal (the terminal may be in the IDLE state or may not be in the IDLE state), the following steps 808-810 are performed; otherwise, the SIP call flow in the prior art is executed, and the SIP INVITE message is sent to the called party. Terminal (the terminal must not be in the IDLE state). The following assumes that the type of the terminal is a mobile terminal.
步驟 808: 当判断终端是移动终端时, 如步驟 509中描述的, VoIP服 务器延长对 SIP INVITE消息的等待超时定时器时长。  Step 808: When it is determined that the terminal is a mobile terminal, as described in step 509, the VoIP server extends the waiting timeout timer duration for the SIP INVITE message.
步驟 809~步驟 810: 同步驟 510~步驟 511。  Step 809~Step 810: Same as step 510~Step 511.
步驟 811: 被叫 VoIP服务器向被叫终端发送 SIP INVITE消息, 该消息 首先以数据包的形式发送到被叫终端的接入网。 步驟 812: 若被叫终端当前处于 IDLE状态, 则由接入网触发执行寻呼 终端流程, 使被叫终端退出 IDLE状态。 若被叫终端不处于 IDLE状态, 则 本步驟不执行, 直接执行步驟 813。 Step 811: The called VoIP server sends a SIP INVITE message to the called terminal, and the message is first sent to the access network of the called terminal in the form of a data packet. Step 812: If the called terminal is currently in the IDLE state, the access network triggers the execution of the paging terminal process, so that the called terminal exits the IDLE state. If the called terminal is not in the IDLE state, this step is not performed, and step 813 is directly executed.
步驟 813: 终端的接入网将上述的数据包(内含 SIP INVITE消息)发 送到被叫终端。  Step 813: The access network of the terminal sends the foregoing data packet (containing the SIP INVITE message) to the called terminal.
步驟 814~步驟 815: 同步驟 515 ( 714 ) ~步驟 516 ( 715 )。  Step 814~Step 815: Same as step 515 (714) ~ step 516 (715).
通过该方法, 当判断终端是移动终端时, 无论终端是不是处于 IDLE状 态,均依照终端处于 IDLE状态的方法处理,可以解决现有技术存在的问题。  With this method, when it is determined that the terminal is a mobile terminal, whether the terminal is in the IDLE state or not, the method is processed according to the method in which the terminal is in the IDLE state, and the problem existing in the prior art can be solved.
终端在入网以后其终端类型不会发生变化, 所以, VoIP服务器在终端 的 SIP注册过程中, 从 AAA服务器获取终端类型比较合适。 当然, 也不排 除 VoIP服务器不在 SIP注册流程中获取终端类型的可能性。 比如, 当被叫 VoIP服务器收到发送给被叫终端的 SIP INVITE消息以后(参考图 5所示的 例子), 发现本地没有保存被叫终端的终端类型信息, 则可以向被叫终端的 AAA服务器请求该终端的类型。 优选的, 在得到 AAA服务器的响应以后, 再将该类型信息保存在本地。 同样的, 在这种情况下, VoIP服务器与 AAA 的交互也可以使用 RADIUS协议, 或者 Diameter协议, 不再赘述。  The terminal type does not change after the terminal enters the network. Therefore, the VoIP server obtains the terminal type from the AAA server during the SIP registration process of the terminal. Of course, the possibility that the VoIP server does not acquire the terminal type in the SIP registration process is not excluded. For example, after the called VoIP server receives the SIP INVITE message sent to the called terminal (refer to the example shown in FIG. 5), it finds that the terminal type information of the called terminal is not saved locally, and the AAA server can be sent to the called terminal. Request the type of the terminal. Preferably, after the response of the AAA server is obtained, the type information is saved locally. Similarly, in this case, the interaction between the VoIP server and the AAA can also use the RADIUS protocol, or the Diameter protocol, and will not be described again.
这里需要指出的是, 在 WiMAX 网络中, 上述 VoIP服务器又被称为 WVS Server。 在上述的两个实施例中, 可将 VoIP服务器等同替换为 WVS 服务器, 原理相同。  It should be noted here that in the WiMAX network, the above VoIP server is also called WVS Server. In the above two embodiments, the VoIP server equivalent can be replaced with the WVS server, and the principle is the same.
一种实现 VoIP呼叫建立的系统, 该系统包括: 判断单元和呼叫建立单 元, 其中, 判断单元用于在收到发往被叫终端的 SIP INVITE消息时, 根据 获取的被叫终端的状态信息判断出被叫终端当前所处的状态为 IDLE状态、 或根据获取的被叫终端的终端类型信息判断出被叫终端的终端类型为移动 终端。 呼叫建立单元用于根据判断单元的判断结果, 执行相对应的呼叫建 立操作。 这里, 该系统还包括获取单元, 获取单元用于获取被叫终端的状态信 息; 所述获取包括 AAA服务器直接将被叫终端的状态信息发送(推送 )给 VoIP服务器。 A system for establishing a VoIP call, the system comprising: a judging unit and a call establishing unit, wherein the judging unit is configured to judge, according to the acquired state information of the called terminal, when receiving the SIP INVITE message addressed to the called terminal The terminal is currently in the IDLE state, or determines the terminal type of the called terminal as the mobile terminal according to the obtained terminal type information of the called terminal. The call establishing unit is configured to perform a corresponding call establishing operation according to the judgment result of the determining unit. Here, the system further includes an obtaining unit, configured to obtain status information of the called terminal, and the acquiring includes the AAA server directly transmitting (pushing) the status information of the called terminal to the VoIP server.
这里, 该系统还包括获取单元, 获取单元用于获取被叫终端的状态信 息、 或获取被叫终端的终端类型信息; 所述获取包括 VoIP服务器主动向 AAA服务器请求(索取), 从 AAA服务器获取(拉取)被叫终端的状态信 息、 或被叫终端的终端类型信息。  Here, the system further includes an obtaining unit, configured to acquire state information of the called terminal, or obtain terminal type information of the called terminal; the obtaining includes: the VoIP server actively requests (requests) from the AAA server, and obtains from the AAA server. (pull) the status information of the called terminal, or the terminal type information of the called terminal.
这里, 被叫终端的状态信息具体包括: 被叫终端当前处于 IDLE状态、 或者被叫终端当前处于 ACTIVE状态。  Here, the status information of the called terminal specifically includes: the called terminal is currently in the IDLE state, or the called terminal is currently in the ACTIVE state.
这里, 被叫终端的终端类型信息具体包括: 被叫终端的终端类型为移 动终端、 或被叫终端的终端类型为固定终端。  Here, the terminal type information of the called terminal specifically includes: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is a fixed terminal.
这里, 呼叫建立单元进一步用于当判断出被叫终端当前所处的状态为 IDLE状态、 或判断出被叫终端的终端类型为移动终端时, 被叫 VoIP服务 器调整(重新设置 ) SIP消息的定时器, 延长超时时长至足够完成对被叫终 端的寻呼, 和 /或被叫 VoIP服务器向主叫方返回回铃音消息。  Here, the call setup unit is further configured to: when determining that the called terminal is currently in the IDLE state, or determining that the terminal type of the called terminal is a mobile terminal, the called VoIP server adjusts (resets) the timing of the SIP message. The extension timeout is long enough to complete the paging of the called terminal, and/or the called VoIP server returns a ringback tone message to the calling party.
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护 范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种实现网络电话呼叫建立的方法, 其特征在于, 该方法包括: 在 被叫网络电话(VoIP )服务器收到发往被叫终端的会话初始协议(SIP )邀 请(INVITE ) 消息时, 根据获取的被叫终端的状态信息判断出所述被叫终 端当前所处的状态为空闲 (IDLE )状态、 或根据获取的被叫终端的终端类 型信息判断出所述被叫终端的终端类型为移动终端, 执行相对应的呼叫建 立操作。  A method for implementing VoIP call setup, the method comprising: when a called VoIP server receives a Session Initiation Protocol (SIP) invite (INVITE) message addressed to a called terminal, Determining, according to the obtained status information of the called terminal, that the called terminal is in an idle (IDLE) state, or determining, according to the obtained terminal type information of the called terminal, that the terminal type of the called terminal is The mobile terminal performs a corresponding call setup operation.
2、 根据权利要求 1所述的方法, 其特征在于, 获取所述被叫终端的状 态信息包括: 鉴权授权计费 (AAA )服务器将所述被叫终端的状态信息发 送给 VoIP服务器。  The method according to claim 1, wherein the obtaining the status information of the called terminal comprises: an authentication authorization charging (AAA) server sending the status information of the called terminal to a VoIP server.
3、 根据权利要求 1所述的方法, 其特征在于, 获取所述被叫终端的状 态信息、 或获取所述被叫终端的终端类型信息包括: VoIP服务器主动向 AAA服务器请求, 从 AAA服务器获取所述被叫终端的状态信息、 或所述 被叫终端的终端类型信息。  The method according to claim 1, wherein the obtaining the status information of the called terminal or obtaining the terminal type information of the called terminal comprises: the VoIP server actively requests from the AAA server, and obtains from the AAA server. Status information of the called terminal or terminal type information of the called terminal.
4、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述被叫 终端的状态信息包括: 被叫终端当前处于 IDLE状态、或被叫终端当前处于 活跃(ACTIVE )状态。  The method according to any one of claims 1 to 3, wherein the status information of the called terminal comprises: the called terminal is currently in an IDLE state, or the called terminal is currently in an active (ACTIVE) state. .
5、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述被叫 终端的终端类型信息包括: 被叫终端的终端类型为移动终端、 或被叫终端 的终端类型为固定终端。  The method according to any one of claims 1 to 3, wherein the terminal type information of the called terminal comprises: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is Fixed terminal.
6、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 当判断出 所述被叫终端当前所处的状态为 IDLE状态、或判断出所述被叫终端的终端 类型为移动终端时, 执行的呼叫建立操作包括: 被叫 VoIP服务器调整 SIP 消息的定时器, 延长超时时长至足够完成对所述被叫终端的寻呼, 和 /或被 叫 VoIP服务器向主叫方返回回铃音消息。 The method according to any one of claims 1 to 3, wherein when it is determined that the called terminal is currently in the IDLE state, or the terminal type of the called terminal is determined to be In the case of the mobile terminal, the call setup operation performed includes: a timer for the called VoIP server to adjust the SIP message, extending the timeout period to be sufficient to complete paging to the called terminal, and/or the called VoIP server returning to the calling party Ringback tone message.
7、根据权利要求 1所述的方法,其特征在于,该方法还包括:被叫 VoIP 服务器将 SIP INVITE消息发送至所述被叫终端。 The method according to claim 1, further comprising: the called VoIP server transmitting a SIP INVITE message to the called terminal.
8、 一种实现网络电话呼叫建立的系统, 该系统包括: 判断单元和呼叫 建立单元; 其中,  8. A system for establishing a network telephone call, the system comprising: a judging unit and a call establishing unit;
所述判断单元, 用于在收到发往被叫终端的 SIP INVITE消息时, 根据 获取的被叫终端的状态信息判断出所述被叫终端当前所处的状态为 IDLE 状态、 或根据获取的被叫终端的终端类型信息判断出所述被叫终端的终端 类型为移动终端;  The determining unit is configured to: when receiving the SIP INVITE message sent to the called terminal, determine, according to the obtained state information of the called terminal, that the current state of the called terminal is in an IDLE state, or according to the acquired state The terminal type information of the called terminal determines that the terminal type of the called terminal is a mobile terminal;
所述呼叫建立单元, 用于根据所述判断单元的判断结果, 执行相对应 的呼叫建立操作。  The call establishing unit is configured to perform a corresponding call setup operation according to the determination result of the determining unit.
9、根据权利要求 8所述的系统,其特征在于,该系统还包括获取单元, 用于获取所述被叫终端的状态信息;所述获取包括 AAA服务器直接将所述 被叫终端的状态信息发送给 VoIP服务器。  The system according to claim 8, wherein the system further comprises an obtaining unit, configured to acquire state information of the called terminal; and the obtaining comprises: directly, by the AAA server, status information of the called terminal. Send to the VoIP server.
10、 根据权利要求 8所述的系统, 其特征在于, 该系统还包括获取单 元, 用于获取所述被叫终端的状态信息、 或获取所述被叫终端的终端类型 信息; 所述获取包括 VoIP服务器主动向 AAA服务器请求,从 AAA服务器 获取所述被叫终端的状态信息、 或所述被叫终端的终端类型信息。  The system according to claim 8, wherein the system further comprises an obtaining unit, configured to acquire state information of the called terminal, or obtain terminal type information of the called terminal; The VoIP server actively requests the AAA server to obtain the status information of the called terminal or the terminal type information of the called terminal from the AAA server.
11、 根据权利要求 8至 10中任一项所述的系统, 其特征在于, 所述被 叫终端的状态信息包括: 被叫终端当前处于 IDLE状态、或被叫终端当前处 于 ACTIVE状态。  The system according to any one of claims 8 to 10, wherein the status information of the called terminal comprises: the called terminal is currently in an IDLE state, or the called terminal is currently in an ACTIVE state.
12、 根据权利要求 8至 10中任一项所述的系统, 其特征在于, 所述被 叫终端的终端类型信息包括: 被叫终端的终端类型为移动终端、 或被叫终 端的终端类型为固定终端。  The system according to any one of claims 8 to 10, wherein the terminal type information of the called terminal comprises: the terminal type of the called terminal is a mobile terminal, or the terminal type of the called terminal is Fixed terminal.
13、 根据权利要求 8至 10中任一项所述的系统, 其特征在于, 所述呼 叫建立单元,进一步用于当判断出所述被叫终端当前所处的状态为 IDLE状 态、 或判断出所述被叫终端的终端类型为移动终端时, 被叫 VoIP服务器调 整 SIP 消息的定时器, 延长超时时长至足够完成对所述被叫终端的寻呼, 和 /或被叫 VoIP服务器向主叫方返回回铃音消息。 The system according to any one of claims 8 to 10, wherein the call establishing unit is further configured to: when it is determined that the called terminal is currently in an IDLE state Or, when it is determined that the terminal type of the called terminal is a mobile terminal, the called VoIP server adjusts the timer of the SIP message, and extends the timeout period to be sufficient to complete paging to the called terminal, and/or called The VoIP server returns a ringback tone message to the calling party.
PCT/CN2011/078254 2010-08-12 2011-08-11 Method and system for establishing voice over ip call WO2012019546A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010255036.6A CN102377887B (en) 2010-08-12 2010-08-12 A kind of method and system realizing the Internet telephone calls and set up
CN201010255036.6 2010-08-12

Publications (1)

Publication Number Publication Date
WO2012019546A1 true WO2012019546A1 (en) 2012-02-16

Family

ID=45567373

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078254 WO2012019546A1 (en) 2010-08-12 2011-08-11 Method and system for establishing voice over ip call

Country Status (2)

Country Link
CN (1) CN102377887B (en)
WO (1) WO2012019546A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024225B (en) * 2012-12-05 2014-08-13 优视科技有限公司 Method and device for achieving voice over Internet protocol (VoIP) conversations
CN103152495B (en) * 2013-02-04 2015-08-19 华为终端有限公司 A kind of method of media transfer, Apparatus and system
CN106559812B (en) * 2015-09-28 2019-10-01 中国移动通信集团公司 A kind of based reminding method, device and the core net node of end delay calling
CN109905208A (en) * 2019-03-14 2019-06-18 闪联信息技术工程中心有限公司 A method of obtaining terminal control message response
CN111836254B (en) * 2019-04-23 2023-05-26 中兴通讯股份有限公司 Service call realization method, device and equipment
CN114095885B (en) * 2020-07-31 2023-06-02 华为技术有限公司 Communication method, system and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859517A (en) * 2005-10-20 2006-11-08 华为技术有限公司 Click-to-call system of network telephone and its control method
CN101521948A (en) * 2008-02-26 2009-09-02 大唐移动通信设备有限公司 Method, system and user terminal for establishing VoIP calling
JP2009230540A (en) * 2008-03-24 2009-10-08 Fujitsu Ltd Session information duplicating method, call control server for executing the method and program of the method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859517A (en) * 2005-10-20 2006-11-08 华为技术有限公司 Click-to-call system of network telephone and its control method
CN101521948A (en) * 2008-02-26 2009-09-02 大唐移动通信设备有限公司 Method, system and user terminal for establishing VoIP calling
JP2009230540A (en) * 2008-03-24 2009-10-08 Fujitsu Ltd Session information duplicating method, call control server for executing the method and program of the method

Also Published As

Publication number Publication date
CN102377887A (en) 2012-03-14
CN102377887B (en) 2015-08-12

Similar Documents

Publication Publication Date Title
WO2012019546A1 (en) Method and system for establishing voice over ip call
KR100882187B1 (en) Apparatus and method for voice over ip under ip multimedia subsystem
WO2012142884A1 (en) Method and apparatus for network load information, user location information and policy processing
WO2007149020A1 (en) Loss of signalling bearer transport
WO2010017752A1 (en) Communication seamless switching method and mobile terminal
WO2009015525A1 (en) A method for switching the session control path of ip multimedia core network subsystem centralized service
US20080250466A1 (en) Method, system and apparatus for video sharing
WO2012159519A1 (en) Method and system for providing access network selection policy based on network status
WO2022267933A1 (en) Paging method, terminal, and network side device
WO2008086690A1 (en) An enquiry diversion service method and a device thereof
WO2014139234A1 (en) Mobile communication method, mobile communication server, and mobile communication system
WO2006114059A1 (en) A method and system for determining the central controlling server
WO2010102561A1 (en) Data local exchange method, device and system thereof
US20140324952A1 (en) Method and apparatus for network communication
WO2013170723A1 (en) Registration, discovery, access method, apparatus and system of communication terminals between terminals, and terminal discovery method and apparatus
WO2011018020A1 (en) Method and system for controlling load balance of pcrf, and redirect dra
WO2011127780A1 (en) Method for configuring digit map by access gateway
WO2010133139A1 (en) Short message network management realizing method, system and device
WO2011107001A1 (en) Call processing method and apparatus thereof
WO2008040216A1 (en) Method for call charging and charging system and device
WO2014187305A1 (en) Adjacency group communication method and terminal
WO2007109950A1 (en) A method and system for realizing speech interaction
KR100867447B1 (en) Apparatus and method of telephone service using data communication network
WO2012022148A1 (en) Method and gateway for cross-gateway self-exchange based on session initiation protocol
WO2010127490A1 (en) Method, apparatus and system for local routing

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

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

Country of ref document: EP

Kind code of ref document: A1