CN101355442B - Display server and method for migrating state of subscribe status machine - Google Patents

Display server and method for migrating state of subscribe status machine Download PDF

Info

Publication number
CN101355442B
CN101355442B CN2007101297231A CN200710129723A CN101355442B CN 101355442 B CN101355442 B CN 101355442B CN 2007101297231 A CN2007101297231 A CN 2007101297231A CN 200710129723 A CN200710129723 A CN 200710129723A CN 101355442 B CN101355442 B CN 101355442B
Authority
CN
China
Prior art keywords
subscription
notification message
status machine
subscription status
state
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
Application number
CN2007101297231A
Other languages
Chinese (zh)
Other versions
CN101355442A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2007101297231A priority Critical patent/CN101355442B/en
Publication of CN101355442A publication Critical patent/CN101355442A/en
Application granted granted Critical
Publication of CN101355442B publication Critical patent/CN101355442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a method for transferring the state of a subscription state machine of a presentation server, which is to solve the problem that the state machine of the presentation server of the prior art has poor processing capacity. The method disclosed by the embodiment of the invention comprises the following steps: the presentation server receives a subscription request of an observation body to the presentation information of a presentation body; the subscription state machine of the observation body to the presentation body is established; a notification message is sent to the observation body; when the response of the observation body to the notification message is abnormal, the presentation server produces an abnormal error event, the subscription state machine of the presentation server carries out state transferring according to the abnormal error event. When the response is abnormal, the subscription state machine carries out the state transferring according to the abnormal error event so that the processing capacity of the subscription state machine is promoted.

Description

The method of a kind of presence server and the state transition of subscription status machine thereof
Technical field
The invention belongs to the presentation information field, the method for particularly a kind of presence server and the state transition of subscription status machine thereof.
Background technology
Presenting business is a kind of communication service of collecting and issuing Presence (presenting) information, and this has clear and definite description in standard RFC3265, RFC3856, RFC3857.When PS (presence server, PresenceServer) receive the presence information subscribe request of Watcher (observation body) after, will set up a subscription status machine, be used to represent the various states of whole subscription procedure.PS will make the judgement of whether accepting to subscribe to according to the authorization rule of Presentity (presenting body).If Presentity spells out the subscription of accepting this Watcher in authorization rule, the presence information of Watcher is subscribed to and will be accepted so, and the state transition of subscription status machine is to subscribing to the state that is accepted; If Presentity spells out the subscription of this Watcher of refusal in authorization rule, this subscription will be rejected so, and the state transition of subscription status machine is to subscribing to done state; If Presentity does not spell out the subscription that refusal is still accepted this Watcher in authorization rule, subscription status machine state will be moved to pending status so.If subscription status machine state is in pending status, and revised authorization rule after the Presentity, the feasible explanation that has had clear and definite refusal still to accept at the subscription of this Watcher, this subscription this moment will be accepted or refuse so.
State machine moves by a series of incidents of response (present Event origin has 3 kinds: 1, Watcher subscribe request 2, Presentity expire to modification 3, the PS timer of rule), promptly realizes state transition.Initiate the request of cancelling subscriptions as Watcher, PS receives the request of cancelling subscriptions that Watcher sends, and the subscription status machine correspondence of PS is received timeout (overtime) incident, and the subscription done state is arrived in state transition.
The state of subscription status machine is represented by state diagram in the prior art, as shown in Figure 1, and important state description following (more detailed description please refer to RFC document original text):
Init: subscribe to initial state
Pending: subscribe to and authorize pending status.When presentity does not have clearly to describe in the authorization rule at oneself to this Watcher is that PS is changed to this state with the subscription of Watcher when allowing subscription or refusal to subscribe to.
Active: subscribe to the state that is accepted.
Terminated: subscribe to done state.
Can see, state machine is by a series of incident of response, as: noresource (not having resource), rejected (refusal), deactivated (deexcitation), probation (delaying), giveup incidents such as (abandoning) and move, realize state transition, the state transition route that presence information is subscribed to can be:
1)init->terminated
2)init->active->terminated
3)init->pending->terminated
4)init->pending->active->terminated
5)init->pending->waiting->terminated
After PS receives the initial subscribe request of Watcher, create a subscription status machine that state is the init state, according to the authorization rule and the subscription term of validity of Presentity, the state of subscription status machine is finally moved to the terminated state from the init state through the one or many state exchange.If Presentity spells out the subscription of this Watcher of refusal in authorization rule, then the state transition of subscription status machine is to the terminal state.If Presentity does not spell out the subscription that this Watcher is still refused in reception in authorization rule, then the pending state is arrived in the state transition of subscription status machine, and sends the notification message of the true presence information that does not comprise Presentity to Watcher.If Presentity spells out the subscription of accepting this Watcher in authorization rule, then the state transition of subscription status machine is to the active state, and sending the notification message of the presence information comprise Presentity to Watcher, Watcher responds this notification message after receiving this notification message.But, in realizing process of the present invention, the inventor finds: if the network of Watcher and PS breaks down or the Watcher failure and other reasons, Watcher will can not receive this notification message, PS can not receive the response of Watcher to this notification message yet, can not handle accordingly this abnormal conditions PS state machine, can not realize the state transition of subscription status machine yet.
As seen in the prior art, the reason because the network of Watcher and PS breaks down etc., when causing Watcher to the response abnormality of the notification message of PS, PS state machine disposal ability is poor.
Summary of the invention
In order to solve because the network of Watcher and PS breaks down etc. reason, when causing Watcher to the response abnormality of the notification message of PS, the problem of PS state machine disposal ability difference, the embodiment of the invention provide the method for presence server subscription status machine state transition, comprising:
Presence server receive to be observed the subscribe request of body to the presentation information that presents body;
Set up described observation body to the described subscription status machine that presents body;
Send a notification message to described observation body;
When described observation body during to the response abnormality of described notification message, the subscription status machine carries out state transition.
The embodiment of the invention also provides a kind of presence server simultaneously, comprising:
Receiver module: be used for presence server and receive observe the subscribe request of body to the presentation information that presents body;
State machine is set up module: be used to set up described observation body to the described subscription status machine that presents body;
Sending module: be used for sending a notification message to described observation body;
Transferring module: be used for when described observation body during to the response abnormality of described notification message, the subscription status machine carries out state transition.
The specific embodiments that provides by the invention described above as can be seen because when observing body to the response abnormality of notification message, the subscription status machine can carry out the reason of state transition, has obtained the technique effect that subscription status machine disposal ability promotes.
Description of drawings
Fig. 1 is the state diagram of prior art state machine;
State diagram after the state machine that Fig. 2 provides for the embodiment of the invention is expanded;
The method flow diagram that Fig. 3 provides for first embodiment of the invention;
The presence server structure chart that Fig. 4 provides for second embodiment of the invention.
Embodiment
The embodiment of the invention is expanded state machine.State diagram after the expansion as shown in Figure 2, when subscription was in active state or pending state, if after PS sends to corresponding Watcher notification message, as Watcher during to this notification message response abnormality, the subscription status machine carried out state transition.Concrete, as Watcher during to this notification message response abnormality, PS produces error (exception error) incident, the subscription status machine carries out state transition according to the error incident, preferably, the migration of subscription status machine is the terminated state, and the notification message that the subscription of Watcher has finished is represented in transmission to Presentity.
First embodiment provided by the invention is the method for a kind of presence server subscription status machine state transition, supposes that Presentity points out to accept the subscription of Watcher in authorization rule, and as shown in Figure 3, method flow comprises:
Step 101:Watcher is to the presence information of PS subscription Presentity, and presence server receives the subscribe request of Watcher to the presence information of Presentity.
Step 102: set up the subscription status machine of Watcher to Presentity, the state transition of subscription status machine is to the active state.
Step 103: under the active state, PS sends the notification message of the presence information of Presentity to Watcher.
Step 104:Watcher responds this notification message.
Step 105:PS sends Watcher to Presentity and subscribes to successful notice.
Step 106: when the presence information of Presentity changed, Presentity sent new presence information to PS.
Step 107:PS is to the notification message of the new presence information of Watcher transmission Presentity, and Watcher responds this notification message.
Step 108: if the network of Watcher and PS breaks down or the Watcher fault, PS does not receive that Watcher is to the response of this notification message or receive errored response, PS generation error incident.
The subscription status machine of step 109:PS is according to the error incident, and subscription status machine state moves, and as preferred scheme, subscription status machine state is moved to the terminate state by active.
By above-mentioned steps, when the network of Watcher and PS broke down, the state transition of subscription status machine was to the terminate state, and PS subscription status machine disposal ability is improved.
For further solution, when the network between Watcher and the PS breaks down or during overtime situation, Presentity can not in time learn the problem of this situation, further optimizes technique scheme, increases step 110.
Step 110:PS sends a notification message to Presentity, informs that the state of Watcher is moved to the terminated state because sending mistake.
Send notice by PS to Presentity, when the network between Watcher and the PS breaks down or during overtime situation, makes Presentity can in time learn this situation.
For further solution, when the network between Watcher and the PS breaks down or during overtime situation, PS can not finish the relevant subscription status machine of subscription of this Watcher, the occupied problem of the resource of system timely.Further optimize technique scheme, increase step 111.
Step 111:Presentity sends notice to PS and responds, after receiving the response that Presentity sends, and PS destroy state machine.
By PS destroy state machine, reduced system resource and taken.
Below only be a preferred version of present embodiment, in step 106, the presence information of Presentity changes, a reason that just causes step 107PS to send a notification message to Watcher.The subscription rules of Presentity changes and waits other reason, also can cause PS to send a notification message to Watcher.
In step 104, if the network of Watcher and PS breaks down or the Watcher fault, PS does not receive Watcher to the response of this notification message or receive errored response, and same PS produces the error incident, and the subscription status machine carries out state transition according to described error incident.
After subscription status machine state is moved to the terminate state by active, also can first destroy state machine in order to save system resource, PS sends notice to Presentity more afterwards, informs that the state of Watcher is moved to the terminated state because sending mistake.
After the state machine expansion, when PS does not spell out the subscription that refusal is still accepted this Watcher in authorization rule, when subscription is in the pending state, also adopt the treatment step similar to above-mentioned steps, the subscription status machine can just repeat no more here by pending state transition to waiting state, active state or terminated state.
Second embodiment provided by the invention is a kind of presence server, and its structure comprises as shown in Figure 4:
Receiver module 201: be used for presence server and receive observe the subscribe request of body to the presentation information that presents body;
State machine is set up module 202: be used to set up and observe body to presenting the subscription status machine of body;
Sending module 203: be used for sending a notification message to observing body;
Transferring module 204: be used for when observing body to the response abnormality of notification message, the subscription status machine carries out state transition.
Further transferring module 204 also comprises:
Migration submodule 205: be used for when described observation body during described notification message response abnormality, described presence server generation exception error incident, described subscription status machine carries out state transition according to described exception error incident.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the method for presence server subscription status machine state transition is characterized in that, comprising:
Presence server receive to be observed the subscribe request of body to the presentation information that presents body;
Set up described observation body to the described subscription status machine that presents body;
Send a notification message to described observation body;
When the network of observing body and presence server breaks down or observes the body fault, described observation body is during to the response abnormality of described notification message, and described subscription status machine carries out state transition.
2. the method for claim 1 is characterized in that, when described observation body during to described notification message response abnormality, described presence server produces the exception error incident, and described subscription status machine carries out state transition according to described exception error incident.
3. method as claimed in claim 2 is characterized in that, described subscription status machine arrives the subscription done state according to described exception error incident with state transition.
4. method as claimed in claim 3 is characterized in that,
Set up described observation body to the described subscription status machine that presents body after, the subscription status machine is moved to the state that is accepted of subscribing to;
Under subscription is accepted state, send a notification message to observing body;
When described observation body during to the response abnormality of described notification message, the subscription status machine is accepted state transition to subscribing to done state by subscription.
5. method as claimed in claim 3 is characterized in that,
Set up described observation body to the described subscription status machine that presents body after, the subscription status machine is moved to the mandate pending status;
Authorizing under the pending status, sending a notification message to observing body;
When described observation body during to the response abnormality of described notification message, the subscription status machine is by authorizing pending status to move to the subscription done state.
6. as any described method of claim of claim 3 to 5, it is characterized in that described subscription status machine also comprises state transition according to described exception error incident after the step of subscribing to done state:
Send to observe the notification message that the subscription of body has finished to the described body that presents.
7. method as claimed in claim 6 is characterized in that, described subscription status machine also comprises state transition after the step of subscribing to done state according to described exception error incident:
Destroy described subscription status machine.
8. as any described method of claim of claim 1 to 5, it is characterized in that described observation body comprises that to the response abnormality of described notification message described presence server receives that described observation body is to the errored response of described notification message or do not receive the response of described observation body to described notification message.
9. a presence server is characterized in that, comprising:
Receiver module: be used for presence server and receive observe the subscribe request of body to the presentation information that presents body;
State machine is set up module: be used to set up described observation body to the described subscription status machine that presents body;
Sending module: be used for sending a notification message to described observation body;
Transferring module: be used for breaking down or observing the body fault when the network of observing body and presence server, described observation body is during to the response abnormality of described notification message, and described subscription status machine carries out state transition.
10. as presence server as described in the claim 9, it is characterized in that transferring module also comprises:
Module is given in migration: is used for when described observation body during described notification message response abnormality, and described presence server generation exception error incident, described subscription status machine carries out state transition according to described exception error incident.
CN2007101297231A 2007-07-24 2007-07-24 Display server and method for migrating state of subscribe status machine Active CN101355442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101297231A CN101355442B (en) 2007-07-24 2007-07-24 Display server and method for migrating state of subscribe status machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101297231A CN101355442B (en) 2007-07-24 2007-07-24 Display server and method for migrating state of subscribe status machine

