CN102035800B - Third party registration failure processing method and device used for IMS (IP Multimedia Subsystem) - Google Patents
Third party registration failure processing method and device used for IMS (IP Multimedia Subsystem) Download PDFInfo
- Publication number
- CN102035800B CN102035800B CN200910176200.1A CN200910176200A CN102035800B CN 102035800 B CN102035800 B CN 102035800B CN 200910176200 A CN200910176200 A CN 200910176200A CN 102035800 B CN102035800 B CN 102035800B
- Authority
- CN
- China
- Prior art keywords
- user
- cscf
- subscriber
- response
- failure response
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供了一种用于IMS的第三方注册失败处理方法及装置,该方法包括:接收订阅方发送的用户状态订阅请求,并查询用户的第三方注册是否失败;若用户的第三方注册失败,则向订阅方发送失败响应;订阅方根据失败响应注销用户。本发明有效保证了设备间用户数据的一致性,实现了设备间的用户数据同步,所以克服了相关技术中第三方注册失败处理方法由于用户第三方注册失败而使得订阅会话无法建立,所以无法通知订阅方注销用户,从而导致设备间的用户数据存在不一致的问题。
The present invention provides a third-party registration failure processing method and device for IMS. The method includes: receiving a user status subscription request sent by a subscriber, and querying whether the third-party registration of the user fails; if the third-party registration of the user fails , a failure response is sent to the subscriber; the subscriber logs out the user according to the failure response. The present invention effectively guarantees the consistency of user data between devices, and realizes the synchronization of user data between devices, so it overcomes the third-party registration failure processing method in the related art, which makes the subscription session unable to be established due to the third-party registration failure of the user, so it cannot be notified The subscriber logs out the user, resulting in inconsistencies in user data between devices.
Description
技术领域 technical field
本发明涉及通信领域,具体而言,涉及一种用于IMS(IPMultimedia Subsystem,IP多媒体子系统)的第三方注册失败处理方法及装置。The present invention relates to the communication field, in particular, to a third-party registration failure processing method and device for IMS (IP Multimedia Subsystem, IP Multimedia Subsystem).
背景技术 Background technique
IMS系统作为下一代网络的高层组件,为实现丰富业务建立了一个独立于下层承载网络、基于开放的SIP(Session InitiationProtocol,会话初始协议)/IP以及可管理可控制的平台,其丰富的业务是通过各种应用服务器AS(Application Server)来实现和提供的。在IMS通信网络中,用户要使用网络所提供的多媒体服务,用户UE(User Equipment,用户设备)所关联的PUI(Public UserIdentities,公共用户标识)必须事先在IMS核心网络和AS上进行注册,而PUI在AS上的注册即为第三方注册。As a high-level component of the next-generation network, the IMS system establishes an open SIP (Session Initiation Protocol, Session Initiation Protocol)/IP-based and manageable and controllable platform to realize rich services. It is realized and provided by various application servers AS (Application Server). In the IMS communication network, if the user wants to use the multimedia service provided by the network, the PUI (Public UserIdentities, public user identity) associated with the user UE (User Equipment, user equipment) must be registered in the IMS core network and AS in advance, and The registration of PUI on AS is the third-party registration.
根据3GPP 24.229技术规范的描述,用户UE所关联的PUI在IMS核心网和AS上进行注册的具体注册流程参见图1,其中P-CSCF(Proxy-Call Session Control Function,代理呼叫会话控制功能)订阅流程为步骤112a~112h,UE订阅流程为步骤113a~113h,是两个独立的业务处理流程,两个处理流程不存在严格的先后关系,可以是并行处理,为了使信令流程更加清晰,此处将两个流程分开绘制,具体包括以下步骤:According to the description of the 3GPP 24.229 technical specification, the specific registration process for the PUI associated with the user UE to register on the IMS core network and the AS is shown in Figure 1, where P-CSCF (Proxy-Call Session Control Function, proxy call session control function) subscribes The process is steps 112a-112h, and the UE subscription process is steps 113a-113h, which are two independent service processing processes. There is no strict sequence relationship between the two processing processes, and they can be processed in parallel. In order to make the signaling process clearer, here Draw the two processes separately, including the following steps:
步骤101,UE发起网络注册,发送REGISTER(注册)请求到P-CSCF;Step 101, the UE initiates network registration, and sends a REGISTER (registration) request to the P-CSCF;
步骤102,P-CSCF转发REGISTER请求到I-CSCF(Interrogating-CSCF,查询呼叫会话控制功能);Step 102, P-CSCF forwards the REGISTER request to I-CSCF (Interrogating-CSCF, query call session control function);
步骤103,I-CSCF向HSS(Home Subscriber Server,归属签约服务器)发送UAR(User Authorization Request,用户授权请求)请求查询用户状态;Step 103, the I-CSCF sends a UAR (User Authorization Request, user authorization request) request to the HSS (Home Subscriber Server, home subscription server) to query the user status;
步骤104,HSS将用户状态查询结果通过UAA(UserAuthorization Answer,用户授权应答)消息返回给I-CSCF;Step 104, the HSS returns the user status query result to the I-CSCF through a UAA (UserAuthorization Answer) message;
步骤105,I-CSCF转发注册REGISTER请求到S-CSCF(Serving-CSCF,服务呼叫会话控制功能);Step 105, I-CSCF forwards the registration REGISTER request to S-CSCF (Serving-CSCF, serving call session control function);
步骤106,S-CSCF发送SAR(Server Assignment Request,服务器分配请求)请求到HSS通知用户注册,并下载用户签约数据;Step 106, the S-CSCF sends a SAR (Server Assignment Request, server assignment request) request to the HSS to notify the user to register, and download the user's subscription data;
步骤107,HSS返回SAA(Server Assignment Answer,服务器分配应答),并下载用户签约数据到S-CSCF;Step 107, HSS returns SAA (Server Assignment Answer, server assignment answer), and downloads user subscription data to S-CSCF;
步骤108,注册完成,S-CSCF返回注册的200OK响应;Step 108, the registration is completed, and the S-CSCF returns a 200 OK response for registration;
步骤109a,S-CSCF根据用户签约数据触发第三方注册,发送REGISTER(the third-party,第三方)消息到AS;Step 109a, S-CSCF triggers third-party registration according to user subscription data, and sends REGISTER (the third-party, third-party) message to AS;
步骤109b,AS返回第三方注册的200OK;Step 109b, AS returns 200OK for third-party registration;
步骤110,I-CSCF转发步骤108中的200OK响应到P-CSCF;Step 110, the I-CSCF forwards the 200 OK response in step 108 to the P-CSCF;
步骤111,P-CSCF转发步骤110中的200OK响应到UE;Step 111, the P-CSCF forwards the 200 OK response in step 110 to the UE;
步骤112a,P-CSCF发起用户注册状态订阅,发送SUBSCRIBE(订阅)请求到I-CSCF;Step 112a, P-CSCF initiates user registration status subscription, and sends a SUBSCRIBE (subscription) request to I-CSCF;
步骤112b,I-CSCF向HSS发送UAR请求查询用户状态;Step 112b, the I-CSCF sends a UAR request to the HSS to query the user status;
步骤112c,HSS通过UAA向I-CSCF返回用户状态查询结果;Step 112c, the HSS returns the user status query result to the I-CSCF through the UAA;
步骤112d,I-CSCF转发SUBSCRIBE订阅请求到S-CSCF;Step 112d, I-CSCF forwards SUBSCRIBE subscription request to S-CSCF;
步骤112e,S-CSCF接受订阅,返回200OK响应;Step 112e, the S-CSCF accepts the subscription and returns a 200OK response;
步骤112f,I-CSCF转发200OK响应到P-CSCF;Step 112f, I-CSCF forwards 200 OK response to P-CSCF;
步骤112g,S-CSCF发送NOTIFY通知请求,由于订阅已经建立,S-CSCF直接发送NOTIFY给P-CSCF,通知P-CSCF用户的注册状态;Step 112g, the S-CSCF sends a NOTIFY notification request. Since the subscription has been established, the S-CSCF directly sends a NOTIFY to the P-CSCF to notify the P-CSCF of the registration status of the user;
步骤112h,P-CSCF返回NOTIFY通知请求的200OK响应给S-CSCF,P-CSCF订阅流程结束;In step 112h, the P-CSCF returns a 200 OK response to the NOTIFY notification request to the S-CSCF, and the P-CSCF subscription process ends;
步骤113a,UE发起用户注册状态订阅,发送SUBSCRIBE订阅请求到P-CSCF;Step 113a, the UE initiates user registration status subscription, and sends a SUBSCRIBE subscription request to the P-CSCF;
步骤113b,P-CSCF转发UE的SUBSCRIBE订阅请求到S-CSCF;Step 113b, P-CSCF forwards UE's SUBSCRIBE subscription request to S-CSCF;
步骤113c,S-CSCF接受订阅,返回200OK响应;Step 113c, the S-CSCF accepts the subscription and returns a 200OK response;
步骤113d,P-CSCF转发200OK响应到UE;Step 113d, P-CSCF forwards 200 OK response to UE;
步骤113e,S-CSCF发送NOTIFY通知请求,通知UE用户的注册状态;Step 113e, the S-CSCF sends a NOTIFY notification request to notify the UE of the registration status of the user;
步骤113f,P-CSCF转发NOTIFY通知请求给UE;Step 113f, the P-CSCF forwards the NOTIFY notification request to the UE;
步骤113g,UE返回NOTIFY通知请求的200OK响应;Step 113g, the UE returns a 200OK response to the NOTIFY notification request;
步骤113h,P-CSCF转发200OK响应给S-CSCF,UE订阅流程结束。In step 113h, the P-CSCF forwards a 200 OK response to the S-CSCF, and the UE subscription procedure ends.
上述流程中,用户UE以关联的PUI发起初始网络注册,注册成功(对应于步骤101~107),S-CSCF向UE返回注册的200OK成功响应(对应于步骤108、110~111),P-CSCF和UE收到200OK响应后,分别发起对该PUI的注册状态订阅(分别对应于步骤112a~112d和步骤113a~113b),据此订阅,S-CSCF也将随时通知订阅者该PUI的注册状态变化(分别对应于步骤112g和步骤113e~113f)。根据用户PUI所签约的业务触发规则,注册成功,S-CSCF还将向每一个匹配第三方注册触发条件的AS发送一个第三方注册请求(对应于步骤109a)。正常情况下,AS收到S-CSCF发送的REGISTER请求后,返回200OK成功响应(对应于步骤109b)。至此,用户UE在网络的注册完成,可以正常使用网络提供的资源和服务。In the above process, the user UE initiates initial network registration with the associated PUI, and the registration is successful (corresponding to steps 101-107), and the S-CSCF returns a 200 OK response to the registration success (corresponding to steps 108, 110-111), P- After receiving the 200OK response, the CSCF and the UE respectively initiate a subscription to the registration status of the PUI (corresponding to steps 112a~112d and steps 113a~113b respectively). According to the subscription, the S-CSCF will also notify the subscriber of the registration status of the PUI at any time. State change (corresponding to step 112g and steps 113e-113f, respectively). According to the service trigger rule subscribed by the user PUI, if the registration is successful, the S-CSCF will also send a third-party registration request to each AS matching the third-party registration trigger condition (corresponding to step 109a). Normally, after receiving the REGISTER request sent by the S-CSCF, the AS returns a 200 OK success response (corresponding to step 109b). So far, the registration of the user UE in the network is completed, and the resources and services provided by the network can be used normally.
但是,AS在收到第三方REGISTER请求之后,可能由于某些原因造成无法提供服务而立即返回5xx失败响应消息,即发生第三方注册失败。However, after receiving the third-party REGISTER request, the AS may immediately return a 5xx failure response message due to some reasons that the service cannot be provided, that is, a third-party registration failure occurs.
相关技术中提供了一种用于IMS的第三方注册失败处理方法,该方法遵循3GPP 24.229技术规范,在S-CSCF收到AS返回的5xx响应情况下,根据PUI签约,有两种默认处理方式:“SESSION_CONTINUED”:S-CSCF不再做任何处理,用户在核心网络的注册依然存在;“SESSION_TERMINATED”:S-CSCF将注销之前PUI在核心网络的注册。为了给用户提供优良的服务和满意的用户体验,PUI签约更多地采用了“SESSION_TERMINATED”方式,在这种方式下,S-CSCF收到5xx响应后,根据24.229技术规范描述,S-CSCF将执行网络注销流程,注销之前PUI在核心网络的注册,正常情况下,在S-CSCF执行网络注销流程时,UE和P-CSCF订阅均已成功完成,这样S-CSCF可正常通知UE和P-CSCF删除其上的用户注册数据。The related technology provides a third-party registration failure processing method for IMS. This method follows the 3GPP 24.229 technical specification. When the S-CSCF receives the 5xx response returned by the AS, there are two default processing methods according to the PUI contract. : "SESSION_CONTINUED": S-CSCF will no longer do any processing, and the user's registration in the core network still exists; "SESSION_TERMINATED": S-CSCF will cancel the previous registration of the PUI in the core network. In order to provide users with excellent service and satisfactory user experience, the PUI contract more often adopts the "SESSION_TERMINATED" method. In this method, after the S-CSCF receives a 5xx response, according to the description of the 24.229 technical specification, the S-CSCF will Execute the network deregistration process. Before the deregistration, the PUI is registered in the core network. Under normal circumstances, when the S-CSCF executes the network deregistration process, the UE and P-CSCF subscriptions have been successfully completed, so that the S-CSCF can normally notify the UE and P-CSCF. The CSCF deletes the user registration data on it.
发明人发现相关技术中第三方注册失败处理方法中,当S-CSCF收到5xx响应并执行网络注销流程时,很可能由于网络单元对消息的处理以及网络传输存在时延,而导致出现以下两种异常情况:The inventors found that in the third-party registration failure processing method in the related art, when the S-CSCF receives a 5xx response and executes the network deregistration process, it is likely that the network unit processes the message and there is a delay in network transmission, resulting in the following two situations: exception:
1、当UE或者P-CSCF的订阅请求SUBSCRIBE到达I-CSCF,I-CSCF发起LIR(Location Info Request,位置信息请求)查询时,HSS已经收到S-CSCF发出的SAR注销请求,即用户在HSS上已经处于未注册状态,HSS向I-CSCF返回用户未注册响应,从而导致订阅失败;1. When the UE or P-CSCF’s subscription request SUBSCRIBE reaches the I-CSCF, and the I-CSCF initiates a LIR (Location Info Request, location information request) query, the HSS has received the SAR deregistration request sent by the S-CSCF, that is, the user is in The HSS is already in the unregistered state, and the HSS returns a user unregistered response to the I-CSCF, resulting in subscription failure;
2、当UE或者P-CSCF的订阅请求SUBSCRIBE到达S-CSCF时,S-CSCF根据在此之前收到的AS返回的5xx响应已经删除其上的用户数据,由于没有用户注册信息,故S-CSCF拒绝订阅,从而导致订阅失败;2. When the UE or P-CSCF's subscription request SUBSCRIBE reaches the S-CSCF, the S-CSCF has deleted the user data on it according to the 5xx response received from the AS before. Since there is no user registration information, the S-CSCF CSCF refuses to subscribe, resulting in subscription failure;
上述第1种异常情况为SUBSCRIBE订阅请求未到达S-CSCF,上述第2种异常情况为SUBSCRIBE订阅请求到达S-CSCF的时间滞后于AS返回的5xx响应到达S-CSCF的时间,这两种异常情况均会导致订阅会话无法建立,所以无法通知订阅方注销用户,从而导致设备间的用户数据存在不一致的问题。The first abnormal situation above is that the SUBSCRIBE subscription request does not reach the S-CSCF, and the second abnormal situation above is that the time for the SUBSCRIBE subscription request to reach the S-CSCF lags behind the time for the 5xx response returned by the AS to reach the S-CSCF. In both cases, the subscription session cannot be established, so the subscriber cannot be notified to log out the user, resulting in inconsistency of user data between devices.
发明内容 Contents of the invention
本发明旨在提供一种用于IMS的第三方注册失败处理方法及装置,能够解决相关技术中第三方注册失败处理方法由于用户第三方注册失败而使得订阅会话无法建立,所以无法通知订阅方注销用户,从而导致设备间的用户数据存在不一致的问题。The purpose of the present invention is to provide a third-party registration failure processing method and device for IMS, which can solve the problem that the third-party registration failure processing method in the related art cannot notify the subscriber to logout due to the failure of the third-party registration of the user to make the subscription session unable to be established. users, resulting in inconsistencies in user data between devices.
为了实现上述目的,根据本发明的一个方面,提供了一种用于IMS的第三方注册失败处理方法,包括以下步骤:接收订阅方发送的用户状态订阅请求,并查询用户的第三方注册是否失败;若用户的第三方注册失败,则向订阅方发送失败响应;订阅方根据失败响应注销用户。In order to achieve the above object, according to one aspect of the present invention, a third-party registration failure processing method for IMS is provided, including the following steps: receiving the user status subscription request sent by the subscriber, and querying whether the third-party registration of the user fails ; If the user's third-party registration fails, send a failure response to the subscriber; the subscriber logs out the user according to the failure response.
优选地,在上述方法中,接收订阅方发送的用户状态订阅请求,并查询用户的第三方注册是否失败具体包括:I-CSCF接收由P-CSCF发送的用户状态订阅请求;I-CSCF向HSS发送用户的用户状态查询请求。Preferably, in the above method, receiving the user state subscription request sent by the subscriber, and inquiring whether the user's third-party registration fails specifically includes: I-CSCF receiving the user state subscription request sent by the P-CSCF; I-CSCF sending the HSS Send the user's user status query request.
优选地,在上述方法中,若用户的第三方注册失败,则向订阅方发送失败响应具体包括:若查询结果为用户未注册,则I-CSCF向P-CSCF发送未发现失败响应。Preferably, in the above method, if the user's third-party registration fails, sending a failure response to the subscriber specifically includes: if the query result shows that the user is not registered, then the I-CSCF sends a no failure response to the P-CSCF.
优选地,在上述方法中,订阅方根据失败响应注销用户具体包括:P-CSCF接收未发现失败响应;P-CSCF删除用户的注册信息。Preferably, in the above method, the subscriber canceling the user according to the failure response specifically includes: the P-CSCF receives no failure response; the P-CSCF deletes the registration information of the user.
优选地,在上述方法中,接收订阅方发送的用户状态订阅请求,并查询用户的第三方注册是否失败具体包括:S-CSCF接收由UE发送的用户状态订阅请求;S-CSCF查询是否存在用户的用户数据。Preferably, in the above method, receiving the user status subscription request sent by the subscriber, and inquiring whether the user's third-party registration fails specifically includes: S-CSCF receiving the user status subscription request sent by the UE; S-CSCF inquiring whether there is a user status subscription request. user data.
优选地,在上述方法中,若用户的第三方注册失败,则向订阅方发送失败响应具体包括:若用户数据不存在,则S-CSCF向UE发送未发现失败响应。Preferably, in the above method, if the user's third-party registration fails, sending a failure response to the subscriber specifically includes: if the user data does not exist, the S-CSCF sends a failure response not found to the UE.
优选地,在上述方法中,订阅方根据失败响应注销用户具体包括:UE接收未发现失败响应;UE设置用户的用户状态为未注册。Preferably, in the above method, the subscriber deregistering the user according to the failure response specifically includes: the UE receiving the failure response not found; the UE setting the user status of the user as unregistered.
为了实现上述目的,根据本发明的另一方面,还提供了一种用于IMS的第三方注册失败处理装置,包括:查询模块,用于接收订阅方发送的用户状态订阅请求,并查询用户的第三方注册是否失败;响应模块,用于若用户的第三方注册失败,则向订阅方发送失败响应;注销模块,用于订阅方根据失败响应注销用户。In order to achieve the above object, according to another aspect of the present invention, a third-party registration failure processing device for IMS is also provided, including: a query module, configured to receive the user status subscription request sent by the subscriber, and query the user's Whether the third-party registration fails; the response module is used to send a failure response to the subscriber if the user's third-party registration fails; the logout module is used for the subscriber to log out the user according to the failure response.
优选地,在上述装置中,响应模块具体包括:第一响应单元,用于当查询结果为用户未注册时,I-CSCF向P-CSCF发送未发现失败响应。Preferably, in the above device, the response module specifically includes: a first response unit, configured to send a non-discovery failure response from the I-CSCF to the P-CSCF when the query result is that the user is not registered.
优选地,在上述装置中,注销模块具体包括:第一接收单元,用于P-CSCF接收未发现失败响应;第一注销单元,用于P-CSCF删除用户的注册信息。Preferably, in the above device, the deregistration module specifically includes: a first receiving unit, configured for the P-CSCF to receive a no failure response; a first deregistration unit, configured for the P-CSCF to delete the registration information of the user.
优选地,在上述装置中,响应模块具体包括:第二响应单元,用于当用户数据不存在时,S-CSCF向UE发送未发现失败响应。Preferably, in the above device, the response module specifically includes: a second response unit, configured to send the S-CSCF a no failure response to the UE when the user data does not exist.
优选地,在上述装置中,注销模块具体包括:第二接收单元,用于UE接收未发现失败响应;第二注销单元,用于UE设置用户的用户状态为未注册。Preferably, in the above device, the deregistration module specifically includes: a second receiving unit, configured for the UE to receive a non-discovery failure response; a second deregistration unit, configured for the UE to set the user status of the user as unregistered.
上述实施例在接收到订阅方的订阅请求之后,查询该请求对应用户的第三方注册是否失败,若失败,则通过失败响应通知订阅方对该用户进行注销。由于失败响应无需依赖于事先建立的订阅关系来发起,故无论在S-CSCF针对第三方注册失败而执行网络注销时订阅关系是否已经建立均可通过发送失败响应来通知订阅方该用户的第三方注册失败,使得订阅方完成对该用户的注销,从而有效保证了设备间用户数据的一致性,实现了设备间的用户数据同步,所以克服了相关技术中第三方注册失败处理方法由于用户第三方注册失败而使得订阅会话无法建立,所以无法通知订阅方注销用户,从而导致设备间的用户数据存在不一致的问题。In the above embodiment, after receiving the subscription request from the subscriber, it is inquired whether the third-party registration of the user corresponding to the request fails, and if it fails, the subscriber is notified to log out the user through a failure response. Since the failure response does not need to be initiated depending on the pre-established subscription relationship, no matter whether the subscription relationship has been established when the S-CSCF performs network logout for the third-party registration failure, the subscriber can be notified by sending a failure response to the third party of the user The registration failure makes the subscriber complete the logout of the user, thereby effectively ensuring the consistency of user data between devices and realizing the synchronization of user data between devices, so it overcomes the third-party registration failure processing method in the related technology. If the registration fails, the subscription session cannot be established, so the subscriber cannot be notified to log out the user, resulting in inconsistency of user data between devices.
附图说明 Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1示出了UE进行初始注册与订阅的流程图;FIG. 1 shows a flow chart of UE performing initial registration and subscription;
图2示出了根据本发明第一实施例的处理方法的流程图;Fig. 2 shows the flowchart of the processing method according to the first embodiment of the present invention;
图3示出了根据本发明第二实施例的处理方法的流程图;Fig. 3 shows the flowchart of the processing method according to the second embodiment of the present invention;
图4示出了根据本发明第三实施例的处理装置的结构图。Fig. 4 shows a structural diagram of a processing device according to a third embodiment of the present invention.
具体实施方式 Detailed ways
下面将参考附图并结合实施例,来详细说明本发明。The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.
图2示出了根据本发明第一实施例的处理方法的流程图,该方法包括以下步骤:Fig. 2 shows the flowchart of the processing method according to the first embodiment of the present invention, and this method comprises the following steps:
步骤201,接收订阅方发送的用户状态订阅请求SUBSCRIBE,并查询用户的第三方注册是否失败;
步骤202,若用户的第三方注册失败,则向订阅方发送失败响应;
步骤203,订阅方根据失败响应注销用户。
本实施例在接收到订阅方的订阅请求之后,查询该请求对应用户的第三方注册是否失败,若失败,则通过失败响应通知订阅方对该用户进行注销。由于失败响应无需依赖于事先建立的订阅关系来发起,故无论在S-CSCF针对第三方注册失败而执行网络注销时订阅关系是否已经建立均可通过发送失败响应来通知订阅方该用户的第三方注册失败,使得订阅方完成对该用户的注销,从而有效保证了设备间用户数据的一致性,所以克服了相关技术中第三方注册失败处理方法由于用户第三方注册失败而使得订阅会话无法建立,所以无法通知订阅方注销用户,从而导致设备间的用户数据存在不一致的问题。本实施例的应用场景为UE以关联PUI发起网络初始注册,AS返回5xx响应,并且PUI签约的默认处理方式是“SESSION_TERMINATED”;至于其他场景,即AS对第三方注册请求返还成功响应、非5xx失败响应,以及响应超时等情况,S-CSCF按照协议规范描述处理。After receiving the subscription request from the subscriber, this embodiment inquires whether the third-party registration of the user corresponding to the request fails. If it fails, the subscriber is notified to logout the user through a failure response. Since the failure response does not need to be initiated depending on the pre-established subscription relationship, no matter whether the subscription relationship has been established when the S-CSCF performs network logout for the third-party registration failure, the subscriber can be notified by sending a failure response to the third party of the user The registration failure allows the subscriber to complete the logout of the user, thereby effectively ensuring the consistency of user data between devices, so it overcomes the failure of the third-party registration in the related technology, which makes the subscription session unable to be established due to the failure of the third-party registration of the user. Therefore, the subscriber cannot be notified to log out the user, resulting in inconsistency of user data between devices. The application scenario of this embodiment is that the UE initiates network initial registration with the associated PUI, and the AS returns a 5xx response, and the default processing method of the PUI subscription is "SESSION_TERMINATED"; as for other scenarios, that is, the AS returns a successful response to the third-party registration request, not a 5xx For situations such as failure response and response timeout, the S-CSCF handles it according to the description in the protocol specification.
优选地,在上述方法中,步骤101具体包括:I-CSCF接收由P-CSCF发送的用户状态订阅请求SUBSCRIBE;I-CSCF向HSS发送该用户的用户状态查询请求。Preferably, in the above method, step 101 specifically includes: the I-CSCF receives the user status subscription request SUBSCRIBE sent by the P-CSCF; the I-CSCF sends the user status query request of the user to the HSS.
本实施例为P-CSCF发起用户注册状态订阅请求(即订阅方为P-CSCF)的情况。由P-CSCF发起的订阅请求SUBSCRIBE首先到达I-CSCF,I-CSCF通过发送查询请求来查询HSS上该用户的用户状态。如果S-CSCF发起的该用户的第三方注册失败,则AS会向S-CSCF返回5xx响应,S-CSCF会删除其上的用户数据,同时通过SAR注销请求通知HSS注销该用户,HSS接收到该SAR注销请求则会将该用户的状态设置为未注册,故HSS上该用户的用户状态反映了该用户第三方注册的完成情况。本实施例充分利用了I-CSCF接收到SUBSCRIBE之后向HSS发送UAR请求以及HSS返回用户状态查询结果的流程,实现了对用户第三方注册成败情况的查询。This embodiment is the case where the P-CSCF initiates a user registration state subscription request (that is, the subscriber is the P-CSCF). The subscription request SUBSCRIBE initiated by the P-CSCF first reaches the I-CSCF, and the I-CSCF queries the user status of the user on the HSS by sending a query request. If the third-party registration of the user initiated by the S-CSCF fails, the AS will return a 5xx response to the S-CSCF, and the S-CSCF will delete the user data on it, and at the same time notify the HSS to log out the user through the SAR logout request, and the HSS receives The SAR logout request will set the user's status as unregistered, so the user status of the user on the HSS reflects the completion of the user's third-party registration. This embodiment makes full use of the process in which the I-CSCF sends a UAR request to the HSS after receiving the SUBSCRIBE and the HSS returns the user status query result to realize the query of the success or failure of the user's third-party registration.
优选地,在上述方法中,步骤102具体包括:若查询结果为用户未注册,则I-CSCF向P-CSCF发送未发现失败响应。Preferably, in the above method, step 102 specifically includes: if the result of the query is that the user is not registered, the I-CSCF sends a non-discovery failure response to the P-CSCF.
本实施例为P-CSCF发起用户注册状态订阅请求(即订阅方为P-CSCF),且用户第三方注册失败的情况。若HSS返回结果为该用户未注册,则表示该用户的第三方注册失败,此时I-CSCF构造404Not Found(404未发现)失败响应,并返回给P-CSCF,该404NotFound失败响应用于指示订阅方(本实施例中为P-CSCF)删除其上的用户数据。这样做,解决了由背景技术中第1种情况(即SUBSCRIBE订阅请求无法到达S-CSCF)导致S-CSCF无法借助于订阅关系通知P-CSCF删除其上的用户数据的问题。In this embodiment, the P-CSCF initiates a user registration status subscription request (that is, the subscriber is the P-CSCF), and the third-party registration of the user fails. If the result returned by HSS is that the user is not registered, it means that the third-party registration of the user failed. At this time, the I-CSCF constructs a 404Not Found (404 not found) failure response and returns it to the P-CSCF. The 404NotFound failure response is used to indicate The subscriber (P-CSCF in this embodiment) deletes the user data on it. This solves the problem that the S-CSCF cannot notify the P-CSCF to delete the user data on it due to the first situation in the background technology (that is, the SUBSCRIBE subscription request cannot reach the S-CSCF).
优选地,在上述方法中,步骤103具体包括:P-CSCF接收未发现失败响应;P-CSCF删除用户的注册信息。Preferably, in the above method, step 103 specifically includes: the P-CSCF receives a no failure response; and the P-CSCF deletes the registration information of the user.
本实施例为P-CSCF发起用户注册状态订阅请求(即订阅方为P-CSCF),且用户第三方注册失败的情况。如果S-CSCF在P-CSCF订阅完成前,就删除了其上的用户注册数据,并通知HSS将该用户置为未注册状态,则当P-CSCF针对该PUI用户的SUBSCRIBE订阅请求到达I-CSCF时,I-CSCF向P-CSCF返回404Not Found失败响应,P-CSCF收到404Not Found失败响应后,即删除用户注册数据,实现了S-CSCF与P-CSCF之间的数据同步。这样做,解决了由背景技术中第1种情况(即SUBSCRIBE订阅请求无法到达S-CSCF)导致S-CSCF无法通知P-CSCF,进而P-CSCF无法删除其上的用户数据,从而造成S-CSCF与P-CSCF上的用户数据不一致,P-CSCF上存在垃圾数据的问题。In this embodiment, the P-CSCF initiates a user registration status subscription request (that is, the subscriber is the P-CSCF), and the third-party registration of the user fails. If the S-CSCF deletes the user registration data on it before the P-CSCF subscription is completed, and notifies the HSS to set the user as unregistered, then when the P-CSCF's SUBSCRIBE subscription request for the PUI user arrives at the I- When the CSCF is used, the I-CSCF returns a 404 Not Found failure response to the P-CSCF, and the P-CSCF deletes the user registration data after receiving the 404 Not Found failure response, realizing data synchronization between the S-CSCF and the P-CSCF. In this way, the S-CSCF cannot notify the P-CSCF due to the first situation in the background technology (that is, the SUBSCRIBE subscription request cannot reach the S-CSCF), and the P-CSCF cannot delete the user data on it, resulting in S-CSCF The user data on the CSCF and the P-CSCF are inconsistent, and there is a problem of garbage data on the P-CSCF.
优选地,在上述方法中,步骤101具体包括:S-CSCF接收由UE发送的用户状态订阅请求;S-CSCF查询是否存在该用户的用户数据。Preferably, in the above method, step 101 specifically includes: the S-CSCF receives the user status subscription request sent by the UE; the S-CSCF inquires whether there is user data of the user.
本实施例为UE发起用户注册状态订阅请求(即订阅方为UE)的情况。由UE发起的订阅请求SUBSCRIBE首先到达P-CSCF,P-CSCF将该SUBSCRIBE订阅请求转发至S-CSCF,S-CSCF通过查询自己是否保存有该用户的用户数据即可得知该用户的第三方注册是否失败。如果S-CSCF发起的该用户的第三方注册失败,则AS会向S-CSCF返回5xx响应,S-CSCF会删除其上的用户数据,故S-CSCF上是否存在该用户的用户数据反映了该用户第三方注册的完成情况。本实施例充分利用了S-CSCF在第三方注册失败后删除用户数据的流程,实现了对用户第三方注册成败情况的查询。In this embodiment, the UE initiates a user registration status subscription request (that is, the subscriber is the UE). The subscription request SUBSCRIBE initiated by the UE first arrives at the P-CSCF, and the P-CSCF forwards the SUBSCRIBE subscription request to the S-CSCF. The S-CSCF can know the third party of the user by checking whether it has saved the user data of the user. Whether the registration failed. If the third-party registration of the user initiated by the S-CSCF fails, the AS will return a 5xx response to the S-CSCF, and the S-CSCF will delete the user data on it, so whether there is user data on the S-CSCF reflects the The completion of the user's third-party registration. This embodiment makes full use of the process of the S-CSCF deleting user data after the third-party registration fails, and realizes the query of the success or failure of the user's third-party registration.
优选地,在上述方法中,步骤102具体包括:若用户数据不存在,则S-CSCF向UE发送未发现失败响应。Preferably, in the above method, step 102 specifically includes: if the user data does not exist, then the S-CSCF sends a no-discovery failure response to the UE.
本实施例为UE发起用户注册状态订阅请求(即订阅方为UE),且用户第三方注册失败的情况。若S-CSCF查询得到用户数据不存在,则表示该用户的第三方注册失败,此时S-CSCF构造404NotFound失败响应,并返回给UE,该404Not Found失败响应用于指示订阅方(本实施例中为UE)注销该用户,即设置其用户状态为未注册。这样做,解决了由背景技术中第2种情况(即SUBSCRIBE订阅请求到达S-CSCF的时间滞后于AS返回的5xx响应到达S-CSCF的时间)导致S-CSCF无法借助于订阅关系通知UE注销该用户的问题。In this embodiment, the UE initiates a user registration status subscription request (that is, the subscriber is the UE), and the third-party registration of the user fails. If the S-CSCF query obtains that the user data does not exist, it means that the third-party registration of the user has failed. At this time, the S-CSCF constructs a 404NotFound failure response and returns it to the UE. The 404Not Found failure response is used to indicate the subscriber (this embodiment) In the case of UE), the user is deregistered, that is, the user status is set as unregistered. In this way, the second situation in the background technology (that is, the time when the SUBSCRIBE subscription request arrives at the S-CSCF lags behind the time when the 5xx response returned by the AS arrives at the S-CSCF) causes the S-CSCF to be unable to notify the UE to log off by means of the subscription relationship The user's question.
优选地,在上述方法中,步骤103具体包括:UE接收未发现失败响应;UE设置用户的用户状态为未注册。Preferably, in the above method, step 103 specifically includes: the UE receives a no-discovery failure response; and the UE sets the user status of the user as unregistered.
本实施例为UE发起用户注册状态订阅请求(即订阅方为UE),且用户第三方注册失败的情况。如果S-CSCF在P-CSCF订阅完成前,就删除了其上的用户注册数据,则当UE针对该PUI用户的SUBSCRIBE订阅请求到达S-CSCF时,S-CSCF向UE返回404NotFound失败响应,UE收到404Not Found失败响应后,即设置用户的用户状态为未注册,实现了S-CSCF与UE之间的数据同步。这样做,解决了由背景技术中第2种情况(即SUBSCRIBE订阅请求到达S-CSCF的时间滞后于AS返回的5xx响应到达S-CSCF的时间)导致S-CSCF无法通知UE,进而UE无法及时注销该用户,从而造成S-CSCF与UE上的用户数据不一致,UE无法及时注销该用户的问题。In this embodiment, the UE initiates a user registration status subscription request (that is, the subscriber is the UE), and the third-party registration of the user fails. If the S-CSCF deletes the user registration data on the P-CSCF before the P-CSCF subscription is completed, when the UE's SUBSCRIBE subscription request for the PUI user reaches the S-CSCF, the S-CSCF returns a 404NotFound failure response to the UE, and the UE After receiving the 404 Not Found failure response, the user status of the user is set as unregistered, and the data synchronization between the S-CSCF and the UE is realized. In this way, the second situation in the background technology (that is, the time when the SUBSCRIBE subscription request arrives at the S-CSCF lags behind the time when the 5xx response returned by the AS arrives at the S-CSCF) causes the S-CSCF to fail to notify the UE, and the UE cannot timely The user is logged out, resulting in the inconsistency between the user data on the S-CSCF and the UE, and the UE cannot log out the user in time.
图3示出了根据本发明第二实施例的处理方法的流程图,该方法包括以下步骤:Fig. 3 shows the flowchart of the processing method according to the second embodiment of the present invention, and this method comprises the following steps:
步骤301,UE发起网络注册,发送REGISTER请求到P-CSCF;Step 301, the UE initiates network registration and sends a REGISTER request to the P-CSCF;
步骤302,P-CSCF转发REGISTER请求到I-CSCF;Step 302, the P-CSCF forwards the REGISTER request to the I-CSCF;
步骤303,I-CSCF向HSS发送UAR请求查询用户状态;Step 303, the I-CSCF sends a UAR request to the HSS to query the user status;
步骤304,HSS将用户状态查询结果通过UAA消息返回给I-CSCF;Step 304, the HSS returns the user status query result to the I-CSCF through the UAA message;
步骤305,I-CSCF转发注册REGISTER请求到S-CSCF;Step 305, the I-CSCF forwards the REGISTER request to the S-CSCF;
步骤306,S-CSCF发送SAR请求到HSS通知用户注册,并下载用户签约数据;Step 306, the S-CSCF sends a SAR request to the HSS to notify the user of registration, and download the user subscription data;
步骤307,HSS返回SAA,并下载用户签约数据到S-CSCF;Step 307, the HSS returns the SAA, and downloads the user subscription data to the S-CSCF;
步骤308,注册完成,S-CSCF返回注册的200OK响应;Step 308, the registration is completed, and the S-CSCF returns a 200 OK response for registration;
步骤309a,S-CSCF根据用户签约数据触发第三方注册,发送REGISTER(the third-party)消息到AS;Step 309a, S-CSCF triggers third-party registration according to user subscription data, and sends REGISTER (the third-party) message to AS;
步骤309b,AS返回针对第三方注册请求的5xx响应,S-CSCF在收到AS返回的5xx响应后删除其上的用户数据,并通知HSS注销用户,HSS根据该通知设置该用户为未注册状态;Step 309b, the AS returns a 5xx response to the third-party registration request, the S-CSCF deletes the user data on it after receiving the 5xx response returned by the AS, and notifies the HSS to cancel the user, and the HSS sets the user as unregistered according to the notification ;
步骤310,I-CSCF转发步骤308中的200OK响应到P-CSCF;Step 310, the I-CSCF forwards the 200 OK response in step 308 to the P-CSCF;
步骤311,P-CSCF转发步骤310中的200OK响应到UE;Step 311, the P-CSCF forwards the 200 OK response in step 310 to the UE;
步骤312a,P-CSCF发起用户注册状态订阅,发送SUBSCRIBE请求到I-CSCF;Step 312a, P-CSCF initiates user registration status subscription, and sends SUBSCRIBE request to I-CSCF;
步骤312b,I-CSCF向HSS发送UAR请求查询用户状态;Step 312b, the I-CSCF sends a UAR request to the HSS to query the user status;
步骤312c,HSS通过UAA向I-CSCF返回用户未注册;Step 312c, the HSS returns to the I-CSCF through the UAA that the user is not registered;
步骤312d,I-CSCF构造404Not Found失败响应返回给P-CSCF,P-CSCF收到404Not Found响应后,删除该用户对应的注册数据;Step 312d, the I-CSCF constructs a 404Not Found failure response and returns it to the P-CSCF, and the P-CSCF deletes the registration data corresponding to the user after receiving the 404Not Found response;
步骤313a,UE发起用户注册状态订阅,发送SUBSCRIBE订阅请求到P-CSCF;Step 313a, the UE initiates user registration status subscription, and sends a SUBSCRIBE subscription request to the P-CSCF;
步骤313b,P-CSCF转发UE的SUBSCRIBE订阅请求到S-CSCF;Step 313b, P-CSCF forwards UE's SUBSCRIBE subscription request to S-CSCF;
步骤313c,S-CSCF收到SUBSCRIBE请求后,经检查用户数据不存在,构造并向P-CSCF返回404Not Found失败响应;Step 313c: After receiving the SUBSCRIBE request, the S-CSCF checks that the user data does not exist, constructs and returns a 404 Not Found failure response to the P-CSCF;
步骤313d,P-CSCF转发404Not Found失败响应到UE,UE收到404Not Found响应后,将用户状态置为未注册。In step 313d, the P-CSCF forwards the 404 Not Found failure response to the UE, and the UE sets the user status as unregistered after receiving the 404 Not Found response.
本实施例中的步骤312a~312d解决了由背景技术中第1种情况(即SUBSCRIBE订阅请求无法到达S-CSCF)导致S-CSCF无法通知P-CSCF,进而P-CSCF无法删除其上的用户数据,从而造成S-CSCF与P-CSCF上的用户数据不一致,P-CSCF上存在垃圾数据的问题;步骤313a~313d解决了由背景技术中第2种情况(即SUBSCRIBE订阅请求到达S-CSCF的时间滞后于AS返回的5xx响应到达S-CSCF的时间)导致S-CSCF无法通知UE,从而造成S-CSCF与UE上的用户数据不一致,UE无法及时注销该用户的问题。故本实施例无论在S-CSCF针对第三方注册失败而执行网络注销时订阅关系是否已经建立均可通过发送失败响应来通知订阅方该用户的第三方注册失败,使得订阅方完成对该用户的注销,从而有效保证了设备间用户数据的一致性,实现了设备间的用户数据同步。Steps 312a to 312d in this embodiment solve the problem of the first situation in the background technology (that is, the SUBSCRIBE subscription request cannot reach the S-CSCF), which causes the S-CSCF to fail to notify the P-CSCF, and the P-CSCF cannot delete its users data, thereby causing the user data on the S-CSCF and the P-CSCF to be inconsistent, and there is a problem of garbage data on the P-CSCF; steps 313a to 313d solve the problem caused by the second case in the background technology (that is, the SUBSCRIBE subscription request reaches the S-CSCF The time lags behind the time when the 5xx response returned by the AS arrives at the S-CSCF), so that the S-CSCF cannot notify the UE, resulting in the inconsistency between the user data on the S-CSCF and the UE, and the UE cannot log out the user in time. Therefore, in this embodiment, regardless of whether the subscription relationship has been established when the S-CSCF executes network cancellation for the third-party registration failure, the subscriber can be notified by sending a failure response that the third-party registration of the user failed, so that the subscriber completes the registration of the user. Logout, thus effectively ensuring the consistency of user data between devices and realizing the synchronization of user data between devices.
图4示出了根据本发明第三实施例的处理装置的结构图,该装置包括:FIG. 4 shows a structural diagram of a processing device according to a third embodiment of the present invention, the device comprising:
查询模块401,用于接收订阅方发送的用户状态订阅请求,并查询用户的第三方注册是否失败;The
响应模块402,用于若用户的第三方注册失败,则向订阅方发送失败响应;A
注销模块403,用于订阅方根据失败响应注销用户。A
本实施例首先采用查询模块401接收订阅方的订阅请求,并查询该请求对应用户的第三方注册是否失败,若失败,则采用响应模块402发送失败响应通知订阅方对该用户进行注销,最后采用注销模块403对该用户进行注销。由于失败响应无需依赖于事先建立的订阅关系来发起,故无论在S-CSCF针对第三方注册失败而执行网络注销时订阅关系是否已经建立均可通过发送失败响应来通知订阅方该用户的第三方注册失败,使得订阅方完成对该用户的注销,从而有效保证了设备间用户数据的一致性,所以克服了相关技术中第三方注册失败处理方法由于用户第三方注册失败而使得订阅会话无法建立,所以无法通知订阅方注销用户,从而导致设备间的用户数据存在不一致的问题。本实施例的应用场景为UE以关联PUI发起网络初始注册,AS返回5xx响应,并且PUI签约的默认处理方式是“SESSION_TERMINATED”;至于其他场景,即AS对第三方注册请求返还成功响应、非5xx失败响应,以及响应超时等情况,S-CSCF按照协议规范描述处理。In this embodiment, first, the
优选地,在上述装置中,响应模块402具体包括:第一响应单元,用于当查询结果为用户未注册时,I-CSCF向P-CSCF发送未发现失败响应。Preferably, in the above device, the
本实施例为P-CSCF发起用户注册状态订阅请求(即订阅方为P-CSCF),且用户第三方注册失败的情况。若HSS返回结果为该用户未注册,则表示该用户的第三方注册失败,此时I-CSCF构造404Not Found失败响应,并返回给P-CSCF,该404Not Found失败响应用于指示订阅方(本实施例中为P-CSCF)删除其上的用户数据。这样做,解决了由背景技术中第1种情况(即SUBSCRIBE订阅请求无法到达S-CSCF)导致S-CSCF无法借助于订阅关系通知P-CSCF删除其上的用户数据的问题。In this embodiment, the P-CSCF initiates a user registration status subscription request (that is, the subscriber is the P-CSCF), and the third-party registration of the user fails. If the result returned by the HSS is that the user is not registered, it means that the third-party registration of the user failed. At this time, the I-CSCF constructs a 404Not Found failure response and returns it to the P-CSCF. The 404Not Found failure response is used to indicate the subscriber (this In the embodiment, it is P-CSCF) to delete the user data on it. This solves the problem that the S-CSCF cannot notify the P-CSCF to delete the user data on it due to the first situation in the background technology (that is, the SUBSCRIBE subscription request cannot reach the S-CSCF).
优选地,在上述装置中,注销模块403具体包括:第一接收单元,用于P-CSCF接收未发现失败响应;第一注销单元,用于P-CSCF删除用户的注册信息。Preferably, in the above-mentioned device, the
本实施例为P-CSCF发起用户注册状态订阅请求(即订阅方为P-CSCF),且用户第三方注册失败的情况。如果S-CSCF在P-CSCF订阅完成前,就删除了其上的用户注册数据,并通知HSS将该用户置为未注册状态,则当P-CSCF针对该PUI用户的SUBSCRIBE订阅请求到达I-CSCF时,I-CSCF向P-CSCF返回404Not Found失败响应,P-CSCF收到404Not Found失败响应后,即删除用户注册数据,实现了S-CSCF与P-CSCF之间的数据同步。这样做,解决了由背景技术中第1种情况(即SUBSCRIBE订阅请求无法到达S-CSCF)导致S-CSCF无法通知P-CSCF,进而P-CSCF无法删除其上的用户数据,从而造成S-CSCF与P-CSCF上的用户数据不一致,P-CSCF上存在垃圾数据的问题。In this embodiment, the P-CSCF initiates a user registration status subscription request (that is, the subscriber is the P-CSCF), and the third-party registration of the user fails. If the S-CSCF deletes the user registration data on it before the P-CSCF subscription is completed, and notifies the HSS to set the user as unregistered, then when the P-CSCF's SUBSCRIBE subscription request for the PUI user arrives at the I- When the CSCF is used, the I-CSCF returns a 404 Not Found failure response to the P-CSCF, and the P-CSCF deletes the user registration data after receiving the 404 Not Found failure response, realizing data synchronization between the S-CSCF and the P-CSCF. In this way, the S-CSCF cannot notify the P-CSCF due to the first situation in the background technology (that is, the SUBSCRIBE subscription request cannot reach the S-CSCF), and the P-CSCF cannot delete the user data on it, resulting in S-CSCF The user data on the CSCF and the P-CSCF are inconsistent, and there is a problem of garbage data on the P-CSCF.
优选地,在上述装置中,响应模块402具体包括:第二响应单元,用于当用户数据不存在时,S-CSCF向UE发送未发现失败响应。Preferably, in the above-mentioned apparatus, the
本实施例为UE发起用户注册状态订阅请求(即订阅方为UE),且用户第三方注册失败的情况。若S-CSCF查询得到用户数据不存在,则表示该用户的第三方注册失败,此时S-CSCF构造404NotFound失败响应,并返回给UE,该404Not Found失败响应用于指示订阅方(本实施例中为UE)注销该用户,即设置其用户状态为未注册。这样做,解决了由背景技术中第2种情况(即SUBSCRIBE订阅请求到达S-CSCF的时间滞后于AS返回的5xx响应到达S-CSCF的时间)导致S-CSCF无法借助于订阅关系通知UE注销该用户的问题。In this embodiment, the UE initiates a user registration status subscription request (that is, the subscriber is the UE), and the third-party registration of the user fails. If the S-CSCF query obtains that the user data does not exist, it means that the third-party registration of the user has failed. At this time, the S-CSCF constructs a 404NotFound failure response and returns it to the UE. The 404Not Found failure response is used to indicate the subscriber (this embodiment) In the case of UE), the user is deregistered, that is, the user status is set as unregistered. In this way, the second situation in the background technology (that is, the time when the SUBSCRIBE subscription request arrives at the S-CSCF lags behind the time when the 5xx response returned by the AS arrives at the S-CSCF) causes the S-CSCF to be unable to notify the UE to log off by means of the subscription relationship The user's question.
优选地,在上述装置中,注销模块403具体包括:第二接收单元,用于UE接收未发现失败响应;第二注销单元,用于UE设置用户的用户状态为未注册。Preferably, in the above device, the
本实施例为UE发起用户注册状态订阅请求(即订阅方为UE),且用户第三方注册失败的情况。如果S-CSCF在P-CSCF订阅完成前,就删除了其上的用户注册数据,则当UE针对该PUI用户的SUBSCRIBE订阅请求到达S-CSCF时,S-CSCF向UE返回404NotFound失败响应,UE收到404Not Found失败响应后,即设置用户的用户状态为未注册,实现了S-CSCF与UE之间的数据同步。这样做,解决了由背景技术中第2种情况(即SUBSCRIBE订阅请求到达S-CSCF的时间滞后于AS返回的5xx响应到达S-CSCF的时间)导致S-CSCF无法通知UE,进而UE无法及时注销该用户,从而造成S-CSCF与UE上的用户数据不一致,UE无法及时注销该用户的问题。In this embodiment, the UE initiates a user registration status subscription request (that is, the subscriber is the UE), and the third-party registration of the user fails. If the S-CSCF deletes the user registration data on the P-CSCF before the P-CSCF subscription is completed, when the UE's SUBSCRIBE subscription request for the PUI user reaches the S-CSCF, the S-CSCF returns a 404NotFound failure response to the UE, and the UE After receiving the 404 Not Found failure response, the user status of the user is set as unregistered, and the data synchronization between the S-CSCF and the UE is realized. In this way, the second situation in the background technology (that is, the time when the SUBSCRIBE subscription request arrives at the S-CSCF lags behind the time when the 5xx response returned by the AS arrives at the S-CSCF) causes the S-CSCF to fail to notify the UE, and the UE cannot timely The user is logged out, resulting in the inconsistency between the user data on the S-CSCF and the UE, and the UE cannot log out the user in time.
从以上的描述中,可以看出,本发明上述的实施例无论在S-CSCF针对第三方注册失败而执行网络注销时订阅关系是否已经建立均可通过发送失败响应来通知订阅方该用户的第三方注册失败,使得订阅方完成对该用户的注销,从而有效保证了设备间用户数据的一致性,实现了设备间的用户数据同步。From the above description, it can be seen that in the above embodiments of the present invention, no matter whether the subscription relationship has been established when the S-CSCF executes the network logout for the third party registration failure, it can send a failure response to notify the subscriber of the user's first The failure of the three-party registration allows the subscriber to complete the logout of the user, thereby effectively ensuring the consistency of user data between devices and realizing the synchronization of user data between devices.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device and executed by a computing device, or they can be made into individual integrated circuit modules, or they can be integrated into Multiple modules or steps are fabricated into a single integrated circuit module to realize. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910176200.1A CN102035800B (en) | 2009-09-25 | 2009-09-25 | Third party registration failure processing method and device used for IMS (IP Multimedia Subsystem) |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910176200.1A CN102035800B (en) | 2009-09-25 | 2009-09-25 | Third party registration failure processing method and device used for IMS (IP Multimedia Subsystem) |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102035800A CN102035800A (en) | 2011-04-27 |
| CN102035800B true CN102035800B (en) | 2014-03-19 |
Family
ID=43888139
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910176200.1A Active CN102035800B (en) | 2009-09-25 | 2009-09-25 | Third party registration failure processing method and device used for IMS (IP Multimedia Subsystem) |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102035800B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11576048B1 (en) * | 2020-04-28 | 2023-02-07 | T-Mobile Innovations Llc | Mitigating authentication-based hacking of access restricted telecommunication services |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1870522A (en) * | 2005-12-08 | 2006-11-29 | 华为技术有限公司 | Processing method for exception in course of P-CSCF and UE log-on |
| CN101079892A (en) * | 2007-07-10 | 2007-11-28 | 华为技术有限公司 | Processing method, system and device for subscription and registration status |
| CN101110833A (en) * | 2007-08-23 | 2008-01-23 | 中兴通讯股份有限公司 | Third-Party Registration Processing Method Based on IP Multimedia Subsystem Network |
-
2009
- 2009-09-25 CN CN200910176200.1A patent/CN102035800B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1870522A (en) * | 2005-12-08 | 2006-11-29 | 华为技术有限公司 | Processing method for exception in course of P-CSCF and UE log-on |
| CN101079892A (en) * | 2007-07-10 | 2007-11-28 | 华为技术有限公司 | Processing method, system and device for subscription and registration status |
| CN101110833A (en) * | 2007-08-23 | 2008-01-23 | 中兴通讯股份有限公司 | Third-Party Registration Processing Method Based on IP Multimedia Subsystem Network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102035800A (en) | 2011-04-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101809961B (en) | Failure recovery in an IP multimedia subsystem network | |
| US10609099B2 (en) | System and method for implementing media and media control transfer between devices | |
| EP2093970B1 (en) | Call service handling in an IMS-based system | |
| EP2112798B1 (en) | Service controlling in a service provisioning system | |
| CN101345748B (en) | Method, system and device for notifying application server of user status | |
| US20150282242A1 (en) | Methods and apparatus for processing an ims session | |
| US20100312832A1 (en) | System and method for implementing media and media control transfer between devices | |
| US20110040836A1 (en) | System and method for implementing media and media control transfer between devices | |
| WO2007025480A1 (en) | Method of session processing in an ims and interrogating-call state control function | |
| US9578068B2 (en) | Methods and apparatus for processing an IMS session | |
| JP5805200B2 (en) | Method and apparatus for maintaining registration for emergency services | |
| WO2006111845A2 (en) | Session initiation from application servers in an ip multimedia subsystem | |
| CN102035805B (en) | Third party registration failure processing method and device for IMS (IP Multimedia Subsystem) | |
| CN102035800B (en) | Third party registration failure processing method and device used for IMS (IP Multimedia Subsystem) | |
| US11418635B2 (en) | Method of dynamic selection, by a caller, from a plurality of terminals of a callee | |
| US9426711B2 (en) | Traffic control within an IP multimedia subsystem | |
| CN1881975B (en) | A method of calling user terminal of IP multimedia subsystem | |
| CN105530228A (en) | User register processing method, device and system | |
| KR101360151B1 (en) | Method of sip message transmission between gruu users in ims network, and device of the same | |
| CN100466811C (en) | A method of calling user terminal of IP multimedia subsystem |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |