Disclosure of Invention
The invention aims to provide a method, application and device for identifying the user state in a network, so that the busy condition of a user can be identified according to the available bandwidth resources of the user before a call reaches a user terminal in an IMS-based packet domain, so that various operations for judging the busy condition of the user based on the available bandwidth resources of the user can be realized, and the requirement for developing corresponding services is further met.
The purpose of the invention is realized by the following technical scheme:
the invention provides a method for identifying user states in a network, which comprises the following steps:
A. a user initiates a call or sends the call to the user, and the entity through which the message of the call process passes determines the state of the user to be identified;
B. determining available bandwidth resource information of the user by a corresponding entity at the network side;
C. and determining the user state according to the determined available bandwidth resource information of the user on a corresponding entity at the network side.
The step A comprises the following steps:
the proxy-call session control function P-CSCF entity or the network determines that the NDUB server busy by the user receives the session message, or the resource admission control function entity receives the resource request message and determines the state of the user to be identified.
The step B comprises the following steps: the proxy-call session control function P-CSCF entity or the network determines that the user is busy NDUB server or the resource admission control function entity obtains the available bandwidth resource information;
and the step C comprises that the proxy-call session control function P-CSCF entity or the network determines that the user is busy NDUB server or the resource admission control function entity determines the user state according to the available bandwidth resource information and the minimum bandwidth resource for establishing the session.
The method further comprises the following steps:
when the network side obtains the message of subscribing the user state for obtaining the user state change information, the network side entity returns the response message of subscribing the user state when determining that the user state changes.
The method further comprises the following steps:
when the resource admission control function entity receives a resource request message triggered by the message of the subscriber state, when the resource admission control function entity determines that the user state of the corresponding user terminal changes, a response message of the subscriber state is replied;
or,
and setting the resource admission control function entity to send the updated user state information unconditionally when the resource admission control function entity determines that the user state of the corresponding user terminal changes.
The resource request message includes: and the P-CSCF sends a resource request message to the resource admission control function entity.
The step B specifically comprises the following steps:
in the resource admission control function entity, determining the current available bandwidth resource of the user terminal according to the current residual bandwidth of the network and the residual unused bandwidth information in the user signed bandwidth;
or,
and determining the residual unused bandwidth in the maximum bandwidth signed by the user as the current available bandwidth resource of the user terminal according to the maximum bandwidth signed by the user and the bandwidth occupied by the currently established session of the user terminal on a resource admission control function entity or a P-CSCF or an independently set network to determine the busy NDUB server of the user.
The maximum bandwidth signed by the user is preset and stored in a user service quality signing database, and the resource admission control function entity or the P-CSCF or the NDUB server directly or indirectly acquires the maximum bandwidth information signed by the user from the user service quality signing database.
The step C comprises the following steps:
and the resource admission control function entity or the P-CSCF or the NDUB server judges whether the current available bandwidth resource of the user terminal is smaller than the minimum bandwidth resource required by the current session establishment, if so, the user terminal is determined to be in a user busy state, and otherwise, the user terminal is determined to be in a user idle state.
The method further includes a process of determining a minimum bandwidth resource required for establishing the current session, and specifically includes:
presetting and storing the minimum bandwidth resource in a user service quality subscription database, directly or indirectly acquiring the minimum bandwidth resource information from the user service quality subscription database by a P-CSCF (serving Call Session control function) or NDUB (network node B) server, and directly acquiring the minimum bandwidth resource information from the user service quality subscription database by a resource admission control function entity;
or,
the P-CSCF or the NDUB server determines the minimum bandwidth resource information according to the information carried in the received session request message;
or,
the resource admission control functional entity determines the minimum bandwidth resource information according to the information carried in the received resource request message;
or,
and presetting and storing the minimum bandwidth resource information in a resource admission control functional entity, and locally determining the minimum bandwidth resource information by the resource admission control functional entity.
The step C further comprises the following steps:
on a P-CSCF or NDUB server, when the user is determined to be in a user busy state, the P-CSCF or NDUB server sends an SIP response code or an SIP notification message or an SIP publishing message which indicates that the user is busy; when the user is in the idle state, transmitting the SIP session request message to enable the session to be continuously established, or sending an SIP notification message or an SIP publishing message which represents that the user is idle;
or,
on the resource admission control function entity, when the user is determined to be in a user busy state, the resource admission control function entity returns a resource request response message indicating that the resources are insufficient to the P-CSCF, and the P-CSCF sends an SIP response code or an SIP notification message or an SIP release message indicating that the user is busy; and when the user is in the user idle state, returning a resource request response message indicating that the resources are enough to the P-CSCF, transmitting the SIP session request message by the P-CSCF, and enabling the session to be continuously established, or sending an SIP notification message or an SIP publishing message indicating that the user is idle.
The method of the invention also comprises the following steps:
when the resource admission control function entity determines that the current available bandwidth resource of the user changes, determining the current available bandwidth resource information of the changed user, and executing the step C;
or,
when the resource admission control function entity determines that the current available bandwidth resource of the user changes, the determined changed current available bandwidth resource information of the user is sent to the P-CSCF, and the step C is executed on the P-CSCF;
or,
when the resource admission control function entity determines that the current available bandwidth resource of the user changes, the determined changed current available bandwidth resource information of the user is sent to the P-CSCF, and the P-CSCF continuously sends the information to the NDUB server, and then step C is executed on the NDUB server.
The change of the current available bandwidth resource of the user comprises the following steps:
when the session resource of the user is successfully established or released, the current available bandwidth resource of the user is determined to be changed.
The invention also provides a method for implementing the service based on the user state, which comprises the following steps:
E. when the service based on the user state is initiated in the network, the user state of the user is identified by the network side, wherein the user state comprises identification and determination according to the available bandwidth resource information of the user;
F. in the network, controlling the realization process of the service based on the user state according to the user state information.
The service based on the user state comprises the following steps: the busy communication session completes the service, the busy call forwarding service and/or the communication waiting service.
In step E, the process of identifying the user status includes:
and if the current available bandwidth resource of the user is smaller than the minimum bandwidth resource required by the current session establishment, determining that the user is in a user busy state, otherwise, determining that the user is in a user idle state, wherein the current available bandwidth resource of the user is the residual unused bandwidth information in the user signed bandwidth.
The invention also provides a device for identifying the user state in the network, which is arranged at the network side and comprises:
an operation processing module: the system is used for calculating and determining the current available bandwidth resource information of the user;
a decision processing module: and the user state information of the current user is determined according to the bandwidth resource information which is determined by the operation processing module and is currently available for the user.
The operation processing module specifically comprises:
a user signed bandwidth obtaining module: the maximum bandwidth information used for obtaining the user signing is provided for the computing module;
an occupied bandwidth determination module: the device is used for counting and determining the bandwidth information occupied by the session established by the user currently and providing the bandwidth information to the computing module;
a calculation module: and calculating the difference between the maximum bandwidth information signed by the user and the occupied bandwidth information, and determining the available bandwidth resource information of the current user according to the difference.
The calculating module specifically directly uses the difference value as available bandwidth resource information of the current user, or the calculating module includes:
a difference value calculation module: the bandwidth information processing unit is used for calculating the difference value between the maximum bandwidth information signed by the user and the occupied bandwidth information as the residual unused bandwidth information in the signed bandwidth of the user;
a comparison processing module: the method is used for comparing the unused bandwidth information left in the user subscription bandwidth with the current remaining bandwidth of the network, and taking the smaller item of the unused bandwidth information as the available bandwidth resource information of the current user.
The operation processing module is arranged in a resource admission control function entity or a P-CSCF or an NDUB server.
In the apparatus according to the present invention, the first and second electrodes are arranged in a single plane,
when the operation processing module is arranged in the resource admission control function entity, the operation processing module acquires the maximum bandwidth information signed by the user from the local, or the operation processing module is communicated with a user service quality signing database to acquire the maximum bandwidth information of the user subscription stored in the operation processing module;
or,
when the operation processing module is arranged in the P-CSCF or the NDUB server, the operation processing module is communicated with the user service quality subscription database to acquire the maximum bandwidth information of the user subscription stored in the operation processing module, or the operation processing module locally acquires the maximum bandwidth information of the user subscription stored in the operation processing module in the P-CSCF or the NDUB server.
The device according to the present invention is described in the following,
an operation processing module arranged in the resource admission control functional entity acquires maximum bandwidth information signed by a user from a service quality subscription database through an I5 interface;
or,
an operation processing module arranged in the P-CSCF acquires the maximum bandwidth information signed by the user from a service quality subscription database through an I6 interface, or acquires the maximum bandwidth information signed by the user from a resource admission control function entity local or the service quality subscription database through an I4 interface;
or,
and the operation processing module arranged in the NDUB server acquires the maximum bandwidth information signed by the user from the service quality subscription database through an I7 interface, or indirectly acquires the maximum bandwidth information signed by the user from the service quality subscription database through a middle server.
The decision processing module specifically comprises:
a minimum bandwidth acquisition module: the system is used for acquiring the minimum bandwidth resource required by establishing the current session and providing the minimum bandwidth resource to the judgment module;
a judging module: comparing the available bandwidth resource of the current user provided by the operation processing module with the minimum bandwidth resource to determine that the corresponding user is in a user busy state or a user idle state.
In the apparatus according to the present invention, the first and second electrodes are arranged in a single plane,
the decision processing module acquires the minimum bandwidth resource information locally stored by the module from the network element where the module is located; or, the decision processing module communicates with a user service quality subscription database to acquire the minimum bandwidth resource information stored therein; or, the decision processing module analyzes the process message of the current session to obtain the minimum bandwidth resource information.
The decision processing module is arranged in a resource admission control function entity or a P-CSCF or an NDUB server.
In the apparatus according to the present invention, the first and second electrodes are arranged in a single plane,
a decision processing module arranged in the resource admission control functional entity acquires the minimum bandwidth resource information from a service quality subscription database through an I5 interface, or locally acquires the stored minimum bandwidth resource information signed by a user;
or,
a decision processing module arranged in the P-CSCF acquires the minimum bandwidth resource information from a service quality subscription database through an I6 interface, or acquires the minimum bandwidth resource information from a resource admission control function entity local or a service quality subscription database through an I4 interface, or acquires the stored minimum bandwidth resource information signed by a user locally;
or,
and a decision processing module arranged in the NDUB server acquires the minimum bandwidth resource information from a service quality subscription database through an I7 interface, or indirectly acquires the minimum bandwidth resource information from the service quality subscription database through a middle server, or locally acquires the stored minimum bandwidth resource information signed by the user.
In the apparatus according to the present invention, the first and second electrodes are arranged in a single plane,
the decision processing module arranged in the resource admission control function entity also comprises a resource request message analysis module used for analyzing the resource request message sent by the P-CSCF and acquiring the minimum bandwidth resource information from the analysis result;
or,
the decision processing module arranged in the P-CSCF or the NDUB server further comprises a session request message analysis module used for analyzing the received session request message and acquiring the minimum bandwidth resource information from the analysis result.
The device also comprises a user state informing module used for informing the user state to the service control unit which needs the user state processing service or the network element which needs the user state processing session.
In the apparatus according to the present invention, the first and second electrodes are arranged in a single plane,
when the user state notification module is arranged on the P-CSCF or the NDUB server, if the user is in a user busy state, the P-CSCF or the NDUB server sends a message indicating that the user is busy; if the user is in the user idle state, transmitting the SIP session request message, or sending a message indicating that the user is idle;
or,
when the user state notification module is arranged on the resource admission control function entity, if the user is in a user busy state, the resource admission control function entity returns a resource request response message indicating that the resource is insufficient to the P-CSCF, and the P-CSCF sends a message indicating that the user is busy; if the user is in the user idle state, returning a resource request response message indicating that the resources are enough to the P-CSCF, and transmitting the SIP session request message by the P-CSCF or sending a message indicating that the user is idle.
The technical scheme provided by the invention can be seen that the invention solves the problem that the network can not judge that the user is busy according to the current available resources of the user when the call does not reach the user terminal in the current packet domain based on the IMS. The realization of the invention ensures that the user state of the called user terminal can be judged based on the available bandwidth resources of the called user before the call initiated by the calling party reaches the called user terminal, thereby ensuring that the services of CW, CCBS, CFB and the like in the IMS packet network can be realized based on the available bandwidth resource information of the user.
In short, the realization of the invention can flexibly select two realization modes for judging the user busy according to the requirement in the IMS packet network, thereby improving the flexibility of network operation management.
Detailed Description
The invention provides an IMS-based packet network, which can realize the judgment processing of determining that a user is busy by the network according to the current available bandwidth resources of the user when a call does not reach a user terminal, thereby realizing the services of CW, CCBS, CFB and the like in the IMS packet network based on the available bandwidth resource information of the user.
Furthermore, since IMS supports multimedia calls, a session may include calls of different media types, and thus, the maximum number of sessions that a user can simultaneously perform, the maximum available bandwidth resources, and the like may be set for different media types, respectively. For example, for the maximum number of sessions that can be performed by the user at the same time, the corresponding maximum number that can be performed at the same time may be set for different media types, and for the maximum available bandwidth resource of the user, the corresponding maximum available bandwidth resource may also be set for different media types. In the following description of the present invention, a process for determining that a user is busy by a network according to bandwidth resources will be mainly described.
First, a specific implementation of the apparatus provided by the present invention will be described with reference to the accompanying drawings, as shown in fig. 1, the apparatus provided by the present invention is disposed at a network side, for example, the apparatus may be disposed in an IMS network for implementing a corresponding user busy decision function. The device specifically includes:
(1) operation processing module
The module is used for calculating and determining the current available bandwidth resource information of the user required by the decision processing module, and the operation processing module specifically comprises:
a user signed bandwidth obtaining module: the maximum bandwidth information used for obtaining the user signing is provided for the calculation module so that the calculation module can carry out corresponding calculation processing;
an occupied bandwidth determination module: the device is used for determining the bandwidth information occupied by the session established by the user at present according to the statistical calculation result of the bandwidth information occupied by the session established by the user and providing the bandwidth information to the calculation module;
a calculation module: calculating the difference between the maximum bandwidth information signed by the user and acquired by the user signed bandwidth acquisition module and the occupied bandwidth information determined by the occupied bandwidth determination module, and then determining the available bandwidth resource information of the current user according to the difference, wherein the difference can be directly used as the available bandwidth resource information of the current user, or the available bandwidth resource information of the current user can be comprehensively determined according to the difference and the current residual bandwidth of the network;
when the operation processing module is disposed in the resource admission control function entity, and the computing module determines the available bandwidth resource information of the current user according to the difference and the current remaining bandwidth of the network, the computing module may further include the following two component modules:
a difference value calculation module: the bandwidth information processing unit is used for calculating the difference value between the maximum bandwidth information signed by the user and the occupied bandwidth information as the residual unused bandwidth information in the signed bandwidth of the user;
a comparison processing module: the method is used for comparing the unused bandwidth information left in the user subscription bandwidth with the current remaining bandwidth of the network, and taking the smaller item of the unused bandwidth information as the available bandwidth resource information of the current user.
In the device of the invention, the operation processing module is arranged in a resource admission control function entity or a network side entity such as a P-CSCF or an NDUB server.
When the operation processing module is located in different network side entities, the corresponding processing modes for acquiring the maximum bandwidth information signed by the user are different, and are respectively as follows:
(11) when the operation processing module is arranged in the resource admission control function entity, the operation processing module locally acquires the stored maximum bandwidth information signed by the user, or the operation processing module directly communicates with a user service quality signing database through an I5 interface to acquire the maximum bandwidth information signed by the user;
(12) when the operation processing module is arranged in the P-CSCF or the NDUB server, the operation processing module is communicated with the user service quality subscription database to obtain the maximum bandwidth information of the user subscription stored in the operation processing module, wherein:
the operation processing module arranged in the P-CSCF directly obtains the maximum bandwidth information signed by the user from the service quality subscription database through an I6 interface, or indirectly obtains the maximum bandwidth information signed by the user from the service quality subscription database through an I4 interface and a resource admission control functional entity, or obtains the maximum bandwidth information of the user subscription stored in the local of the latter from the resource admission control functional entity through an I4 interface;
an operation processing module arranged in the NDUB server directly obtains maximum bandwidth information signed by a user from a service quality subscription database through an I7 interface, or indirectly obtains the maximum bandwidth information signed by the user from the service quality subscription database through a middle server;
or, the P-CSCF or the ndib server may also obtain the stored maximum bandwidth information subscribed by the user from the local.
(2) Decision processing module
The module is used for determining the user state information of the current user according to the bandwidth resource information which is currently available for the user and is determined by the operation processing module, namely determining that the user is in a user busy state or a user idle state;
the decision processing module specifically comprises:
a minimum bandwidth acquisition module: the system is used for acquiring the minimum bandwidth resource required by establishing the current session and providing the minimum bandwidth resource to the judgment module; the minimum bandwidth resource information locally stored by the module can be obtained from the network element where the module is located; or, communicating with a user service quality subscription database to obtain the minimum bandwidth resource information stored therein, or, obtaining the minimum bandwidth resource information by analyzing the received session request message;
a judging module: comparing the available bandwidth resource of the current user provided by the operation processing module with the minimum bandwidth resource to determine that the corresponding user is in a user busy state or a user idle state.
According to the definition of TISPAN, "network decision user busy (nbu)" may further subdivide "user decision user approaching busy (approaching nbu)", and correspondingly, the minimum bandwidth resource may further subdivide bandwidth information for determining that a user is "busy" and "approaching busy", where "busy" is determined if the available bandwidth resource of the current user is less than 1K, and "approaching busy" is determined if the available bandwidth resource of the current user is less than 8K. The scheme of the invention is also suitable for the network to identify the 'busy' state of the user.
In addition, as mentioned above, the maximum available bandwidth resources of the user may also be set for the corresponding maximum available bandwidth resources for different media types, so that for different media types, the corresponding different minimum bandwidth resources may be distinguished, obviously, the determining module may determine the busy and idle states of the user, including a "near busy" state, according to the media type required to be established by the current user session request message, for example, the user session request message carries two media types, i.e., an audio media type and a video media type, and the user state is "idle" for establishing an audio session and "busy" for establishing a video session, after being processed by the determining module.
Similarly, in the apparatus of the present invention, the decision processing module is disposed in a resource admission control function entity or a network-side entity such as a P-CSCF or an ndib server, and the decision processing module and the operation processing module may be disposed in the same entity or may be separately disposed in different entities. The decision processing module is set in different entities, and the manners of acquiring the minimum bandwidth resource information by the decision processing module are different, which will be described below:
(21) a decision processing module arranged in the resource admission control functional entity directly communicates with a service quality subscription database through an I5 interface to acquire the minimum bandwidth resource information;
or, acquiring the saved user signed minimum bandwidth resource information from the local;
or, the decision processing module arranged in the resource admission control function entity further comprises a resource request message analysis module, which is used for analyzing the resource request message sent by the P-CSCF and acquiring the minimum bandwidth resource information from the analysis result;
(22) a decision processing module arranged in the P-CSCF directly acquires the minimum bandwidth resource information from the qos subscription database through an I6 interface, or indirectly acquires the minimum bandwidth resource information from the qos subscription database through an I4 interface and a resource admission control function entity, or acquires the user subscription minimum bandwidth resource information stored locally in the latter from the resource admission control function entity through an I4 interface, or acquires the stored user subscription minimum bandwidth resource information locally;
(23) and a decision processing module arranged in the NDUB server directly acquires the minimum bandwidth resource information from a service quality subscription database through an I7 interface, or indirectly acquires the minimum bandwidth resource information from the service quality subscription database through a middle server, or locally acquires the stored user subscription minimum bandwidth resource information.
Meanwhile, the decision processing module arranged in the P-CSCF or the NDUB server further comprises a session request message analyzing module used for analyzing the received session request message and acquiring the minimum bandwidth resource information from the analysis result.
(3) User state notification module
The device also includes a user state informing module for informing the user state to the service control unit needing the user state processing service or other network elements needing the user state processing session, the informing message received by the service control unit or other network elements can be SIP message, or internal message, for example, when the user state informing module and the service control unit are on the same network entity, the user state can be transmitted through the content message. Similarly, the user status notification module may be respectively disposed in the resource admission control function entity or the network side entities such as the P-CSCF or the ndib server, and the implemented functions thereof are as follows:
when the module is arranged on a P-CSCF or an NDUB server, if the user is in a user busy state, the P-CSCF or the NDUB server sends a message indicating that the user is busy; if the user is in the user idle state, transmitting the SIP session request message, or sending a message indicating that the user is idle;
when the module is arranged on the resource admission control function entity, if the user is in a user busy state, the resource admission control function entity returns a resource request response message indicating that the resource is insufficient to the P-CSCF, and the P-CSCF sends a message indicating that the user is busy; if the user is in the user idle state, returning a resource request response message indicating that the resources are enough to the P-CSCF, and transmitting the SIP session request message by the P-CSCF or sending a message indicating that the user is idle.
For convenience of describing a specific implementation of the apparatus of the present invention, a network logical architecture to which the present invention is applicable is also presented, as shown in fig. 2, fig. 2 is a network architecture implementation based on an NGN defined by an IMS, and fig. 2 specifically includes the following components:
(1) service control unit
The unit is used for providing a service logic control function for various services which need to use the network to determine the user busy as a trigger condition, and the unit is used as a host execution environment of the services, such as a CW service control unit for executing the CW service, a CCBS service control unit for executing the CCBS service, and the like;
the interface between the service control unit and the S-CSCF (serving-call session control function) is an I2 interface, and in the IMS network, the I2 interface is implemented based on the SIP protocol.
(2) NDUB server
The present invention is designed for realizing the present invention, which is used for providing user status information for entities in other networks, such as user busy, user idle, etc., and at the same time, it can also judge the current status of the user according to the maximum number of sessions that the user can simultaneously perform and the current available resources (bandwidth) of the user, the interface between the user and the S-CSCF is I3 interface, in the IMS network, the I3 interface is SIP protocol;
as a logic function, the ndib server may be an independent network element, or may be located on other network elements, such as a Service control unit (sccu), a Service Broker (Service Broker), and so on.
(3) S-CSCF (service-call session control function)
The method is mainly used for providing a routing control function for the session, and can be specifically implemented by referring to the prior art.
(4) P-CSCF (proxy-Call Session control function)
The method is mainly used for providing access authentication for users and providing a resource request function of a resource admission control function for sessions, and can be specifically realized by referring to the prior art;
the I1 interface between the P-CSCF and the S-CSCF is implemented based on the SIP protocol.
(5) Resource admission control function
The system is used for providing resource admission control for the session, comprehensively judging whether the network is allowed or not and whether enough bandwidth resources are provided for the session or not according to the service quality subscription data signed by the user, the current network resource condition and the like;
the I4 interface between the resource admission control function and the P-CSCF is implemented based on the Diameter (an authentication, authorization and charging protocol) protocol.
In 3GPP (3rd Generation Partnership Project) and TISPAN standards, a resource admission control function is performed by a plurality of functional network elements, which cooperate with each other to perform authorization control for media resources required for a session, and the specific functions and interfaces of the network elements are not within the scope of the present invention, and thus will not be described in detail. In the 3GPP and TISPAN standards, functional network elements in the resource admission control Function that directly interface with the P-CSCF are respectively called PDF (Policy Decision Function) and SPDF (Service-based Policy Decision Function), and the I4 interface also refers to interfaces between the P-CSCF and the PDF and SPDF. (6) User service quality subscription database
The quality of service subscription data used to provide the user, such as the maximum bandwidth resource the user has subscribed to, is sometimes referred to as a quality of service profile (QoS profile). An interface between a user service quality subscription database and a resource admission control function is an I5 interface, in the TISPAN standard, an I5 interface is implemented based on a Diameter protocol, and in the 3GPP standard, an I5 interface is implemented based on an MAP (Mobile Application Part) protocol. The interface between the user service quality subscription database and the P-CSCF is an I6 interface, and an I6 interface is also realized based on a Diameter protocol. The interface between the user service quality subscription database and the NDUB server is an I7 interface, and an I7 interface is also realized based on a Diameter protocol.
As a logic function, the user service quality subscription database may be an independent database Network element, or may be located in other Network elements or subsystems in the Network, such as an HLR (Home Location Register), a NASS (Network Attachment Sub-system), an HSS (Home subscriber Server), and the like, or may locate different subscription data (such as a maximum bandwidth and a minimum bandwidth) in different Network elements or subsystems.
The following describes the implementation of the method of the present invention, and specifically describes the application in the packet network based on the IMS as an example, and the services to which the present invention can be applied include services triggered based on user busy, such as a busy communication session completion service, a busy call forwarding service, and a communication waiting service.
In the invention, when a calling user initiates a call and the initiated SIP session request message does not reach a user terminal, a decision processing module in a network side entity receives a request message, such as a session request or a resource request message;
at this time, the decision processing module decides the user state according to whether the current available resources of the called user are enough to support the establishment of the SIP session, and returns a response message which can represent the user state decided by the network; the information of the currently available resources of the called user is obtained by calculation through an operation processing module, and specifically, the currently available resources of the user are determined by calculation according to information such as the currently remaining bandwidth of the network and/or the unused bandwidth remaining in the user subscription bandwidth.
In the method of the present invention, when the operation processing module and the decision processing module are disposed in different network side entities, corresponding processing procedures are also different, and the corresponding processing procedures provided by the method of the present invention will be described below when the two modules are disposed in different network side entities. In the following description, it is assumed that there is enough remaining bandwidth in the network, and the current remaining bandwidth of the network is not enough and is smaller than the unused bandwidth remaining in the user subscription bandwidth, the current remaining bandwidth of the network will be used as the bandwidth resource currently available to the user.
Operation processing module
(1) When the operation processing module is arranged in the resource admission control function, the resource admission control function acquires the maximum bandwidth signed by the user from the user service quality signed database through an I5 interface or acquires the maximum bandwidth signed by the user from the local storage, and accumulates and dynamically calculates the bandwidth occupied by the currently established session of the user, and then subtracts the bandwidth occupied by the currently established session from the maximum bandwidth signed by the user to obtain the residual unused bandwidth in the signed bandwidth of the user, which is used as the currently available bandwidth resource of the user.
(2) When the operation processing module is arranged in the P-CSCF or the NDUB server, the P-CSCF or the NDUB server accumulates and dynamically calculates the bandwidth occupied by the currently established session of the user, and subtracts the bandwidth from the maximum bandwidth resource signed by the user to obtain the residual unused bandwidth in the signed bandwidth of the user, so that the residual unused bandwidth is used as the currently available bandwidth resource of the user;
the maximum bandwidth signed by the user can be preset and stored in a user service quality subscription database, and then the P-CSCF can be directly obtained through an I6 interface or indirectly obtained through an I4 interface from a resource admission control function; the NDUB server is directly obtained through an I7 interface, or indirectly obtained through a corresponding intermediate server, such as a GUP (Universal user information) server;
or, the P-CSCF or the ndib server may also obtain the stored maximum bandwidth information subscribed by the user from the local.
Decision processing module
(1) When the decision processing module is set in the resource admission control function, the corresponding decision processing procedure includes the following procedures:
(11) the P-CSCF receives the SIP session request message or the SIP subscription message and then sends a resource request message to a resource admission control function;
the method specifically comprises the following steps: the SIP session request message received by the P-CSCF can carry an indication for immediately executing the function of ' network determining user busy ', namely an indication for requiring the network to determine user busy ', so that the P-CSCF can immediately send the resource request message to the resource admission control function according to the indication; the SIP session request message may not carry the indication, and at this time, the P-CSCF unconditionally sends the resource request message to a resource admission control function;
wherein, the indication may be a service type of the service, or an identifier for immediately executing a function of "network determines user busy", or an indication of an event package for subscribing user status;
(12) the resource admission control function judges whether the bandwidth resources currently available to the user are less than the minimum bandwidth required for the establishment of the SIP session:
if the resource request message is less than the preset resource request message, returning a response message of the resource request message indicating that the resources are insufficient to the P-CSCF; after receiving the response message from the resource admission control function, the P-CSCF determines that the response message indicates that the resources are insufficient, and then sends an SIP response code, an SIP notification message or an SIP release message indicating that the user is busy;
if not, returning a response message of the resource request message indicating that the resources are enough, namely transferring the SIP session request message to enable the session to be continuously established, or sending a SIP notification message or a SIP publish message indicating that the user is idle.
Wherein, the minimum bandwidth information can be obtained by any one of the following three ways:
the minimum bandwidth information can be preset in a resource admission control function and obtained locally;
presetting the minimum bandwidth information in a user service quality subscription database, and acquiring a resource admission control function through an I5 interface;
and the minimum bandwidth information is loaded in a resource request message and is obtained by analyzing the resource request message sent by the P-CSCF to a resource admission control function.
(2) When the decision processing module is disposed in the P-CSCF or the ndib server, the corresponding processing procedure specifically includes:
(21) the P-CSCF or the NDUB server receives the SIP session request message or the SIP subscription message;
(22) the P-CSCF or NDUB server judges whether the current available resources of the user are smaller than the minimum bandwidth required by the current session establishment, and if so, the P-CSCF or NDUB server sends an SIP response code or an SIP notification message or an SIP release message indicating that the user is busy; otherwise, transmitting the SIP session request message to enable the session to be continuously established, or sending an SIP notification message or an SIP publishing message which represents that the user is idle;
similarly, the minimum bandwidth may be preset in a user service quality subscription database, and the P-CSCF directly obtains the minimum bandwidth through an I6 interface, or indirectly obtains the minimum bandwidth through an I4 interface from a resource admission control function; or the minimum bandwidth requirement carried in the SIP session request message received by the P-CSCF; the NDUB server directly obtains the minimum bandwidth through an I7 interface, or indirectly obtains the minimum bandwidth from a user service quality subscription database through a GUP server, or can obtain the minimum bandwidth requirement carried in the SIP session request message received by the NDUB server, or the P-CSCF or the NDUB server can also obtain the stored minimum bandwidth requirement from the local.
In the above processing process, if the operation processing module is located in the resource admission control function and the decision processing module is located in the P-CSCF, when the session resource is successfully established and the session resource is released, the resource admission control function takes the unused bandwidth remaining in the user signed bandwidth as the currently available bandwidth resource of the user and sends the bandwidth resource to the P-CSCF through the I4 interface;
if the decision processing module is set in the NDUB server, the P-CSCF needs to continue to transmit the media attribute description of the SDP (session description protocol) in the SIP message to the NDUB server on the basis of the above process.
In the method of the invention, before the call initiated by the user does not reach the user terminal, the user state information can be subscribed to the network side entity through the message of subscribing the user state, and when the network side entity determines that the corresponding user state changes, the response message of the corresponding subscribing user state is returned to inform the subscribing terminal of the change of the user state. For example, the time when the user changes into the user idle state can still be known in real time by using the corresponding message for subscribing the user state after determining that the user is in the user busy state, so as to realize the corresponding service in time.
The message of subscribing the user state may be sent by the service control unit or other network elements that need to process the user state session under the condition that the user state is unknown, or sent by the service control unit or other network elements for further acquiring the user state change information after the service control unit or other network elements already know the user state.
The message of subscribing the user state can be realized by a session request message carrying a subscribing user state event, or a resource request message carrying a resource change notification indication, or can be realized by an independent SIP subscription message. When the decision processing module receives the message for subscribing the user state, when the decision processing module acquires the updated bandwidth resource information currently available for the user from the operation processing module, the decision processing module judges whether the user state changes, and if the user state determined by the network side is updated, a response message capable of indicating the user state determined by the network is returned. Of course, even if the decision processing module does not receive the message of subscribing the user status, the updated user status determined by the network can be actively sent.
The following describes the specific implementation schemes of the present invention by three specific embodiments. It should be noted that the flow diagrams and text descriptions in the present invention are only for explaining the key technology of the present invention, and do not represent a complete call and service control flow, nor exhaust all possible branch flows.
Example one
When a call arrives at a P-CSCF, the P-CSCF requests the resource admission control function whether the currently available resources of the user are sufficient, and a corresponding processing procedure is shown in fig. 3, which specifically includes:
step 31: the S-CSCF of the called home receives an incoming SIP INVITE (SIP invite) session request message.
Step 32: the S-CSCF routes the SIP INVITE message to the service control element.
Step 33: the service control unit returns SIP INVITE message to S-CSCF;
on the service control unit, it needs to determine whether "network determines user busy" is needed as a service trigger condition according to a service subscribed by the user, for example, if the user subscribes a CFB (Call forwarding on busy) service, and so on, then it needs to use "network determines user busy", then add corresponding indication information needed for network determining user busy into SIP INVITE message sent to S-CSCF, for indicating that the network needs to immediately identify the user state, that is, to process the determination of user busy, specifically, it can indicate by expanding a certain SIP header field or parameter, for example, indicate the service type by a purpose parameter in a Call-Info (Call information) header field:
Call-Info:….;purpose=CFB
or directly indicating that the network is required to decide that the user is busy (ndab)
Call-Info:….;purpose=ndub
Of course the service control unit may also not add the above-mentioned indication that the network is required to decide that the user is busy to the SIP INVITE message it sends to the S-CSCF.
Step 34: the S-CSCF accepts the SIP INVITE message from the service control element and routes it to the called home P-CSCF.
Step 35: the P-CSCF receives the SIP INVITE message of the incoming call and carries out corresponding processing according to the information carried in the message;
the method comprises the following steps: when the SIP INVITE message contains an indication that the network is required to decide that the user is busy, the resource request is immediately initiated to the resource admission control function through an I4 interface; when the SIP INVITE message does not contain the indication, the P-CSCF can also unconditionally initiate a resource request to the resource admission control function immediately through the I4 interface;
when the I4 interface adopts the Diameter protocol, the resource Request message may use an authentication Application Request command AA (Auth-Application) -Request command, and the command code of the command is 265.
Step 36: the resource admission control function receives the resource request, comprehensively judges whether the current available bandwidth resources of the user are enough to support the establishment of the current session, namely judges whether the current available bandwidth resources of the user are larger than the minimum bandwidth required for establishing the current session, and returns a request response to the P-CSCF through an I4 interface, wherein the response contains an indication whether the bandwidth resources are enough;
when the I4 interface adopts the Diameter protocol, the request response message uses an authentication Application response command AA (Auth-Application) -Answer command, which is a response to the authentication Application request command, and the command code is 265;
the method comprises the following steps:
firstly, the resource admission control function obtains the current available bandwidth resource information of the user according to the current remaining bandwidth of the network, the unused bandwidth remaining in the user signed bandwidth, other necessary user service quality signed data and the like;
secondly, the resource admission control function judges whether the current available bandwidth of the user is smaller than the minimum bandwidth required by the user for establishing the session, and if so, the resource admission control function indicates that no sufficient resource exists in the returned response; otherwise, it indicates that there are sufficient resources.
In the processing procedure described in this step, the minimum bandwidth may be preset in the resource admission control function in a data configuration manner; or as subscription data, the resource admission control function is obtained through an I5 interface; or the minimum bandwidth requirement carried in the resource request initiated by the P-CSCF to the resource admission control function.
When the resource admission control function calculates the remaining unused bandwidth in the user subscription bandwidth, it needs to obtain the maximum bandwidth signed by the user from the user service quality subscription database through the I5 interface, and accumulate and dynamically calculate the bandwidth occupied by the currently established session of the user, and subtract the two bandwidths to obtain the remaining unused bandwidth in the user subscription bandwidth; when the I5 interface adopts a Diameter protocol, the resource admission control function initiates a Request on the I5 interface through a User Data Request command (User-Data-Request command), the User service quality subscription database returns subscription Data through a User Data response command (User-Data-Answer command), and the command codes of the two commands are 306.
Step 37: the P-CSCF receives the request response indicating insufficient resources, and returns a 486Busy Here response code to the S-CSCF.
Step 38: the S-CSCF continues to transmit the 486Busy Here response code to the service control unit; the service control unit uses the 486Busy Here response code as the result of "network determines user Busy" to trigger the relevant service processing, such as CFB service processing.
In the above-mentioned flow of the embodiment, when a call arrives, if the available resources of the user are not enough, the P-CSCF may return a message that the user is busy, otherwise, the call is sent to the user terminal, and the processing flow is suitable for the CFB service, because the CFB service is forwarded to a new destination after the call is busy, the corresponding call process may be implemented, and for the CW and CCBS services, in addition to triggering the service by "determining that the user is busy by the network" (i.e. the network determines that the user is in the user busy state), it is also necessary to perform the subsequent related service processing when the network determines that the user is idle "(i.e. the network determines that the user is in the user idle state), for example, when there are enough resources, it is necessary to connect the busy incoming call to continue the subsequent call processing. At this time, the processing flow shown in fig. 4 can be used to implement, specifically:
step 41: the S-CSCF of the called home receives an SIP INVITE session request message.
Step 42: the S-CSCF routes the SIP INVITE message to the service control element.
Step 43: the service control unit returns SIP INVITE message to S-CSCF;
the service control unit determines whether a "network determines user busy" is needed as a service trigger condition according to a service subscribed by a user, for example, if the user subscribes a CW service, a CCBS service, and the like, and needs to use the "network determines user busy", then a network subscribed user state event package is carried in an SIP INVITE message sent to the S-CSCF through a Subscription header field, that is, the S-CSCF sends a message of a subscribed user state, for example, the event package may be named a ndub event package, and then:
Subscription:ndub
of course, the service control unit may not add the above-mentioned Subscription header field to the SIP INVITE message sent to the S-CSCF.
Step 44: the S-CSCF accepts the SIP INVITE message from the service control element and routes it to the called home P-CSCF.
Step 45: the P-CSCF receives an incoming SIP INVITE message, immediately initiates a resource request to a resource admission control function through an I4 interface according to an nbb subscription event packet contained in the incoming SIP INVITE message, wherein the request needs to contain a resource change notification instruction so as to timely acquire sufficient information of network side resources and continue a subsequent call processing process;
if the SIP INVITE message does not contain the above subscription event package, the P-CSCF may also unconditionally initiate a resource request to the resource admission control function immediately via the I4 interface, where the request contains a resource change notification indication.
Step 46: the resource admission control function receives the resource request, comprehensively judges whether the bandwidth resources currently available for the user are enough to support the establishment of the current call session, and returns a request response to the P-CSCF through an I4 interface, wherein the response contains an indication that no enough resources exist;
and simultaneously, the resource admission control function starts to monitor the currently available resources of the user according to the resource change notification indication contained in the request message so as to judge whether the currently available resources of the user are enough to support the establishment of the session, and notifies the service control unit of corresponding information through an entity in the network to perform corresponding service processing when the currently available resources of the user are enough.
Step 47: the P-CSCF receives the indication of insufficient resources and sends an SIP NOTIFY message to the S-CSCF, wherein the message indicates the busy state of the user;
if the SIP INVITE message received by the P-CSCF before does not contain the subscription event package, the P-CSCF may send a SIP PUBLISH message to the S-CSCF at this time, and the message may also indicate the user busy status.
And 48: the S-CSCF delivers the SIP N0TIFY or SIP PUBLISH message to the service control unit.
Step 49: the service control unit analyzes the SIP NOTIFY or SIP PUBLISH message to obtain the busy state of the user and triggers related service processing, such as CW service, CCBS service and the like;
the service control unit returns a 200 OK response code to the SIP NOTIFY or SIP PUBLISH message to the S-CSCF.
Step 410: the S-CSCF passes the 200 OK response code to the P-CSCF.
Step 411: the resource admission control function informs the P-CSCF when finding that the current available resources of the user can support the establishment of the session;
for example, when a call that has been established by a user before is released, so that the unused bandwidth remaining in the user subscription bandwidth becomes larger, and the like, the resource admission control function notifies the P-CSCF through the I4 interface, the user has enough resources available currently, and when the I4 interface adopts a Diameter protocol, the notification message may specifically use a Re-authentication Request command Re-Auth-Request command, where the command code of the command is 258;
at this time, the resource admission control function may also authorize the user to obtain the resource in advance, i.e. resource reservation, or of course, may not reserve, but reserve in the session establishment process thereafter.
Step 412: and after receiving the indication of sufficient resources, the P-CSCF informs the S-CSCF, and particularly, the message indicates the idle state of the user by sending an SIP NOTIFY or SIP PUBLISH message to the S-CSCF so that the S-CSCF acquires the idle information of the user.
Step 413: and the S-CSCF continuously transmits the SIP NOTIFY or SIP PUBLISH message to the service control unit so that the service control unit can know that the current user is in the user idle state.
Step 414: the service control unit analyzes the SIP NOTIFY or SIP PUBLISH message to obtain the information that the user is in the idle state of the user, and then triggers the subsequent processing of the related service, such as the subsequent processing aiming at CW service, CCBS service and the like, for example, the incoming call is continuously sent to the user so that the call can be successfully established;
meanwhile, the service control unit also returns a 200 OK response code to the SIP NOTIFY or SIP PUBLISH message to the S-CSCF.
Step 415: the S-CSCF forwards the 200 OK response code from the service control unit on to the P-CSCF.
Therefore, in the embodiment, the user state can be ensured to be identified by the network side before the initiated call reaches the called user terminal, so that the network side can conveniently develop corresponding services according to the user state.
As can be seen from the above description, the processing shown in fig. 4 differs from the processing shown in fig. 3 in that: in fig. 4, a Subscription user status event package may be carried in the SIP INVITE message by a Subscription header field, so that when available resources for the user become sufficient, the P-CSCF sends a SIP NOTIFY message to NOTIFY the service control unit that the user is idle.
In fact, instead of carrying the subscribed user state Event package in the SIP INVITE message, as shown in fig. 3, after the service control unit receives the 486Busy Here response code, it may send a SIP SUBSCRIBE subscribed message to the P-CSCF, where the subscribed user state Event package is carried in an Event header field. Thus, when the resources currently available to the user become sufficient, the P-CSCF will send a SIP NOTIFY message informing the service control unit that the user is idle.
In the processing flows shown in fig. 3 and fig. 4, after a call arrives at the P-CSCF, the P-CSCF sends a request to the resource admission control function to obtain information on whether the currently available resources of the user are sufficient, that is, the function of "determining user busy by the network" is implemented by the resource admission control function.
Firstly, calculating the current available resources of the user by an operation processing module arranged in the resource admission control function; then, a decision processing module arranged in the resource admission control function judges whether the current available resources of the user are enough to support the establishment of the current session or not, and carries out corresponding processing. At this time, the operation processing module and the decision processing module are both arranged in the resource admission control function, and the interface between the operation processing module and the decision processing module is an internal interface of the resource admission control function.
In the above embodiments, it can be seen that the resource admission control function implements a function of "network determines that a user is busy", and does not directly indicate the busy and idle states of the user, but provides an indication of whether the user has enough bandwidth resources, which may be regarded as "implicit" determining that the user is busy, that is, an indication of "not enough bandwidth resources" may be regarded as that the user is busy, and an indication of "enough bandwidth resources" may be regarded as that the user is idle.
In addition, it should be noted that: in the processing flows shown in fig. 3 and 4, the main basis of the resources currently available to the user is the current remaining bandwidth of the network and the unused bandwidth remaining in the user signed bandwidth, but actually, the current remaining bandwidth of the network is usually always sufficient, so that in the present invention, the busy/idle status of the user can be determined by using only the unused bandwidth remaining in the user signed bandwidth, so as to simplify the processing flow; of course, according to actual needs, the information of the resources currently available to the user may also be determined simultaneously according to the unused bandwidth remaining in the user subscription bandwidth and the current remaining bandwidth of the network.
Example two
In the second embodiment, a corresponding operation processing module and a corresponding decision processing module are specifically arranged in the P-CSCF and the ndib server, so as to implement a corresponding function of "determining user busy by the network".
The feasibility of example two was first analyzed as follows:
in the first embodiment, to calculate the remaining unused bandwidth in the user subscription bandwidth, the maximum bandwidth subscribed by the user must be first obtained from the user quality of service subscription database, and as can be seen from the architecture diagram provided in fig. 1, both the P-CSCF and the ndib server can obtain the user subscription data from the user quality of service subscription database through the I6 and the I7 interfaces, respectively, so that both the P-CSCF and the ndib server can set corresponding operation processing modules to implement the "network user busy" operation function, thereby further implementing the "network user busy" function. When the I6 and I7 interfaces adopt a Diameter protocol, both the P-CSCF and the ndib server can use the User Data request command (User-Data-request command) to initiate a request, and the User quality of service subscription database returns subscription Data through a User Data response command (User-Data-Answer command), so as to ensure that the two entities can obtain corresponding subscription Data, i.e., the maximum bandwidth signed by the User and other information.
It can be seen that the second embodiment is feasible in a specific implementation process.
Next, the main implementation process of the second embodiment will be described in detail, and specific processing flows for implementing the "network determines user busy" function on the P-CSCF and the ndib server will be separately described below.
Realizing 'network determines user busy' function by P-CSCF
When the P-CSCF is used as the "network determines user busy" operation function, that is, when an operation processing module is set on the P-CSCF, the P-CSCF needs to accumulate and dynamically calculate the bandwidth occupied by the currently established session of the user, and compare the bandwidth with the user subscription bandwidth to obtain the remaining unused bandwidth in the user subscription bandwidth.
Thus, when the P-CSCF further sets a corresponding decision processing module to implement a corresponding "network decides that the user is busy" decision function, the unused bandwidth remaining in the user subscription bandwidth may be compared with the minimum bandwidth required for establishing the current session, so as to determine whether the user is busy, i.e. identify the user status. The minimum bandwidth required by the current session establishment can be preset in a user service quality subscription database, and the P-CSCF can be obtained through an I6 interface or can be indirectly obtained through a resource admission control function through an I4 interface; or, the corresponding minimum bandwidth information can be determined according to the session establishment minimum bandwidth requirement corresponding to the media coding and decoding type carried in the call session received by the P-CSCF.
Therefore, comparing the two schematic processing flow diagrams of the first embodiment, the P-CSCF receives SIP INVITE message from the S-CSCF, and can realize the function of "the network determines the user is Busy" without initiating a request to the resource admission control function, and after determining that the user is in the user Busy state, the P-CSCF returns 486Busy her response code to the S-CSCF or carries an indication that the user is Busy through an SIP NOTIFY/SIP PUBLISH message; otherwise, if the user is in the user idle state, the P-CSCF needs to send an SIP INVITE message to the user terminal or carry an indication that the user is idle through an SIP NOTIFY/SIP PUBLISH message. Similarly, if the P-CSCF receives a SIP SUBSCRIBE message from the service control unit, it may also send a SIP NOTIFY message to NOTIFY the service control unit when the user is idle.
The P-CSCF may not only obtain the subscription data such as the user subscription bandwidth through the I6 interface, but also indirectly obtain the subscription data through the I4 interface by the resource admission control function.
(II) realizing 'network determines user busy' function by NDUB server
When the "network determines that the user is busy" function is implemented by using the ndib server, the corresponding processing flow is shown in fig. 5, and specifically includes the following steps:
step 51: the S-CSCF to which the user belongs receives a SIP session message for an outgoing call or an incoming call of the user, for example, receives a SIP INVITE message sent by the user;
step 52: the S-CSCF routes the SIP session message to the ndib server.
Step 53: the NDUB server receives the SIP session message, judges whether the User bandwidth signing Data exist, if the User bandwidth signing Data do not exist, namely the message is the first outgoing or incoming SIP session message after the IMS registration is successful, a User Data-Request command (User-Data-Request command) is initiated to a User service quality signing database through an I7 interface; if the user bandwidth subscription data already exists, no further request is made and the process proceeds directly to step 55.
Step 54: the User service quality signing database returns a User Data response command (User-Data-Answer command) through an I7 interface, and the signing Data such as the maximum signing bandwidth of the User is commanded; and after receiving the command, the NDUB server records the subscription data such as the user subscription bandwidth.
Step 55: and the NDUB server returns the SIP session message to the S-CSCF.
Step 56: the S-CSCF receives the 200 OK response code to the SIP session message.
And 57: the S-CSCF transmits the 200 OK response code to the NDUB server;
i.e. after performing step 55 and the S-CSCF receives the 200 OK response code to the SIP session message, this step is performed.
Step 58: the NDUB server calculates the occupied bandwidth of the established session according to the coding and decoding type of the media establishing the session, compares the occupied bandwidth with the user signed bandwidth, thereby obtaining the residual unused bandwidth in the user signed bandwidth, namely determining the current available resources of the user, and returns the 200 OK response code to the S-CSCF.
Step 59: after that, each SIP session establishment of the user passes through the ndib server, and after the session establishment, the remaining unused bandwidth in the user subscription bandwidth is cumulatively calculated, and the specific processing procedure refers to the above-mentioned step 51 to step 58.
After the above steps 51 to 58 are executed, when the caller initiates a call, as also shown in fig. 5, the following processing procedures are executed:
step 510: the S-CSCF receives an incoming call SIP INVITE session request message.
Step 511: the S-CSCF routes the SIP INVITE message to the service control element.
Step 512: the service control element returns an SIP INVITE message to the S-CSCF.
Step 513: this step is the same as the previous step 52, and the S-CSCF will still send the SIP INVITE message to the ndib server.
Step 514: the NDUB server receives the SIP INVITE message, compares whether the unused bandwidth left in the current user subscription bandwidth is enough to support the establishment of the current session, specifically compares the unused bandwidth left in the current user subscription bandwidth with the minimum bandwidth required by the current session establishment, to determine whether the user is busy, thereby identifying the user state;
wherein, the minimum bandwidth required for establishing the current session may be preset in the user quality of service subscription database, and the nbu server is obtained in the above step 54 through the I7 interface; or determining the corresponding minimum bandwidth according to the session establishment minimum bandwidth requirement corresponding to the media coding and decoding type carried in the SIP INVITE message received by the NDUB server.
If the judgment result is that the user is in the user Busy state, the NDUB server returns a 486Busy Here Busy response code to the S-CSCF.
Step 515: the S-CSCF proceeds to pass the received 486Busy Here response code to the service control unit.
Step 516: the service control unit receives 486Busy Here Busy response code Here, trigger the relevant business to process, such as CFB business, CW business, CCBS business, etc.;
if the change information of the user state, such as CW service, CCBS service, etc., needs to be known in the service processing flow, the service control unit SUBSCRIBEs the user state, and sends an SIP SUBSCRIBE subscription message, specifically, an Event header field in the message carries a user state subscription Event package, for example, using a newly extended nbb Event package of the present invention:
Event:ndub
517: the S-CSCF transmits the SIP SUBSCRIBE message to the NDUB server.
Step 518: the NDUB server returns a 200 OK response code for the SIP SUBSCRIBE message.
Step 519: the S-CSCF passes the 200 OK response code to the service control unit.
Step 520: if the remaining unused bandwidth in the user subscription bandwidth changes, for example, a certain call that has been already established is released, or the subscription bandwidth of the user becomes larger, so that the remaining unused bandwidth in the user subscription bandwidth becomes larger, which may support the establishment of the incoming call, the ndib server sends an SIP NOTIFY notification message, where the message carries an idle indication of the user.
Step 521: and the S-CSCF transmits the SIP NOTIFY message to a service control unit.
Step 522: the service control unit analyzes the SIP NOTIFY message to know the user control, and triggers the subsequent processing of the related service, such as the subsequent processing of CW service, CCBS service and the like, for example, the incoming call is sent to the user so that the call can be established:
the service control unit returns a 200 OK response code to the SIP NOTIFY message to the S-CSCF.
Step 523: the S-CSCF proceeds to pass the received 200 OK response code to the ndib server.
In the above flowchart, the nbu server triggers a request for subscription data such as a subscription bandwidth of the user according to the first SIP session message after the user registers in the IMS, and actually, may also request the subscription data such as the subscription bandwidth of the user when the user registers, as shown in fig. 6, specifically including the following steps:
step 61: the S-CSCF receives SIP REGISTER registration messages for the user.
Step 62: the S-CSCF sends the SIP REGISTER message to the ndib server.
And step 63: the NDUB server receives the User registration message, and initiates a User Data Request command (User-Data-Request command) to a User service quality subscription database, wherein the command carries User identification information.
Step 64: the User service quality signing database returns a User Data response command (User-Data-Answer command) through an I7 interface, and the command carries signing Data such as a User identification, the maximum signing bandwidth of the User and the like; and after receiving the command, the NDUB server records the subscription data such as the user subscription bandwidth.
Step 65: the NDUB server returns a 200 OK response code to the SIP REGISTER deregistration message to the S-CSCF.
And step 66: when a user changes the subscription data in the user service quality subscription database, the user service quality subscription database actively sends a Push-Notification-Request command (Push-Notification-Request command), the command carries subscription data such as user subscription bandwidth, and the command code of the command is 309.
Step 67: the NDUB server updates the subscription data such as the user subscription bandwidth, the unused bandwidth remaining in the subscription bandwidth, and the like, and returns a Push-Notification-Answer command (Push-Notification-Answer command), which is a response command of the Push-Notification request command, with a command code of 309.
Step 66 and step 67 in the above-described process flow can be applied to the process flow shown in fig. 5 as well.
In addition, in an embodiment where the ndib Server implements a function of "determining user busy in network", the ndib Server directly obtains the user subscription data through an I7 interface extended by the present invention, and in an actual networking, if the I7 interface does not exist, the user subscription data may also be indirectly obtained, for example, a GUP (Generic user profile) architecture in the prior art is used, which is an architecture for implementing distributed data sharing, the ndib Server initiates a data request to a GUP Server (GUP Server), and the GUP Server locates the request to a user quality of service subscription database according to the request information, so that the ndib Server indirectly obtains the user subscription data.
EXAMPLE III
In the specific implementation process, the operation processing module for implementing the operation function of 'network user busy' and the decision processing module for implementing the decision function of 'network user busy' can be separated, namely, the operation processing module and the decision processing module are respectively arranged on different network entities, and the corresponding function of 'network user busy' is implemented through information interaction between the two modules arranged on the different entities.
That is, in the two embodiments described above, the operation function and the decision function of "network determines that the user is busy" are both disposed on the same network element entity (i.e. any entity of the resource admission control function, the P-CSCF/nbu server), and the interaction between the operation function and the decision function can be regarded as an interaction message of the network element internal interface.
In the practical application process, the operation function and the decision function can be implemented on different entities, for example, the operation function of "network user busy" is implemented by adopting a resource admission control function, and the decision function of "network user busy" is implemented by adopting a P-CSCF/NDUB server, that is, the operation function and the decision function of "network user busy" are separately set.
In the third embodiment, a specific implementation process of setting the operation function and the decision function separately of "network determines user busy" is described by taking an example in which the operation processing module is set on the resource admission control function entity and the decision processing module is set on the P-CSCF/nbu server, and the corresponding specific implementation process is as follows:
(1) first, as described in the first embodiment, the resource admission control function, as an operation function for determining that the user is busy by the network, needs to obtain the currently available resources of the user, including information such as the currently remaining bandwidth of the network and the unused bandwidth remaining in the user's contracted bandwidth, since the current remaining bandwidth of the network is always changing, and as mentioned above is generally always sufficient, therefore, for each session with successful establishment, when the resources are successfully established and released, the resource admission control function carries the unused bandwidth left in the user signed bandwidth as the bandwidth resources currently available by the user to the P-CSCF through the I4 interface, if the decision function of "network determines user busy" is an ndib server, the P-CSCF further needs to add the bandwidth information to the SIP message to carry and transmit the bandwidth information to the ndib server, which can be carried in SDP description information in the SIP message.
(2) Secondly, the P-CSCF/ndib server is always in each session signaling path of the user, when each newly initiated SIP INVITE message passes through the P-CSCF/ndib server, the P-CSCF/ndib server can determine whether the establishment of the current session can be supported according to the known bandwidth resources currently available to the user, if not, it returns a 486busy response code, otherwise, it transmits a SIP INVITE message, and the service control unit can also subscribe the user state to the P-CSCF/ndib server according to the service flow requirement.
When the I4 interface adopts a Diameter protocol, the unused bandwidth remaining in the user subscription bandwidth that is newly expanded and transferred may be transferred in an authentication Application response command AA-Answer (Auth-Application-Answer), and two AVPs (attribute-value pairs) may be newly added in the command: the Unused-Bandwidth-DL AVP indicates an Unused downlink Bandwidth remaining in the user-subscribed Bandwidth, and the Unused-Bandwidth-UL AVP indicates an Unused uplink Bandwidth remaining in the user-subscribed Bandwidth. Because the values of the uplink Bandwidth and the downlink Bandwidth are always the same, only one Unused Bandwidth in the user subscription Bandwidth can be represented by expanding one Unused-Bandwidth AVP; in addition, considering that the user signed bandwidth can distinguish different media types, the newly added AVP is also for different media types.
The remaining Unused Bandwidth in the user subscription Bandwidth can be carried by the extension of the SDP description information in the SIP, and two attributes UBU (Unused-Bandwidth-UL) and UBD (Unused-Bandwidth-DL) are newly added in the media attribute line, as follows:
a=UBU:384
indicating that the remaining unused upstream bandwidth of the subscriber subscription bandwidth is 384K. Similarly, the values of the uplink bandwidth and the downlink bandwidth are often the same, so that only one attribute ub (unused bandwidth) may be extended to indicate the unused bandwidth remaining in the user subscription bandwidth.
In the above embodiments, the "network user busy deciding" function is implemented by the resource admission control function, the P-CSCF, and the ndib server, which are independent or in cooperation with each other, and generally, the resource admission control function and the P-CSCF are located in the network visited (access) domain, and the ndib server is located in the network home (registration) domain, so it can be seen that, in practice, the "network user busy deciding" function is implemented by the network element in the network visited domain and the network element in the network home domain, which are independent or in cooperation with each other. The function is realized through the network element of the network access domain, so that the currently available resources (the current residual bandwidth of the network) of the network can be sensed more easily; the function is realized through the network element of the network home domain, and the scene that different terminals of the same user access the network through different visiting domains can be processed more easily.
In summary, the present invention solves the problem that the network cannot determine that the user is busy based on the currently available resources of the user when the call does not reach the user terminal in the current IMS-based packet domain, so that the services such as CW, CCBS, CFB, etc. can be reliably and normally executed.
In addition, it should be noted that the method and apparatus provided by the present invention solve the problem that the network identifies that the user is busy, and in the specific service embodiment, an application scenario that the network identifies that the called user is busy is provided, and actually, it can be seen that, by using the apparatus of the present invention based on fig. 1 and fig. 2, the present invention is also applicable to an application scenario that the network identifies that the calling user is busy, and the example is as follows: the calling user initiates a call, SIP INVITE message is sent, the P-CSCF or NDUB server receives the INVITE message, and the resource admission control function, the P-CSCF and the NDUB server independently or cooperatively work in a time division manner to realize the function of 'network user busy' so as to determine whether the calling user is allowed to initiate the call. Obviously, the application scene of the network for identifying the busy of the calling party can be easily realized by adopting the methods of the three embodiments, and the detailed description of the invention is omitted.
It should be noted that, in some cases, even if the network determines that the user is busy, the user is allowed to make an outgoing call or an incoming call based on a call attribute such as priority. For example, if a user initiates an emergency call or makes an emergency call to a user, the network will allow the user's call even if the user has insufficient available bandwidth resources, such as insufficient unused bandwidth remaining in the user's subscription bandwidth, since the emergency call is a high priority call.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.