Publications (2)

Publication Number Publication Date
CN101355442A CN101355442A (en) 2009-01-28
CN101355442B true CN101355442B (en) 2011-07-06

Family

ID=40308050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101297231A Active CN101355442B (en) 2007-07-24 2007-07-24 Display server and method for migrating state of subscribe status machine

Country Status (1)

Country Link
CN (1) CN101355442B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546554B (en) * 2010-12-27 2015-01-28 中兴通讯股份有限公司 IP (Internet Protocol) multimedia subsystem and method thereof for recovering user subscription relationship

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427581A (en) * 2001-12-17 2003-07-02 阿尔卡塔尔加拿大公司 System and method for detecting failure and route reconnection in communication network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427581A (en) * 2001-12-17 2003-07-02 阿尔卡塔尔加拿大公司 System and method for detecting failure and route reconnection in communication network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
J.Rosenberg.A Presence Event Package for the Session Initiation Protocol(SIP).《RFC3856》.2004,第4-5页. *
J.Rosenberg.A Watcher Information Event Template-Package for the Session Initiation Protocol(SIP).《RFC3857》.2004,第8-11页. *

Also Published As

Publication number Publication date
CN101355442A (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN1732667B (en) Transmission of application information and commands using presence technology
EP1560395A1 (en) System and method for session reestablishment between client terminal and server
EP2713641A1 (en) Method for receiving data, method for transmitting data, mobile terminal, and server
WO2007007962A1 (en) Messenger notification system and method using synchronization server
US10230807B2 (en) Method and apparatus for energy-optimized data transmission using the OPC UA protocol in radio networks
CN104348697B (en) The processing method of video communication information, apparatus and system
CN106936896B (en) The data transferring method and device of Kafka cluster
CN102244858A (en) Method for mobile terminal to possess communication function of locking and unlocking, and mobile terminal thereof
US20080049691A1 (en) Database management in a wireless communication system
CN101047880B (en) Message transmission method and system
CN101355442B (en) Display server and method for migrating state of subscribe status machine
CN103001822B (en) The processing method of Network Abnormal and device
EP1751944B1 (en) Method for handling communications over a non-permanent communication link
CN100466518C (en) Communication apparatus and communication method
CN101325563B (en) Unfolding interlinkage gateway and interlinkage method
CN103096295B (en) User Status update method, system and service server, sip terminal
CN101547213B (en) Method for realizing presence service and interconnecting gateway
CN108093395A (en) The method, apparatus and system that a kind of registration of terminal is subscribed to
CN101765152B (en) Method for base stations under same routing area to share tunnel resources
KR20050100550A (en) System and method of interworking message between mobile communication terminals
KR101407597B1 (en) System and method for providing push service
CN101150443A (en) Processing method for telecommunication network management message
CN101321318A (en) Multimedia message center system and method for printing call list
CN100395990C (en) Method of authorization and license for devices
CN114125021A (en) Terminal information issuing system based on Netty message drive

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