CN107453979B - Communication method and presence server - Google Patents

Communication method and presence server Download PDF

Info

Publication number
CN107453979B
CN107453979B CN201710619028.7A CN201710619028A CN107453979B CN 107453979 B CN107453979 B CN 107453979B CN 201710619028 A CN201710619028 A CN 201710619028A CN 107453979 B CN107453979 B CN 107453979B
Authority
CN
China
Prior art keywords
user
state
authorized
user client
change
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
CN201710619028.7A
Other languages
Chinese (zh)
Other versions
CN107453979A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201710619028.7A priority Critical patent/CN107453979B/en
Publication of CN107453979A publication Critical patent/CN107453979A/en
Application granted granted Critical
Publication of CN107453979B publication Critical patent/CN107453979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/56Unified messaging, e.g. interactions between e-mail, instant messaging or converged IP messaging [CPM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a communication method and a presence server, wherein the method comprises the following steps: receiving a state change request sent by a first user client, wherein the state change request carries an identifier of a first user, a change state set by the user and a change time period; according to the state change request, obtaining an authorized friend list of the first user from a resource list server, wherein the authorized friend list comprises an identifier of an authorized second user; and sending a first state change instruction to the second user client, wherein the first state change instruction carries the identifier of the first user, the change state set by the user and the change time period, so that the second user client changes the state of the first user according to the first state change instruction and the change time period, and communicates with the first user according to the changed state. The optimal communication mode can be quickly determined, convenience is brought to communication of the user, and communication experience of the user is improved.

Description

Communication method and presence server
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a communication method and a presence server.
Background
With the rapid development of the mobile internet, the communication between people not only adopts the modes of making a call and sending a short message, but also the instant application software is widely applied. In various communication modes, a user can know the communication state of the user in a mode of making a call, sending a short message and checking instant chat application software. If the user is in the off state, the unavailable state and the call state, the user can be known in a calling mode. The user is informed of the idle state, the do not disturb state and the like through the instant chat application software.
In the face of various communication modes, a communication initiating user can only acquire the state of a communication receiving user in a one-to-one trial mode, and the communication receiving user can only know the situation after sending a short message or a short message to the communication initiating user when the communication initiating user is inconvenient to answer a call and only wants to know important information in a short message or short message receiving mode.
Disclosure of Invention
The embodiment of the invention provides a communication method and a presentation server, and solves the technical problems that the communication method in the prior art brings inconvenience to user communication, cannot quickly determine an optimal communication mode, and reduces the communication experience of a user.
The embodiment of the invention provides a communication method, which comprises the following steps:
receiving a state change request sent by a first user client, wherein the state change request carries an identifier of a first user, a change state set by the user and a change time period;
according to the state change request, obtaining an authorized friend list of the first user from a resource list server, wherein the authorized friend list comprises an identifier of an authorized second user;
and sending a first state change instruction to a second user client, wherein the first state change instruction carries the identification of the first user, the change state set by the user and a change time period, so that the second user client changes the state of the first user according to the change time period according to the first state change instruction and communicates with the first user according to the changed state.
An embodiment of the present invention provides a presence server, including:
the receiving module is used for receiving a state change request sent by a first user client, wherein the state change request carries an identifier of a first user, a change state set by the user and a change time period;
an obtaining module, configured to obtain, according to the state change request, an authorized buddy list of the first user from a resource list server, where the authorized buddy list includes an identifier of an authorized second user;
the sending module is used for sending a first state change instruction to a second user client, wherein the first state change instruction carries an identifier of a first user, a change state set by the user and a change time period, so that the second user client changes the state of the first user according to the change time period according to the first state change instruction and communicates with the first user according to the changed state.
The embodiment of the invention provides a communication method and a presentation server, wherein a state change request sent by a first user client is received, and the state change request carries an identifier of a first user, a change state set by the user and a change time period; according to the state change request, obtaining an authorized friend list of the first user from a resource list server, wherein the authorized friend list comprises an identifier of an authorized second user; and sending a first state change instruction to the second user client, wherein the first state change instruction carries the identifier of the first user, the change state set by the user and the change time period, so that the second user client changes the state of the first user according to the first state change instruction and the change time period, and communicates with the first user according to the changed state. The user can inform or change the state of the authorized friend according to the self requirement so that the authorized friend can acquire the user state in real time, the optimal communication mode corresponding to the user state is selected to communicate with the user, the optimal communication mode can be determined quickly, convenience is brought to user communication, and the communication experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a first embodiment of a communication method of the present invention;
FIG. 2 is a flowchart of a second embodiment of a communication method of the present invention;
FIG. 3 is a schematic structural diagram of a presence server according to a first embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second embodiment of the presence server according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Fig. 1 is a flowchart of a first embodiment of a communication method according to the present invention, and as shown in fig. 1, an execution main body of the embodiment is a communication device, which can be integrated in a server and communicate with a client in a first user mobile terminal, a client in a second user mobile terminal, and a resource list server, the communication method provided in the embodiment includes the following steps.
Step 101, receiving a state change request sent by a first user client, where the state change request carries an identifier of a first user, a change state set by the user, and a change time period.
In this embodiment, the first user is a user who needs to change the state of the first user, and the first user may set the state through a client in the mobile terminal, where the state that the user can set may be: short message only reachable state, instant chat application software only reachable state, do not disturb state, etc., wherein the instant application software can be WeChat, QQ, Paibao, etc. The change status set by the user in the status change request may be: short message only reachable state, instant chat application software only reachable state, do not disturb state, etc.
The identifier of the first user may be information that uniquely represents the first user, such as a real name of the first user, a mobile terminal number of the first user, and a mailbox.
In this embodiment, the first user may set not only the changed state but also a change time period for changing the state through the client, so that the change time period is carried in the state change request, and the change time period includes: the starting time and the ending time of the state are changed, the changing time period can also be a default time period, the default time period can be one or more hours, the starting time is the current time, and the ending time is one or more hours from the current time.
And step 102, acquiring an authorized friend list of the first user from the resource list server according to the state change request, wherein the authorized friend list comprises an authorized second user identifier.
The resource list server is used for managing the authorized friend lists. The resource list server supports the user to subscribe the state information of the authorized friend and supports the user to use the authorized friend list to authorize the friend to check the state information of the user.
Specifically, in this embodiment, the presence server communicates with the resource list according to the state change request to obtain an authorized buddy list of the first user, where the authorized buddy list includes all the buddy information authorized by the first user. In this embodiment, the second user is a friend authorized by the first user, so that the information in the authorized friend list includes identification information of the second user, and the identification information of the second user may be information uniquely representing the second user, such as a real name of the second user, a mobile terminal number of the second user, and a mailbox.
And 103, sending a first state change instruction to the second user client, wherein the first state change instruction carries the identifier of the first user, the change state set by the user and the change time period, so that the second user client changes the state of the first user according to the first state change instruction and the change time period and communicates with the first user according to the changed state.
Specifically, in this embodiment, after obtaining the authorized buddy list of the first user, the presence server sends a first state change instruction to all the second user clients in the authorized buddy list, and after receiving the first state change instruction, the second user clients change the state of the first user according to a change time period in the first state change instruction, and if the second user clients communicate with the first user in the change time period, communicate with the first user in a communication manner corresponding to the changed state, where the communication manner corresponding to the changed state is an optimal communication manner for the change time period. And if the changed state is the short message reachable state, the corresponding optimal communication mode is the short message. If the changed state is a do not disturb state, the corresponding best communication mode is a short message or instant chat application software.
In this embodiment, both the first user client and the second user client include an enhanced address book, where the enhanced address book includes all contact ways of all authorized friends and can display the status of each authorized friend in real time, so that when users communicate with each other, the best communication way is selected according to the status presented by the enhanced address book for communication.
In the communication method provided by this embodiment, a state change request sent by a first user client is received, where the state change request carries an identifier of a first user, a change state set by the user, and a change time period; according to the state change request, obtaining an authorized friend list of the first user from a resource list server, wherein the authorized friend list comprises an identifier of an authorized second user; and sending a first state change instruction to the second user client, wherein the first state change instruction carries the identifier of the first user, the change state set by the user and the change time period, so that the second user client changes the state of the first user according to the first state change instruction and the change time period, and communicates with the first user according to the changed state. The user can inform or change the state of the authorized friend according to the self requirement so that the authorized friend can acquire the user state in real time, the optimal communication mode corresponding to the user state is selected to communicate with the user, the optimal communication mode can be determined quickly, convenience is brought to user communication, and the communication experience of the user is improved.
Fig. 2 is a flowchart of a second communication method embodiment of the present invention, and as shown in fig. 2, the communication method provided in this embodiment further includes a step of obtaining a current state of the first user mobile terminal from the mobile core network and changing the user state, and includes a step of adding or deleting an authorized buddy, on the basis of the first communication method embodiment of the present invention, and then the communication method provided in this embodiment includes the following steps.
Step 201, determining whether an authorized friend adding request sent by a first user client is received, if yes, executing step 202, otherwise, executing step 206.
Further, in this embodiment, if the first user wants to add a new user as an authorized friend, an authorized friend addition request is sent to the presence server through the first user client, and the presence server receives the authorized friend addition request.
In this embodiment, the second user is an authorized friend that needs to be added.
Step 202, sending an authorized friend adding request to the second user client, and receiving an authorized friend adding response sent by the second user client.
Further, in this embodiment, an authorized friend adding request is sent to the second user client, after receiving the authorized friend adding request, the second user client sends a response of agreeing to add the authorized friend if the authorized friend of the first user is agreed to be added, and sends a response of refusing to add the authorized friend if the authorized friend of the first user is not agreed to be added.
Step 203, determining whether the authorized friend adding response is a response of agreeing to add the authorized friend, if yes, executing step 204, otherwise, executing step 205.
Step 204, sending an authorized friend adding instruction to the resource list server, so that the resource list server executes an adding operation according to the authorized friend adding instruction, receives an authorized friend adding success message sent by the resource list server, and sends an authorized friend adding success message to the first user client and the second user client.
Step 205, sending an authorized friend adding failure message to the first user client and the second user client.
The description is made in conjunction with steps 203-205. Further, in this embodiment, if the authorized buddy adding response is a response agreeing to add an authorized buddy, an authorized buddy adding instruction is sent to the resource list server, where the authorized buddy adding instruction carries the first user identifier and the second user identifier, so that the resource list server adds the identifier of the second user to the authorized buddy list of the first user, adds the identifier of the first user to the authorized buddy list of the second user, and after the addition is completed, the presence server receives an authorized buddy adding success message sent by the resource list server, and then sends an authorized buddy adding success message to the first user client and the second user client, so that the first user and the second user know that the other party is successfully added as an authorized buddy. And if the authorized friend adding response is the response of refusing to add the authorized friend, sending an authorized friend adding failure message to the first user client and the second user client so that the first user knows that the second user refuses to add the authorized friend and the second user knows that the first user is successfully refused to add the authorized friend.
Step 206, determining whether an authorized friend deletion request sent by the first user client is received, if yes, executing step 207, otherwise, executing step 208.
Step 207, sending an authorized friend deleting instruction to the resource list server, so that the resource list server executes deleting operation according to the authorized friend deleting instruction, receives an authorized friend deleting success message sent by the resource list server, and sends an authorized friend deleting success message to the first user client and the second user client.
The description is made in conjunction with steps 206-207. Further, in this embodiment, if an authorized friend deletion request sent by a first user client is received, the authorized friend deletion request is sent to a resource list server, the resource list server deletes information of a second user from an authorized friend list of the first user and deletes information of the first user from an authorized friend list of the second user according to an identifier of the first user and an identifier of a deleted second user carried in the authorized friend deletion request, and after the deletion operation is completed, an authorized friend deletion success message is sent to a presence server, and the presence server sends the authorized friend deletion success message to the first user client and the second user client, so that the first user and the second user know that the other party is an authorized friend after being successfully deleted.
And step 208, receiving a state change request sent by the first user client, wherein the state change request carries the identifier of the first user, the change state set by the user and the change time period.
Further, in this embodiment, the change status set by the user includes: a short message only reachable state or a do not disturb state.
Step 209, according to the state change request, obtaining an authorized buddy list of the first user from the resource list server, where the authorized buddy list includes an identifier of an authorized second user.
Step 210, sending a first state change instruction to the second user client, where the first state change instruction carries the identifier of the first user, the change state set by the user, and the change time period, so that the second user client changes the state of the first user according to the first state change instruction and the change time period, and communicates with the first user according to the changed state.
In this embodiment, the implementation manners of steps 209 to 210 are the same as the implementation manners of steps 102 to 103 in the first embodiment of the communication method of the present invention, and are not described in detail here.
Step 211, determining whether the time of the time period is up to the end time of the time period, if yes, executing step 212, otherwise, ending.
Step 212, determining the current state of the first user mobile terminal according to the current call state instruction of the first user mobile terminal sent by the mobile core network, and sending a second state change instruction to the second user client, where the second state change instruction carries the identifier and the current state of the first user, so that the second user client changes the state of the first user according to the second state change instruction and communicates with the first user according to the changed state.
The mobile core network monitors the state of the first user mobile terminal, and sends a call state instruction to the presence server according to the state of the first user mobile terminal, and the presence server acquires the current call state instruction sent by the mobile core network to determine the current state of the first user mobile terminal. If the current call state instruction sent by the mobile core network is a power-on instruction or a call ending instruction, determining that the current state of the first user mobile terminal is an idle state, if the current call state instruction sent by the mobile core network is a power-off instruction, determining that the current state of the first user mobile terminal is a power-off state, if the current call state instruction sent by the mobile core network is a call starting instruction, determining that the current state of the first user mobile terminal is a call state, and if the current call state instruction sent by the mobile core network is a call unavailable instruction, determining that the current state of the first user mobile terminal is a call unavailable state.
Therefore, the current state of the first user mobile terminal includes any one of the following states: a power off state, a call state, and an idle state.
Further, in this embodiment, the state change request received by the presence server carries a change time period, and determines whether the end time of the change time period is reached through a timer, and if the end time of the change time period is reached, determines the current state of the first user mobile terminal according to a current call state instruction of the first user mobile terminal sent by the mobile core network, and sends a second state change instruction to the second user client, and the second user client changes the state of the first user to the current state according to the identifier of the first user and the current state carried in the second state change instruction, so that the second user communicates with the first user according to a communication method corresponding to the changed state when needing to communicate with the first user.
It should be noted that, in this embodiment, the execution sequence between step 201 to step 205, step 206 to step 207, and step 208 to step 211 is not strictly limited in time. Namely, there is no strict time limit between the step that the presence server receives the authorized friend adding request sent by the first user client to add the authorized friend, the step that the presence server receives the authorized friend deleting request sent by the first user client to delete the authorized friend, and the step that the presence server receives the state changing request sent by the first user client to change the state.
The communication method provided by this embodiment provides a method for adding or deleting an opposite party as an authorized friend among users, so that adding and deleting the opposite party as the authorized friend are more convenient, and after the termination time of a change time period is reached, the current state of the first user mobile terminal can be determined according to a current call state instruction of the first user mobile terminal sent by a mobile core network, and a second state change instruction is sent to the second user client, where the second state change instruction carries an identifier of the first user and the current state, so that the second user client changes the state of the first user according to the second state change instruction, and communicates with the first user according to the changed state, so that the selectivity of communication modes among users is increased, more convenience is brought to user communication, and the communication experience of the users is further improved.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 3 is a schematic structural diagram of a presence server according to a first embodiment of the present invention, and as shown in fig. 3, the presence server provided in this embodiment includes: a receiving module 31, an obtaining module 32 and a sending module 33.
The receiving module 31 is configured to receive a status change request sent by a first user client, where the status change request carries an identifier of a first user, a change status set by the user, and a change time period. The obtaining module 32 is configured to obtain, according to the state change request, an authorized buddy list of the first user from the resource list server, where the authorized buddy list includes an identifier of an authorized second user. The sending module 33 is configured to send a first state change instruction to the second user client, where the first state change instruction carries an identifier of the first user, a change state set by the user, and a change time period, so that the second user client changes the state of the first user according to the change time period according to the first state change instruction, and communicates with the first user according to the changed state.
The presence server provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic structural diagram of a second embodiment of the presence server of the present invention, and as shown in fig. 4, the presence server provided in this embodiment further includes, on the basis of the first embodiment of the presence server of the present invention: a judgment module 41 and a determination module 42.
Further, in this embodiment, the change status set by the user includes: only the short message can reach the state or do not disturb the state; the current state of the first user mobile terminal comprises any one of the following states: a power off state, a call state, and an idle state.
Further, the determining module 41 is configured to determine whether the ending time of the change time period is reached. The determining module 42 is configured to determine a current state of the first user mobile terminal according to a current call state instruction of the first user mobile terminal sent by the mobile core network if the termination time of the change time period is reached. The sending module 33 is further configured to send a second state change instruction to the second user client, where the second state change instruction carries the identifier and the current state of the first user, so that the second user client changes the state of the first user according to the second state change instruction and communicates with the first user according to the changed state.
Further, the receiving module 31 is further configured to receive an authorized friend adding request sent by the first user client, where the authorized friend adding request carries an identifier of the first user and an identifier of the added second user. The sending module 33 is further configured to send an authorized friend adding request to the second user client. The receiving module 31 is further configured to receive an authorized buddy adding response sent by the second user client. The sending module 33 is further configured to send an authorized buddy adding instruction to the resource list server if the authorized buddy adding response is a response agreeing to add an authorized buddy, so that the resource list server executes an adding operation according to the authorized buddy adding instruction. The receiving module 31 is further configured to receive an authorized buddy adding success message sent by the resource list server. The sending module 33 is further configured to send an authorized friend adding success message to the first user client and the second user client.
Further, the receiving module 31 is further configured to receive an authorized friend deletion request sent by the first user client, where the authorized friend deletion request carries an identifier of the first user and an identifier of the deleted second user. The sending module 33 is further configured to send an authorized buddy deleting instruction to the resource list server, so that the resource list server executes a deleting operation according to the authorized buddy deleting instruction. The receiving module 31 is further configured to receive an authorized buddy deletion success message sent by the resource list server. The sending module 33 is further configured to send an authorized friend deletion success message to the first user client and the second user client.
The presence server provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A method of communication, comprising:
receiving a state change request sent by a first user client, wherein the state change request carries an identifier of a first user, a change state set by the user and a change time period;
according to the state change request, obtaining an authorized friend list of the first user from a resource list server, wherein the authorized friend list comprises an identifier of an authorized second user;
sending a first state change instruction to a second user client, wherein the first state change instruction carries an identifier of a first user, a change state set by the user and a change time period, so that the second user client changes the state of the first user according to the change time period according to the first state change instruction and communicates with the first user according to the changed state;
before receiving the state change request sent by the first user client, the method further includes:
receiving an authorized friend adding request sent by a first user client, wherein the authorized friend adding request carries an identifier of a first user and an identifier of an added second user;
sending the authorized friend adding request to the second user client;
receiving an authorized friend adding response sent by a second user client;
if the authorized friend adding response is a response of agreeing to add the authorized friend, sending an authorized friend adding instruction to the resource list server so that the resource list server executes adding operation according to the authorized friend adding instruction;
receiving an authorized friend adding success message sent by the resource list server, and sending the authorized friend adding success message to the first user client and the second user client;
further comprising:
receiving an authorized friend deleting request sent by a first user client, wherein the authorized friend deleting request carries an identifier of a first user and an identifier of a deleted second user;
sending an authorized friend deleting instruction to the resource list server so that the resource list server executes deleting operation according to the authorized friend deleting instruction;
receiving an authorized friend deletion success message sent by the resource list server, and sending the authorized friend deletion success message to the first user client and the second user client;
wherein,
the first user client and the second user client both comprise enhanced address books, the enhanced address books comprise all contact ways of all authorized friends and can display the state of each authorized friend in real time, so that when users communicate with each other, the best communication way is selected according to the states presented by the enhanced address books for communication.
2. The method of claim 1, wherein after sending the first state change instruction to the second user client, further comprising:
judging whether the ending time of the change time period is reached;
if the ending time of the change time period is reached, determining the current state of the first user mobile terminal according to a current call state instruction of the first user mobile terminal sent by a mobile core network;
and sending a second state change instruction to the second user client, wherein the second state change instruction carries the identifier of the first user and the current state, so that the second user client changes the state of the first user according to the second state change instruction and communicates with the first user according to the changed state.
3. The method of claim 2, wherein the changed state set by the user comprises: only the short message can reach the state or do not disturb the state;
the current state of the first user mobile terminal comprises any one of the following states: a power off state, a call state, and an idle state.
4. A presence server, comprising:
the receiving module is used for receiving a state change request sent by a first user client, wherein the state change request carries an identifier of a first user, a change state set by the user and a change time period;
an obtaining module, configured to obtain, according to the state change request, an authorized buddy list of the first user from a resource list server, where the authorized buddy list includes an identifier of an authorized second user;
the sending module is used for sending a first state change instruction to a second user client, wherein the first state change instruction carries an identifier of a first user, a change state set by the user and a change time period, so that the second user client changes the state of the first user according to the change time period according to the first state change instruction and communicates with the first user according to the changed state;
the receiving module is further configured to receive an authorized friend adding request sent by a first user client, where the authorized friend adding request carries an identifier of a first user and an identifier of an added second user;
the sending module is further configured to send the authorized friend adding request to the second user client;
the receiving module is further configured to receive an authorized friend addition response sent by the second user client;
the sending module is further configured to send an authorized buddy adding instruction to the resource list server if the authorized buddy adding response is a response agreeing to add an authorized buddy, so that the resource list server executes an adding operation according to the authorized buddy adding instruction;
the receiving module is further configured to receive an authorized buddy adding success message sent by the resource list server;
the sending module is further configured to send the authorized friend adding success message to the first user client and the second user client;
the receiving module is further configured to receive an authorized friend deletion request sent by a first user client, where the authorized friend deletion request carries an identifier of a first user and an identifier of a deleted second user;
the sending module is further configured to send an authorized friend deletion instruction to the resource list server, so that the resource list server executes a deletion operation according to the authorized friend deletion instruction;
the receiving module is further configured to receive an authorized buddy deletion success message sent by the resource list server;
the sending module is further configured to send the authorized friend deletion success message to the first user client and the second user client;
wherein,
the first user client and the second user client both comprise enhanced address books, the enhanced address books comprise all contact ways of all authorized friends and can display the state of each authorized friend in real time, so that when users communicate with each other, the best communication way is selected according to the states presented by the enhanced address books for communication.
5. The presence server of claim 4, further comprising:
the judging module is used for judging whether the ending time of the change time period is reached or not;
a determining module, configured to determine, if the termination time of the change time period is reached, a current state of the first user mobile terminal according to a current call state instruction of the first user mobile terminal sent by a mobile core network;
the sending module is further configured to send a second state change instruction to the second user client, where the second state change instruction carries the identifier of the first user and the current state, so that the second user client changes the state of the first user according to the second state change instruction, and communicates with the first user according to the changed state.
6. The presence server according to claim 5, wherein the changed state set by the user includes: only the short message can reach the state or do not disturb the state;
the current state of the first user mobile terminal comprises any one of the following states: a power off state, a call state, and an idle state.
CN201710619028.7A 2017-07-26 2017-07-26 Communication method and presence server Active CN107453979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710619028.7A CN107453979B (en) 2017-07-26 2017-07-26 Communication method and presence server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710619028.7A CN107453979B (en) 2017-07-26 2017-07-26 Communication method and presence server

Publications (2)

Publication Number Publication Date
CN107453979A CN107453979A (en) 2017-12-08
CN107453979B true CN107453979B (en) 2020-08-18

Family

ID=60489024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710619028.7A Active CN107453979B (en) 2017-07-26 2017-07-26 Communication method and presence server

Country Status (1)

Country Link
CN (1) CN107453979B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464700A (en) * 2002-06-04 2003-12-31 深圳市中兴通讯股份有限公司 Method for notifying busy status to session initiating protocol network from end user
CN1604665A (en) * 2004-11-02 2005-04-06 大唐微电子技术有限公司 Method, system for acquiring status information of mobile subscriber and corresponding subscriber identification module
CN1794641A (en) * 2004-12-20 2006-06-28 微软公司 Method and system for providing notification when a user becomes available for communicating

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464700A (en) * 2002-06-04 2003-12-31 深圳市中兴通讯股份有限公司 Method for notifying busy status to session initiating protocol network from end user
CN1604665A (en) * 2004-11-02 2005-04-06 大唐微电子技术有限公司 Method, system for acquiring status information of mobile subscriber and corresponding subscriber identification module
CN1794641A (en) * 2004-12-20 2006-06-28 微软公司 Method and system for providing notification when a user becomes available for communicating

Also Published As

Publication number Publication date
CN107453979A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
US9392039B2 (en) Method and apparatus for implementing user relationship in social network application
CN108494571B (en) Method, device and system for initiating reservation conference
US9369401B2 (en) Method, server and computer storage medium for logging in
JP6776483B1 (en) Individual audio / video invitations to the phone
JP7032377B2 (en) How to make notifications, devices and systems
US20160212374A1 (en) Displaying Video Call Data
JP2009541902A (en) Remote update of user status on presence server
WO2012088933A1 (en) Method, terminal and server for adding user association relationship
WO2017028567A1 (en) Internet telephone connection processing method and device
KR20150074005A (en) Calling an unready terminal
CN109428738B (en) Dynamic filtering method for group communication
CN104935500B (en) Friend recommendation method and device based on network call
WO2014086222A1 (en) Method and apparatus for setting video call parameters and sending capability parameters
WO2016004768A1 (en) Social relation management method, device and system
WO2015184924A1 (en) Method for implementing remote assistance between terminals, service assistance server and device
JP2014518464A (en) System and method for passive communication service
US8600417B1 (en) Consumer care system
WO2017156860A1 (en) Information acquisition method, information acquisition apparatus, and computer storage medium
US8886721B2 (en) Short impromptu communications in presence-based systems
CN106162504A (en) A kind of mobile phone dating system based on random audio frequency and video and implementation method
CN101888607A (en) Method for realizing mobile phone chats based on widget and mobile phone
CN103905605A (en) Calling-back method, calling-back device and communication terminal
CN105634931B (en) Message service processing method and instant communication server
CN107453979B (en) Communication method and presence server
WO2016197884A1 (en) Identity-based data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant