EP3284243A1 - Methods, devices and system for obtaining http message statuses - Google Patents
Methods, devices and system for obtaining http message statusesInfo
- Publication number
- EP3284243A1 EP3284243A1 EP16722360.1A EP16722360A EP3284243A1 EP 3284243 A1 EP3284243 A1 EP 3284243A1 EP 16722360 A EP16722360 A EP 16722360A EP 3284243 A1 EP3284243 A1 EP 3284243A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- message
- subscription
- identifier
- status
- notification
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
Definitions
- the present invention relates to the field of internet technology, and in particular to the technology of obtaining HTTP message statuses.
- POST and GET are two most commonly used methods for performing request-response between clients and servers. Specifically, POST refers to posting to-be-processed data to a designated resource, while GET refers to requesting data from a designated resource.
- the Conversation API is to provide easy access to IMS services and capabilities.
- the application server can send a POST message to the corresponding side, so as to play a voice message (audio/video/text/VXML) to the participant at the corresponding side.
- the application sever need to periodically send a GET message with the resource ID, which is created for message playing and corresponding to the message.
- the application server can't achieve getting the latest message status in real time based on current specifications.
- the application server wants to play a message to the calling participant and route the call to another participant after the message played.
- the application server sends a POST message to play the message.
- the application server needs to send a GET message often to get the message status.
- the application server doesn't know the duration for message playing. For example, as shown in Figure 1, suppose that the message lasts 2.5 minutes and application server sends a GET message every 1 minute. Then the application server can get the message status Played in third time (that is the 3rd minute), which is 0.5 minute later than the Played. The application server can't do anything to the calling participant in that 0.5 minute duration.
- An object of the invention is providing methods, devices and system for obtaining HTTP message statuses.
- a method, at a first device, for obtaining an HTTP message status comprises:
- the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the method further comprises:
- a method, at a second device, for obtaining an HTTP message status comprises:
- the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the method further comprises:
- a first device for obtaining an HTTP message status comprising:
- a subscription sending module configured to send a message status subscription notification to one or more second devices, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- a response obtaining module configured to obtain subscription response information sent by the second device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the device further comprises:
- an execution sending module configured to send an execution message to the second device, wherein the execution message is corresponding to the resource identifier
- a status obtaining module configured to obtain a message status notification sent by the second device, wherein the message status notification matches the subscription message status.
- a second device for obtaining an HTTP message status comprising:
- a subscription obtaining module configured to obtain a message status subscription notification sent by a first device, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- a response sending module configured to send subscription response information to the first device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the device further comprises:
- an execution obtaining module configured to obtain an execution message sent by the first device, wherein the execution message is corresponding to the resource identifier
- a checking module configured to check whether the current message status matches the subscription message status
- a status sending module configured to send the message status notification to the first device when the message status matches the subscription message status.
- a system for obtaining an HTTP message status comprising a first device as aforesaid and a second device as aforesaid.
- a first device sends a message status subscription notification to one or more second devices, and obtains subscription response information sent by the second device; then, based on a resource identifier in the subscription response information, sends an execution message to the second device; when a message status notification matches the subscription message status, obtains the message status notification sent by the second device. Therefore, the present invention achieves that a first device obtains in real-time a message status of a second device, which avoids delay of the message status, enhances information processing efficiency, reduces resource waste, and enhances user experience.
- the present invention may also achieve that the first device sends a subscription check message to the second device, thereby checking whether the message status has been subscribed, which guarantees subsequent processing of the message status subscription.
- the present invention may also achieve that the first device sends a subscription deletion message to the second device, thereby deleting the message status subscription and completing a full processing procedure.
- FIG. 1 shows a flow diagram of playing an HTTP audio message and checking a message status in the prior art
- FIG. 2 shows a schematic diagram of a first device and a second device for obtaining HTTP message statuses according to one aspect of the present invention
- FIG. 3 shows a flow diagram of a method for obtaining HTTP message statuses by cooperation of a first device and a second device according to another aspect of the present invention
- Fig. 4 shows a flow diagram of playing an HTTP audio message and checking a message status according to one preferred embodiment of the present invention.
- example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations as sequential processes, many of the operations may be performed in parallel, concurrently or simultaneously. In addition, the order of operations may be re-arranged. The processes may be terminated when their operations are completed, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subprograms, etc.
- the "first device” or “second device” herein comprises any computer device that can perform information processing.
- the "computer device” (or called “computer”) refers to an intelligent electronic device that performs predetermined processing processes such as numerical value calculations and/or logical calculations by running predetermined programs or instructions, which may comprise a processor and a memory.
- the predetermined processing process is executed by the processor through executing program instructions pre-stored in a memory, or the predetermined processing process is executed by hardware such as ASIC, FPGA, DSP, etc., or the predetermined processing process is executed by a combination of both.
- the computer device includes, but not limited to, server, personal computer, lab top, tablet personal computer, smartphone, etc...
- the computer device includes network device(s) and user device(s), that is, the first device or the second device described in the present invention includes such as application server(s) or user device(s).
- the user device includes, but not limited to, personal computers, smart phones, PDAs and son on.
- the network device includes, but not limited to, single network server, a server group formed by a set of multiple network servers or a cloud network formed by multiple servers, herein, the cloud network is formed by a large number of computers or network servers based on Cloud Computing, wherein, the cloud computing is a kind of distributed computing, which is a virtual supercomputer consisting of a group of loosely coupled computers set.
- the computer device may run separately to implement the present invention, or implement the present invention through interaction operations with other computer devices in the network by accessing the network.
- the network of the computer device includes, but not limited to, the Internet, Wide Area Network, Metropolitan Area Network, LAN, VPN, wireless self-organizing, etc.
- Fig. 2 shows a schematic diagram of a first device and a second device for obtaining HTTP message statuses according to one aspect of the present invention; wherein, the first device 1 comprises a subscription sending module 11, a response obtaining module 12, an execution sending module 13, a status obtaining module 14, the second device 2 comprises a subscription obtaining module 21, a response sending module 22, an execution obtaining module 23, a checking module 24, a status sending module 25.
- the first device 1 comprises a subscription sending module 11, a response obtaining module 12, an execution sending module 13, a status obtaining module 14
- the second device 2 comprises a subscription obtaining module 21, a response sending module 22, an execution obtaining module 23, a checking module 24, a status sending module 25.
- the subscription sending module 11 of the first device 1 sends a message status subscription notification to one or more second devices, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses; correspondingly, the subscription obtaining module 21 of the second device 2 obtains a message status subscription notification sent by the first device, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses; then, the response sending module 22 sends subscription response information to the first device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier; correspondingly, the response obtaining module 12 of the first device 1 obtains subscription response information sent by the second device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier; the execution sending
- the message status obtained by the present invention is an HTTP message status;
- the HTTP message includes, but not limited to, any kind of HTTP message that is transmitted based on the HTTP protocol and needs a certain execution time, e.g., a voice message, a video message, a picture message, a textual message, a VXML message, etc.
- the HTTP message is a voice message/ video message
- the peer may play the voice message/ video message, which needs a certain play time
- the HTTP message is a textual message
- the peer may convert it to an audio message that needs to be played and then play
- the HTTP message is a picture message
- the peer may cyclically show one or more pictures, which needs a certain presentation time, etc.
- the HTTP message is a RESTful network message; more preferably, the HTTP message is a RESTful network voice message.
- the subscription sending module 11 of the first device 1 sends a message status subscription notification to one or more second devices; correspondingly, the subscription obtaining module 21 of the second device 2 obtains a message status subscription notification sent by the first device, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses.
- the subscription sending module 11 first sends a message status subscription notification to the second device before sending an execution message based on the method of sending a message in the HTTP protocol, e.g., the POST method so as to complete a message status subscription between the first device and the second device.
- the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses.
- the notification identifier is an identifier which is used for uniquely identifying the notification, e.g., notification URL.
- the session identifier is an identifier which is used for uniquely identifying the session between two or more devices.
- the session may be a session between one or more first devices and one or more second devices; the session identifier may be defined through for example a call session identifier or defined according to resource identification (e.g., resource URL).
- the subscription message status includes, but not limited to, one or more message statuses the first device desires to obtain, e.g., pending, executing, executed, error, terminated, etc.
- the subscription message status includes, but not limited to, at least any one of the following: pending, playing, played, error, terminated. If the subscription message status is not designated, a default status (e.g., any of the above message statuses) may be used as the subscription message status.
- the message status subscription notification may also comprise at least any one of the following:
- - Type of subscribed messages e.g., text, audio, video, picture, VXML, etc. If the subscribed message type is not designated, a default message type (any of the above messages) may be used as the subscribed message type.
- Session address of the session e.g., SIP URL, TEL URL, ACR URL and the like of one or more parties participating in the session; if the session address is not designated, the transmitted message will be provided to all participants in the session.
- the resource includes, but not limited to, any voice, video, text, picture, VXMAL, etc.; the resource recovery identifier allows the user to recover from a communication failure during the resource creation period, thereby avoiding twice identical subscription in the case of communication failure, as an example.
- Self referring resource identifier e.g., self referring URL. Based on the self referring resource identifier, a full resource may be returned based on any HTTP method.
- the response sending module 22 sends subscription response information to the first device; correspondingly, the response obtaining module 12 of the first device 1 obtains subscription response information sent by the second device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier.
- the response sending module 22 sends subscription response information to the response obtaining module 12 of the first device based on a corresponding HTTP protocol, the response indicating that a request from the first device 1 has been fulfilled and a new resource has been established based on the message status subscription notification, e.g., 201 Created Response.
- the subscription response information includes one or more resource identifiers, e.g., resource URL.
- the resource identifier corresponds to the session identifier of the first device and second device, which indicating that the resource identifier is a resource in the session.
- the execution sending module 13 sends an execution message to the second device; correspondingly, the execution obtaining module 23 obtains an execution message sent by the first device, wherein the execution message is corresponding to the resource identifier.
- the execution sending module 13 sends the execution message to the execution obtaining module 23 of the second device based on the corresponding HTTP protocol.
- the execution message includes, but not limited to, any kind of operations for executing the resource corresponding to the resource identifier.
- the resource identifier is the resource identifier sent in the response sending module 22.
- the execution obtaining module 23 obtains the execution message
- the resource identified by the resource identifier may be executed based on information such as the execution operation and/or execution time sent in the execution message, e.g., playing the voice message.
- the checking module 24 checks whether the current message status matches the subscription message status; when the message status matches the subscription message status, the status sending module 25 sends the message status notification to the first device 1; correspondingly, the status obtaining module 14 of the first device 1 obtains a message status notification sent by the second device.
- the checking module 24 checks a message status of a resource corresponding to the resource identifier based on the subscription message status. Once the message status matches the subscription message status, e.g., from pending to playing, and from playing to played, then the status sending module 25 will notify, based on the subscription message status, the corresponding message status to the status obtaining module of the first device based on the corresponding HTTP protocol, wherein the message status notification includes a current message status of the message; in this way, the first device can obtain in real-time the latest message status notification.
- the message status notification further comprises at least any one of the following:
- a message type corresponding to the message status notification e.g., text, audio, video, picture, VXML, etc.
- a session identifier of the session between the first and the second devices e.g., defined for example through a call session identifier or defined according to the resource identifier (e.g., resource URL).
- - other associated resources associated with the resource identifier e.g., other resources (e.g., associated subscriptions, associated call sessions) associated with the current resource.
- a session address associated with the message status e.g., SIP URL, TEL URL, ACR URL, and the like of one or more parties participating in the session; if the session address is not designated, the transmitted message is provided to all participants in the session.
- callback data i.e., when a message status subscription notification is created, the callback data may be transmitted through an application.
- the first device further comprises a check sending module(not shown); correspondingly, the second device further comprises a check obtaining module(not shown), a subscription check module(not shown).
- the check sending module sends a subscription check message to the second device, wherein the subscription check message includes the resource identifier; correspondingly, the check obtaining module obtains a subscription check message sent by the first device, wherein the subscription check message includes the resource identifier; the subscription check module checks whether the resource corresponding to the resource identifier has been subscribed based on the subscription check message.
- the check sending module may send a subscription check message to the second device based on the corresponding HTTP protocol, e.g., through the GET method, the subscription check message including the resource identifier sent by the response sending module 22.
- the check obtaining module obtains the subscription check message, it is checked whether the resource corresponding to the resource identifier has been subscribed, thereby sending a corresponding notification to the first device; the first device may perform subsequent operations; for example, in the case of no subscription, then a subscription notification will be re-sent.
- the first device further comprises a deletion sending module (not shown); correspondingly, the second device further comprises a deletion obtaining module (not shown) and a deleting module (not shown).
- the deletion sending module sends a subscription deletion message to the second device, wherein the subscription deletion message includes the resource identifier and/or the session identifier; correspondingly, the deletion obtaining module obtains a subscription deletion message sent by the first device, wherein the subscription deletion message includes the resource identifier and/or the session identifier; the deleting module deletes, based on the subscription deletion message, the message status subscription notification corresponding to the resource identifier and/or the session identifier, the resource identifier and/or the session identifier corresponding to the subscription deletion message.
- the deletion sending module may send a subscription deletion message to the second device based on a corresponding HTTP protocol, e.g., through the DELETE method; here, if the first device wishes to cancel a subscription to a certain resource, the resource identifier will be included in the subscription deletion message; after the deletion obtaining module obtains the subscription deletion message, the deletion module cancels the subscription to the message status of the resource; if the first device wishes to cancel a subscription to a certain session, the session identifier is included in the subscription deletion message; after the deletion obtaining module obtains the subscription deletion message, the deletion module cancels the subscription to the message status of the session.
- a corresponding HTTP protocol e.g., through the DELETE method
- one session may include one or more resources; if a message status subscription for a session is deleted, the message status subscription will not be executed for the entire session; if a message status subscription for a resource is deleted, the message status subscription is continued to execute for other resources of the session, and the first device can still obtain the message status notification of other resources in the session.
- Fig. 3 shows a flow diagram of a method for obtaining HTTP message statuses by cooperation of a first device and a second device according to another aspect of the present invention.
- the first device 1 sends a message status subscription notification to one or more second devices, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- the second device 2 obtains a message status subscription notification sent by the first device, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses; then, in the step S2, the second device 2 sends subscription response information to the first device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier; correspondingly, in the step S2, the first device 1 obtains subscription
- the message status obtained by the present invention is an HTTP message status;
- the HTTP message includes, but not limited to, any kind of HTTP message that is transmitted based on the HTTP protocol and needs a certain execution time, e.g., a voice message, a video message, a picture message, a textual message, a VXML message, etc.
- the HTTP message is a voice message/ video message
- the peer may play the voice message/ video message, which needs a certain play time
- the HTTP message is a textual message
- the peer may convert it to an audio message that needs to be played and then play
- the HTTP message is a picture message
- the peer may cyclically show one or more pictures, which needs a certain presentation time, etc.
- the HTTP message is a RESTful network message; more preferably, the HTTP message is a RESTful network voice message.
- the first device 1 sends a message status subscription notification to one or more second devices; correspondingly, in the step SI, the second device 2 obtains a message status subscription notification sent by the first device, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses.
- the first device 1 first sends a message status subscription notification to the second device before sending an execution message based on the method of sending a message in the HTTP protocol, e.g., the POST method so as to complete a message status subscription between the first device and the second device.
- the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses.
- the notification identifier is an identifier which is used for uniquely identifying the notification, e.g., notification URL.
- the session identifier is an identifier which is used for uniquely identifying the session between two or more devices.
- the session may be a session between one or more first devices and one or more second devices; the session identifier may be defined through for example a call session identifier or defined according to resource identification (e.g., resource URL).
- the subscription message status includes, but not limited to, one or more message statuses the first device desires to obtain, e.g., pending, executing, executed, error, terminated, etc.
- the subscription message status includes, but not limited to, at least any one of the following: pending, playing, played, error, terminated. If the subscription message status is not designated, a default status (e.g., any of the above message statuses) may be used as the subscription message status.
- the message status subscription notification may also comprise at least any one of the following:
- - Type of subscribed messages e.g., text, audio, video, picture, VXML, etc. If the subscribed message type is not designated, a default message type (any of the above messages) may be used as the subscribed message type.
- Session address of the session e.g., SIP URL, TEL URL, ACR URL and the like of one or more parties participating in the session; if the session address is not designated, the transmitted message will be provided to all participants in the session.
- the resource includes, but not limited to, any voice, video, text, picture, VXMAL, etc.; the resource recovery identifier allows the user to recover from a communication failure during the resource creation period, thereby avoiding twice identical subscription in the case of communication failure, as an example.
- Self referring resource identifier e.g., self referring URL. Based on the self referring resource identifier, a full resource may be returned based on any HTTP method.
- the second device 2 sends subscription response information to the first device; correspondingly, in the step S2, the first device 1 obtains subscription response information sent by the second device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier.
- the second device 2 sends subscription response information to the first device based on a corresponding HTTP protocol, the response indicating that a request from the first device 1 has been fulfilled and a new resource has been established based on the message status subscription notification, e.g., 201 Created Response.
- the subscription response information includes one or more resource identifiers, e.g., resource URL.
- the resource identifier corresponds to the session identifier of the first device and second device, which indicating that the resource identifier is a resource in the session.
- the first device 1 sends an execution message to the second device; correspondingly, in the step S3, the second device 2 obtains an execution message sent by the first device, wherein the execution message is corresponding to the resource identifier.
- the first device 1 sends the execution message to the second device based on the corresponding HTTP protocol.
- the execution message includes, but not limited to, any kind of operations for executing the resource corresponding to the resource identifier.
- the resource identifier is the resource identifier sent in the step S2.
- the resource identified by the resource identifier may be executed based on information such as the execution operation and/or execution time sent in the execution message, e.g., playing the voice message.
- the second device 2 checks whether the current message status matches the subscription message status; when the message status matches the subscription message status, in the step S5, the second device 2 sends the message status notification to the first device 1; correspondingly, in the step S5, the first device 1 obtains a message status notification sent by the second device.
- the second device 2 checks a message status of a resource corresponding to the resource identifier based on the subscription message status. Once the message status matches the subscription message status, e.g., from pending to playing, and from playing to played, then in the step S5, the second device 2 will notify, based on the subscription message status, the corresponding message status to the first device based on the corresponding HTTP protocol, wherein the message status notification includes a current message status of the message; in this way, the first device can obtain in real-time the latest message status notification.
- the message status notification further comprises at least any one of the following:
- a message type corresponding to the message status notification e.g., text, audio, video, picture, VXML, etc.
- a session identifier of the session between the first and the second devices e.g., defined for example through a call session identifier or defined according to the resource identifier (e.g., resource URL).
- a session address associated with the message status e.g., SIP URL, TEL URL, ACR URL, and the like of one or more parties participating in the session; if the session address is not designated, the transmitted message is provided to all participants in the session.
- callback data i.e., when a message status subscription notification is created, the callback data may be transmitted through an application.
- the method further comprises a step S6(not shown) and a step S7(not shown).
- the first device 1 sends a subscription check message to the second device, wherein the subscription check message includes the resource identifier; correspondingly, in the step S6, the second device 2 obtains a subscription check message sent by the first device, wherein the subscription check message includes the resource identifier; in the step S7, the second device checks whether the resource corresponding to the resource identifier has been subscribed based on the subscription check message.
- the first device 1 may send a subscription check message to the second device based on the corresponding HTTP protocol, e.g., through the GET method, the subscription check message including the resource identifier sent by the step S2.
- the second device 2 obtains the subscription check message, it is checked whether the resource corresponding to the resource identifier has been subscribed, thereby sending a corresponding notification to the first device; the first device may perform subsequent operations; for example, in the case of no subscription, then a subscription notification will be re-sent.
- the method further comprises a step S8 (not shown) and a step S9 (not shown).
- the first device 1 sends a subscription deletion message to the second device, wherein the subscription deletion message includes the resource identifier and/or the session identifier;
- the second device 2 obtains a subscription deletion message sent by the first device, wherein the subscription deletion message includes the resource identifier and/or the session identifier;
- the second device deletes, based on the subscription deletion message, the message status subscription notification corresponding to the resource identifier and/or the session identifier, the resource identifier and/or the session identifier corresponding to the subscription deletion message.
- the first device 1 may send a subscription deletion message to the second device based on a corresponding HTTP protocol, e.g., through the DELETE method; here, if the first device wishes to cancel a subscription to a certain resource, the resource identifier will be included in the subscription deletion message; after the second device 2 obtains the subscription deletion message, the second device 2 cancels the subscription to the message status of the resource; if the first device wishes to cancel a subscription to a certain session, the session identifier is included in the subscription deletion message; after the second device 2 obtains the subscription deletion message, the second device 2 cancels the subscription to the message status of the session.
- a corresponding HTTP protocol e.g., through the DELETE method
- one session may include one or more resources; if a message status subscription for a session is deleted, the message status subscription will not be executed for the entire session; if a message status subscription for a resource is deleted, the message status subscription is continued to execute for other resources of the session, and the first device can still obtain the message status notification of other resources in the session.
- Fig. 4 shows a flow diagram of playing an HTTP audio message and checking a message status according to one preferred embodiment of the present invention.
- Fig. 4 performs execution based on the HTTP protocol, and preferably, based on the RESTful Network Audio Call API.
- the first device may be an application server or other device, and the second device may be other device participating in the session.
- the HTTP message transmitted here is an audio message.
- Those skilled in the art should understand that other HTTP messages are likewise applicable to the present invention, which will not be detailed here, but incorporated here by reference.
- the first device sends a message status subscription notification to the second device; here, the sending method may be a POST method.
- the format of the sent message status subscription notification may be shown as follows:
- the message status subscription notification includes a header and a body; the body includes a notification identifier (e.g., notification URL), a session identifier of a session between the first device and the second device, and one or more subscription message statuses.
- the body may also comprise one or more of the following: the type of subscribed messages, the session address of the session, the resource recovery identifier of the resource, and the self referring resource identifier.
- the second device performs response based on the created resource (i.e., audio); for example, it may send a 201 Created Response that carriers the corresponding created resource URL.
- the first device may manage the message status subscription, e.g., sending a subscription check message using the GET method, and sending a subscription deletion message using the DELETE.
- the transmitted response format may be shown as follows:
- the first device sends a POST message to play the audio message.
- the second device performs response based on the created resource, i.e., playing the message.
- the second device sends a message status notification (i.e., playing) to the first device through a POST method based on the current message status; correspondingly, in the step S46, the first device sends a 204 No Content Response to the second device, i.e., notifying the second device that the current request has succeeded.
- a message status notification i.e., playing
- the first device sends a 204 No Content Response to the second device, i.e., notifying the second device that the current request has succeeded.
- the POST message format for the message status notification may be shown as follows:
- the message status notification includes a header and a body.
- the body comprises a message status to be notified, e.g., "playing"; preferably, the body further comprises one or more of the following: the session identifier of the session between the first device and the second device, other associated resources associated with the resource identifier, the session address associated with the message status, callback data.
- the second device sends a message status notification (i.e., played) to the first device through the POST method based on the current message status; correspondingly, in the step S48, the first device sends 204 No Content Response to the second device, i.e., notifying the second device that the current request has succeeded.
- a message status notification i.e., played
- the first device sends 204 No Content Response to the second device, i.e., notifying the second device that the current request has succeeded.
- the first device can promptly obtain the latest message status notification.
- the present invention may be implemented in software and/or a combination of software and hardware, for example, it may be implemented by an application-specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device.
- ASIC application-specific integrated circuit
- the software program of the present invention may be executed through a processor to implement the steps or functions as mentioned above.
- the software program of the present invention (including relevant data structure) may be stored in the computer-readable recording medium, for example, RAM memory, magnetic or optic driver or flappy disk or similar devices.
- some steps or functions of the present invention may be implemented by hardware, for example, as a circuit cooperating with the processor to execute various steps or functions.
- a part of the present invention may be applied as a computer program product, e.g., computer program instructions, which, when being executed by the computer, may invoke or provide the method and/or technical solution according to the present invention through operations of the computer, while the program instructions for invoking the method of the present invention may be stored in a fixed or mobile recording medium, and/or transmitted through broadcast or a data stream in other signal carrier medium, and/or stored in a work memory of a computer device running based on the program instructions.
- one embodiment according to the present invention comprises an apparatus, which comprising a memory for storing the computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the apparatus is triggered to run the above mentioned methods and/or technical solutions according to multiple embodiments of the present invention.
- the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the method further comprises:
- [00160] obtaining a message status subscription notification sent by a first device, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- [00161] sending subscription response information to the first device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the method further comprises:
- [00170] obtaining a subscription deletion message sent by the first device, wherein the subscription deletion message includes the resource identifier and/or the session identifier;
- [00171] - deleting, based on the subscription deletion message, the message status subscription notification corresponding to the resource identifier and/or the session identifier, the resource identifier and/or the session identifier corresponding to the subscription deletion message.
- a first device for obtaining an HTTP message status comprising:
- a subscription sending module configured to send a message status subscription notification to one or more second devices, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- a response obtaining module configured to obtain subscription response information sent by the second device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the device further comprises:
- an execution sending module configured to send an execution message to the second device, wherein the execution message is corresponding to the resource identifier
- a status obtaining module configured to obtain a message status notification sent by the second device, wherein the message status notification matches the subscription message status.
- a check sending module configured to send a subscription check message to the second device, wherein the subscription check message includes the resource identifier.
- a deletion sending module configured to send a subscription deletion message to the second device, wherein the subscription deletion message includes the resource identifier and/or the session identifier.
- a second device for obtaining an HTTP message status wherein, the device comprises:
- a subscription obtaining module configured to obtain a message status subscription notification sent by a first device, wherein the message status subscription notification includes a notification identifier, a session identifier of a session between the first device and the second device, and one or more subscription message statuses;
- a response sending module configured to send subscription response information to the first device, wherein the subscription response information includes one or more resource identifiers, the resource identifier corresponding to the session identifier;
- the device further comprises:
- an execution obtaining module configured to obtain an execution message sent by the first device, wherein the execution message is corresponding to the resource identifier
- a checking module configured to check whether the current message status matches the subscription message status
- a status sending module configured to send the message status notification to the first device when the message status matches the subscription message status.
- a check obtaining module configured to obtain a subscription check message sent by the first device, wherein the subscription check message includes the resource identifier
- a subscription check module configured to check whether the resource corresponding to the resource identifier has been subscribed based on the subscription check message.
- a deletion obtaining module configured to obtain a subscription deletion message sent by the first device, wherein the subscription deletion message includes the resource identifier and/or the session identifier;
- a deleting module configured to delete, based on the subscription deletion message, the message status subscription notification corresponding to the resource identifier and/or the session identifier, the resource identifier and/or the session identifier corresponding to the subscription deletion message.
- a system for obtaining an HTTP message status comprising a first device according to any one of clauses 13-18 and a second device according to any one of clauses 19-24.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510185510.5A CN106161196A (en) | 2015-04-17 | 2015-04-17 | A kind of obtain the method for HTTP message state, equipment and system |
| PCT/IB2016/000604 WO2016166605A1 (en) | 2015-04-17 | 2016-04-01 | Methods, devices and system for obtaining http message statuses |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP3284243A1 true EP3284243A1 (en) | 2018-02-21 |
Family
ID=55967334
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP16722360.1A Withdrawn EP3284243A1 (en) | 2015-04-17 | 2016-04-01 | Methods, devices and system for obtaining http message statuses |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP3284243A1 (en) |
| CN (1) | CN106161196A (en) |
| WO (1) | WO2016166605A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105376325A (en) * | 2015-12-07 | 2016-03-02 | 青岛农业大学 | Methods, devices and system for obtaining HTTP message status |
| CN109005240B (en) * | 2018-08-21 | 2021-05-18 | 浙江浙大中控信息技术有限公司 | Real-time data subscription method based on HTTP (hyper text transport protocol) |
| CN111130951B (en) * | 2019-12-31 | 2022-08-23 | 中消云(北京)物联网科技研究院有限公司 | Equipment state detection method, device and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7069309B1 (en) * | 2000-10-19 | 2006-06-27 | Cisco Technology, Inc. | Apparatus and methods for requesting an event notification over a network |
| GB0230301D0 (en) * | 2002-12-30 | 2003-02-05 | Nokia Corp | Streaming media |
| CN102594718A (en) * | 2011-01-12 | 2012-07-18 | 阿尔卡特朗讯 | Method and device for processing presentation information |
| CN106603394B (en) * | 2013-12-05 | 2020-02-14 | 华为技术有限公司 | Method and device for realizing subscription notification |
-
2015
- 2015-04-17 CN CN201510185510.5A patent/CN106161196A/en active Pending
-
2016
- 2016-04-01 EP EP16722360.1A patent/EP3284243A1/en not_active Withdrawn
- 2016-04-01 WO PCT/IB2016/000604 patent/WO2016166605A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016166605A1 (en) | 2016-10-20 |
| CN106161196A (en) | 2016-11-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7921158B2 (en) | Using a list management server for conferencing in an IMS environment | |
| EP2620872B1 (en) | Method and device for callback processing in telecommunication capacity opening | |
| US9807143B2 (en) | Systems and methods for event routing and correlation | |
| JP2017517063A (en) | Instant messaging system and method | |
| CN107258098B (en) | Method and apparatus for sharing rich information associated with a call | |
| JP2019530033A5 (en) | ||
| CN107786415B (en) | Service processing method and related equipment and system | |
| US20080084989A1 (en) | Intelligent Reusable Dialog Components for Converged Dialog and Session Control | |
| WO2022147696A1 (en) | Call processing method, call processing apparatus and related device | |
| US20160150027A1 (en) | Method Of Handling Notification Channel Disconnection | |
| KR101290977B1 (en) | Message transfer method using push server and the system thereby | |
| WO2016166605A1 (en) | Methods, devices and system for obtaining http message statuses | |
| GB2484200A (en) | Establishing a global conference using plural conference bridges | |
| US9787749B2 (en) | Method, apparatus, and system for providing and using multi-protocol eventing | |
| CN111147817B (en) | Video processing method, device, electronic device and storage medium | |
| CN110113298B (en) | Data transmission method, device, signaling server and computer readable medium | |
| JP5916169B2 (en) | System and method for activating a mobile device to initiate communication | |
| US8499035B2 (en) | Methods, systems and computer readable media for providing session initiation protocol (SIP) event watcher entity information in a communications network | |
| CN113220654A (en) | Content sharing method, device and system and storage medium | |
| CN105681162A (en) | Method, device and system for synchronizing information | |
| CN105376325A (en) | Methods, devices and system for obtaining HTTP message status | |
| CN115134422A (en) | Service processing method, video network terminal, master control device, electronic device and medium | |
| CN110399573A (en) | An information processing method, device, device, and computer-readable storage medium | |
| US20170310713A1 (en) | Establishing And Managing Connections For Real Time Communications | |
| CN102469139B (en) | A kind of ending chatting conversation and the method and system of obtaining chat sessions information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| 17P | Request for examination filed |
Effective date: 20171117 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| AX | Request for extension of the european patent |
Extension state: BA ME |
|
| RAP1 | Party data changed (applicant data changed or rights of an application transferred) |
Owner name: ALCATEL LUCENT |
|
| DAV | Request for validation of the european patent (deleted) | ||
| DAX | Request for extension of the european patent (deleted) | ||
| 17Q | First examination report despatched |
Effective date: 20181116 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
| 18D | Application deemed to be withdrawn |
Effective date: 20200213 |