CN103096295B - User Status update method, system and service server, sip terminal - Google Patents

User Status update method, system and service server, sip terminal Download PDF

Info

Publication number
CN103096295B
CN103096295B CN201110336590.1A CN201110336590A CN103096295B CN 103096295 B CN103096295 B CN 103096295B CN 201110336590 A CN201110336590 A CN 201110336590A CN 103096295 B CN103096295 B CN 103096295B
Authority
CN
China
Prior art keywords
sip terminal
service server
user
message
sip
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.)
Expired - Fee Related
Application number
CN201110336590.1A
Other languages
Chinese (zh)
Other versions
CN103096295A (en
Inventor
申光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110336590.1A priority Critical patent/CN103096295B/en
Publication of CN103096295A publication Critical patent/CN103096295A/en
Application granted granted Critical
Publication of CN103096295B publication Critical patent/CN103096295B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of User Status update method, system and service server, sip terminal, service server is when finding the state more new information time-out to sip terminal transmission, discharge the session of this sip terminal current subscription, and send network failure notification message by preset rules to this sip terminal; This sip terminal resends SIP subscription message according to receiving fault notification message to service server, to obtain the status information that in the user list that on service server, this sip terminal is corresponding, each user is current. Therefore the present invention can network failure cause service server release sip terminal session after, when network recovery is normal, the network failure announcement information that this sip terminal can pass through to receive reacquires the current state information of each user in user list corresponding on service server timely, it is to avoid the situation of " friend state is chaotic " occur.

Description

User Status update method, system and service server, sip terminal
Technical field
The present invention relates to the communications field, be specifically related to a kind of User Status update method, system and a kind of service server, sip terminal.
Background technology
In the core net environment based on SIP (SessionInitiationProtocol), such as NGN network (NextGenerationNetwork), IMS network (IPMultimediaSubsystem)), the real-time function presenting user's current state is a basic function, this function is in order to provide a user with " friend state notice ", when in the user list of user, friend state changes, as reached the standard grade, off-line, busy, leave, user can be notified immediately, so that user understands the state of each good friend in user list in time, improve the experience of user.
At present in the state processing flow process based on SIMPLE (SIPInstantMessageandPresenceLeveragingExtensions), when the network environment of subscriber is bad, such as, when SIP mobile terminal accesses PS territory by GPRS, the state that service server issues more new information is it is possible that the situation of time-out, when this happens, existing way is that the session of this subscription is discharged by service server, to avoid to occurring that abnormal SIP client sends state more new information, improve the resource utilization of system. but due in most cases, network environment conditions can recover at short notice, SIP client and service server is made normally to connect, and now SIP client is not aware that service end has released the subscription session of oneself, thus without adopting any measure, before causing the refresh cycle in this session to arrive, SIP client will not receive the Notify message that any service server sends over, therefore the status list now presenting to user can not the current state of each user in right-on reaction list, occur that friend state is chaotic " situation, user can be allowed to judge by accident, now User Status prompting function reduces the experience of user on the contrary, default effect can not be really achieved.
Summary of the invention
The main technical problem to be solved in the present invention is, a kind of User Status update method, system and a kind of service server, sip terminal are provided, can when network recovery be normal, make sip terminal can obtain the current state information of each user in user list corresponding on service server timely, it is to avoid the situation of " friend state is chaotic " occurs.
For solving above-mentioned technical problem, the present invention provides a kind of User Status update method, including:
When service server detects the state more new information time-out to sip terminal transmission, discharge the session of described sip terminal current subscription, and send network failure notification message by preset rules to described sip terminal;
Service server receives after the SIP that described sip terminal feeds back based on described network failure notification message subscribes to message, and the current state information of user each in user list corresponding for described sip terminal is sent to described sip terminal.
Present invention also offers a kind of User Status update method, including:
When sip terminal receives the network failure notification message that service server sends by preset rules, resend SIP to described service server and subscribe to message;
Described sip terminal receives described service server and subscribes to based on described SIP in the user list corresponding to described sip terminal of message feedback after each user's current state information, according to the current state of each user in its user list of the information updating received.
Present invention also offers a kind of User Status update method, including:
When service server detects the state more new information time-out to sip terminal transmission, discharge the session of described sip terminal current subscription, and send network failure notification message by preset rules to described sip terminal;
After described sip terminal receives described fault notification message, resend SIP to described service server and subscribe to message;
The current state information of user each in user list corresponding for described sip terminal is sent to described sip terminal after receiving described SIP subscription message by service server;
Described sip terminal is according to the current state of each user in its user list of described information updating received.
In an embodiment of the present invention, described preset rules for when described status message time-out being detected, sending described network failure notification message by the frequency preset to described sip terminal within the default time period.
In an embodiment of the present invention, described network failure notification message includes error identification.
Present invention also offers a kind of service server, including:
State is new module more, and during for the User Status change in the user list that sip terminal is corresponding being detected, transmission state more new information surpasses to described sip terminal; It is additionally operable to receive after the SIP of described sip terminal fault notification message feedback Network Based subscribes to message, the current state information of user each in user list corresponding for described sip terminal is sent to described sip terminal;
Detection module, is used for detecting described state updates to disappear whether send time-out, as transmission time-out detected, sends time-out notification to failure message sending module;
Fault warning module, after being used for receiving described time-out notification, sends network failure notification message by preset rules to described sip terminal.
Present invention also offers a kind of sip terminal, including:
Session management module: during for receiving network failure notification message that service server sends by preset rules, resends SIP subscription message to described service server;
State is new module more: subscribe in the user list corresponding to described sip terminal of message feedback after each user's current state information based on described SIP for receiving described service server, according to the current state of each user in the user list of its correspondence of information updating received.
Present invention also offers a kind of User Status and update system, including service server as above and multiple sip terminal as above, described sip terminal is connected with described operational processor respectively.
In a kind of embodiment of this name, described preset rules for when described status message time-out being detected, sending described network failure notification message by the frequency preset to described sip terminal within the default time period.
In a kind of embodiment of this name, described service server and described sip terminal also include Session Initiation Protocol stack respectively; Described service server sends state more new information to sip terminal by it Session Initiation Protocol stack included; Described sip terminal receives and parses through the network failure notification message from service server by it Session Initiation Protocol stack included, and resends SIP subscription message to described service server by it Session Initiation Protocol stack included.
The invention has the beneficial effects as follows: the service server in the present invention is when finding the state more new information time-out to sip terminal transmission, know that network failure currently occurs, discharge the session of this sip terminal current subscription, and send network failure notification message by preset rules to this sip terminal; Work as network recovery, after Failure elimination, this sip terminal will receive fault notification message, thus learning that service server has released the session of its subscription, therefore resend SIP to service server and subscribe to message, to obtain the status information that in the user list that on service server, this sip terminal is corresponding, each user is current, and according to the current state of each user in its user list of the information updating got. Therefore the present invention can network failure cause service server release sip terminal session after, when network recovery is normal, the network failure announcement information that this sip terminal can pass through to receive reacquires the current state information of each user in user list corresponding on service server timely, avoid the occurrence of the situation of " friend state is chaotic ", avoid user to make a mistake judgement, improve the experience of user.
Accompanying drawing explanation
Fig. 1 is the User Status update method flow chart of an embodiment of the present invention;
Fig. 2 is the service server structured flowchart of another kind embodiment of the present invention;
Fig. 3 is the sip terminal structured flowchart of another kind embodiment of the present invention;
Fig. 4 is that another kind embodiment User Status of the present invention updates system block diagram;
Fig. 5 is another User Status update method flow chart of an embodiment of the present invention.
Detailed description of the invention
The present invention is described in further detail in conjunction with accompanying drawing below by detailed description of the invention.
Refer to Fig. 1, the User Status update method provided in this example comprises the following steps:
Whether the state more new information time-out that service server detection sends to sip terminal is overtime, such as time-out, then discharges the session of this sip terminal current subscription, and sends network failure notification message by preset rules to this sip terminal;
After described sip terminal receives described fault notification message, resend SIP to service server and subscribe to message;
The current state information of user each in user list corresponding for described sip terminal is sent to described sip terminal after receiving described SIP subscription message by service server;
Described sip terminal is according to the current state of each user in its user list of described information updating received.
Namely in this example, when the various factors such as network environment cause network failure, and then after causing the session of service server release sip terminal, after Failure elimination, when network recovery is normal, this sip terminal can receive the network failure announcement information that service server sends, and then learn that the session of now its subscription is released, need again to send SIP to service lists in time and subscribe to message, to reacquire the current state information of each user in user list corresponding on service server timely, avoid the occurrence of the situation of " friend state is chaotic ", user is avoided to make a mistake judgement, to improve the experience of user.
In this example, the various information between service server and sip terminal can interact based on Session Initiation Protocol. Preferably, the service server in this example specifically can comprise the following steps that to this sip terminal transmission network failure notification message by preset rules
When service server detects the state more new information time-out to sip terminal transmission, can according to current network fault Producing reason and the recovery normal required time, preset a time period, within this time period, it is allowed to send network failure notification message to this sip terminal by the frequency set. Can according to various fault Producing reason and the statistics that needs recovery time accordingly in this example, set a time period big as far as possible in allowed limits, to make the network failure that a variety of causes produces can recover within this time period as much as possible, the transmission frequency arranged within this time period then specifically can set according to network environment.
May also include error identification in network failure message in this example, this error identification can be shown that the state more new information time-out sent before service server, is not namely successfully sent to SIP client, it is necessary to SIP client reacquires. Network failure message in this example may also include network failure mark, to identify the reason of network failure, and then obtain the information such as time required for this fault recovery.
Refer to Fig. 2, this example additionally provides a kind of service server, including:
State is new module more, and during for the User Status change in the user list that sip terminal is corresponding being detected, transmission state more new information surpasses to described sip terminal; It is additionally operable to receive after the SIP of sip terminal fault notification message feedback Network Based subscribes to message, the current state information of user each in user list corresponding for this sip terminal is sent to this sip terminal;
Detection module, is used for the state that detects updates to disappear whether send time-out, as transmission time-out detected, sends time-out notification to failure message sending module;
Fault warning module, after being used for receiving time-out notification, sends network failure notification message by above-mentioned preset rules to corresponding sip terminal.
Referring to Fig. 3, accordingly, this example additionally provides a kind of sip terminal, and the sip terminal in this example can be pc client, it is also possible to be based on the terminal of embedded OS, for instance SIP phone, mobile phone etc., including:
Session management module: during for receiving network failure notification message that service server sends by above-mentioned preset rules, resends SIP to service server and subscribes to message;
State is new module more: subscribe in the user list corresponding to this sip terminal of message feedback after each user's current state information based on above-mentioned SIP for receiving service server, according to the current state of each user in the user list of its correspondence of information updating received.
Referring to such as Fig. 4, the User Status in this example updates system and includes above-mentioned service server and multiple above-mentioned sip terminal. Above-mentioned service server and above-mentioned sip terminal in this example also include Session Initiation Protocol stack respectively; Various information between service server and sip terminal complete mutual by it Session Initiation Protocol stack included, for instance service server sends state more new information by it Session Initiation Protocol stack included and surpasses to sip terminal; Equally, the various information between SIP and service server terminal are also complete mutual by it Session Initiation Protocol stack included, for instance sip terminal receives and parses through the network failure notification message from service server by it Session Initiation Protocol stack included; Sip terminal resends SIP by it Session Initiation Protocol stack included and subscribes to message to described service server.
Below, in order to be better understood from the present invention, this example is described further to include a service server and two sip terminals 1 being connected respectively and sip terminal 2 with described service server, wherein, the user of sip terminal 2 correspondence is in the user list (i.e. buddy list or contacts list) that the user of sip terminal 1 correspondence subscribes to, and set now sip terminal 2 and on line, refer to Fig. 5:
The user UE1 of step 501:SIP terminal 1 sends SIP and subscribes to message after logging in, subscribe to the contacts list of oneself;
Step 502: service server subscribes to message success response recoil state message for the SIP of sip terminal 1, and this message carries the state of each contact person in the contacts list that sip terminal 1 is subscribed to;
The status message success response that step 503:SIP terminal 1 is fed back for service server, and update the state of each contact;
The state of the good friend UE2 in step 504:SIP terminal 2 changes (such as rolling off the production line), is issued by PUBLISH;
Step 505: service server is for the success response of the UE2 PUBLISH sent;
Step 506: service server sends state more new information to UE1, is used for notifying that its friend state of UE1 changes; Owing to now UE1 place network goes wrong, service server detects that this message fails to send successfully, and according to Session Initiation Protocol, this message will carry out repeatedly retransmitting it is known that retransmit time-out, the session that now service server release sip terminal 1 is subscribed to;
Step 507: service server sends network failure notification message by preset rules, " Content-Type " of this message represents that information in message body is for subscribing to session related information, and the state more new information before illustrating in XML (error identification) mode in message body sends time-out; Now be likely to also problematic due to network, this certain in above-mentioned preset time period of network failure notification message still may send failure several times, and service server can carry out retransmitting it is known that retransmit time-out according to the frequency set;
Step 508: service server sends network failure notification message according to the frequency set within the corresponding time period, and is successfully sent to sip terminal 1 after network recovery;
Step 509: after network recovery, the success response of the message that sip terminal 1 sends for service server;
After step 510:SIP terminal 1 receives network failure notification message, it is appreciated that the contact person of oneself subscribes to session and lost efficacy, again send SIP to service server and subscribe to message;
Step 511: service server subscribes to the success response of message for the SIP that sip terminal 1 resends;
Step 512: the current state of respective contacts in the contacts list of the UE1 on sip terminal 1 is sent to sip terminal 1 by state more new information by service server;
Step 214:SIP terminal 1 updates the current state of each contact person in the contacts list of its correspondence of information updating according to the state received.
Above content is in conjunction with specific embodiment further description made for the present invention, it is impossible to assert that specific embodiment of the invention is confined to these explanations. For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, it is also possible to make some simple deduction or replace, protection scope of the present invention all should be considered as belonging to.

Claims (10)

1. a User Status update method, it is characterised in that including:
When service server detects the state more new information time-out to sip terminal transmission, discharge the session of described sip terminal current subscription, and send network failure notification message by preset rules to described sip terminal;
Service server receives after the SIP that described sip terminal feeds back based on described network failure notification message subscribes to message, and the current state information of user each in user list corresponding for described sip terminal is sent to described sip terminal.
2. a User Status update method, it is characterised in that including:
When sip terminal receives the network failure notification message that service server sends by preset rules, resend SIP to described service server and subscribe to message;
Described sip terminal receives described service server and subscribes to based on described SIP in the user list corresponding to described sip terminal of message feedback after each user's current state information, according to the current state of each user in its user list of the information updating received.
3. a User Status update method, it is characterised in that including:
When service server detects the state more new information time-out to sip terminal transmission, discharge the session of described sip terminal current subscription, and send network failure notification message by preset rules to described sip terminal;
After described sip terminal receives described fault notification message, resend SIP to described service server and subscribe to message;
The current state information of user each in user list corresponding for described sip terminal is sent to described sip terminal after receiving described SIP subscription message by service server;
Described sip terminal is according to the current state of each user in its user list of described information updating received.
4. method as claimed in claim 3, it is characterised in that described preset rules for when described status message time-out being detected, sending described network failure notification message by the frequency preset to described sip terminal within the default time period.
5. the method as described in claim 3 or 4, it is characterised in that include error identification in described network failure notification message.
6. a service server, it is characterised in that including:
State is new module more, and during for the User Status change in the user list that sip terminal is corresponding being detected, transmission state more new information surpasses to described sip terminal; It is additionally operable to receive after the SIP of described sip terminal fault notification message feedback Network Based subscribes to message, the current state information of user each in user list corresponding for described sip terminal is sent to described sip terminal;
Detection module, is used for detecting described state updates to disappear whether send time-out, as transmission time-out detected, sends time-out notification to failure message sending module;
Fault warning module, after being used for receiving described time-out notification, sends network failure notification message by preset rules to described sip terminal.
7. a sip terminal, it is characterised in that including:
Session management module: during for receiving network failure notification message that service server sends by preset rules, resends SIP subscription message to described service server;
State is new module more: subscribe in the user list corresponding to described sip terminal of message feedback after each user's current state information based on described SIP for receiving described service server, according to the current state of each user in the user list of its correspondence of information updating received.
8. a User Status updates system, it is characterised in that including service server as claimed in claim 6 and multiple sip terminal as claimed in claim 7, described sip terminal is connected with described service server respectively.
9. system as claimed in claim 8, it is characterised in that described preset rules for when described status message time-out being detected, sending described network failure notification message by the frequency preset to described sip terminal within the default time period.
10. system as claimed in claim 8 or 9, it is characterised in that described service server and described sip terminal also include Session Initiation Protocol stack respectively; Described service server sends state more new information to sip terminal by it Session Initiation Protocol stack included; Described sip terminal receives and parses through the network failure notification message from service server by it Session Initiation Protocol stack included, and resends SIP subscription message to described service server by it Session Initiation Protocol stack included.
CN201110336590.1A 2011-10-31 2011-10-31 User Status update method, system and service server, sip terminal Expired - Fee Related CN103096295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110336590.1A CN103096295B (en) 2011-10-31 2011-10-31 User Status update method, system and service server, sip terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110336590.1A CN103096295B (en) 2011-10-31 2011-10-31 User Status update method, system and service server, sip terminal

Publications (2)

Publication Number Publication Date
CN103096295A CN103096295A (en) 2013-05-08
CN103096295B true CN103096295B (en) 2016-06-01

Family

ID=48208319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110336590.1A Expired - Fee Related CN103096295B (en) 2011-10-31 2011-10-31 User Status update method, system and service server, sip terminal

Country Status (1)

Country Link
CN (1) CN103096295B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348662B (en) * 2013-08-09 2019-01-29 中兴通讯股份有限公司 A kind of update method and device of equipment state
CN106303612A (en) * 2015-06-26 2017-01-04 中兴通讯股份有限公司 A kind of IPTV user data update Notification Method and system
CN110768816B (en) * 2018-07-27 2022-04-15 成都鼎桥通信技术有限公司 Multimedia service exception protection method and device
CN110895521A (en) * 2019-11-07 2020-03-20 浪潮电子信息产业股份有限公司 OSD and MON connection method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101681329A (en) * 2007-03-29 2010-03-24 三星电子株式会社 System and method for the solicitation of presence information from presence source

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7707286B2 (en) * 2006-05-11 2010-04-27 Sonim Technologies, Inc. Methods for managing presence information in a real-time communications network
WO2009037735A1 (en) * 2007-09-18 2009-03-26 Fujitsu Limited Communication method, communication system, server and program relevant to session management transfer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101681329A (en) * 2007-03-29 2010-03-24 三星电子株式会社 System and method for the solicitation of presence information from presence source

Also Published As

Publication number Publication date
CN103096295A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
US9712632B2 (en) Method for receiving data, method for sending data, mobile terminal, and server
EP1884101B1 (en) Method and system for the remote management of a machine via ip links of an ip multimedia subsystem, ims
EP2775755B1 (en) Acquiring an online state of a terminal
CN101056194B (en) A SNMP message transfer method and device
CN101909325B (en) Monitoring system and monitoring method of mobile terminal
CN103179270B (en) Mobile phone power-off or exceed the reminding method of service area in call
CN103096295B (en) User Status update method, system and service server, sip terminal
CN106993043B (en) Data communication system and method based on agency
CN103312528A (en) Heartbeat message sending method and user terminal
EP2698948A1 (en) Method and device for determining failure elimination based on oam protocol
CN105517031B (en) The method and device of business recovery after PCRF failure
CN103685166A (en) Method and device for switching between main server and standby server for session initiation protocol terminal
WO2012088907A1 (en) Ip multimedia subsystem and method thereof for restoring user subscription relationship
CN101997850B (en) Call management method and device for IP (Internet Protocol) multimedia subsystem
JP2007331849A (en) Emergency call device for elevator
CN103685163A (en) Disaster-tolerant method, system and device in IMS network
CN110809262B (en) COAP protocol-based operation and maintenance management method for Internet of things equipment
CN101888610A (en) Method, system and device for realizing short message service
CN102523561B (en) Mobile phone, group management system and group management method
CN106851031B (en) Object communication condition detection method and its system in a kind of communication process
CN103001822A (en) Network anomaly handling method and device
CN103096253A (en) System and method preventing incoming call request or message request from being lost
CN106549901A (en) A kind of service trigger method and device
CN101374282B (en) Method and apparatus for displaying different states of wireless one-key-through user in different groups
CN109040286B (en) Client online state maintenance method based on memory database

Legal Events

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

Granted publication date: 20160601

Termination date: 20191031

CF01 Termination of patent right due to non-payment of annual fee