Abstract:
A method and apparatus for sending a push message is provided. The method includes: comparing a content length of a content of a push message received from a push message initiator with a matching condition, wherein the matching condition comprising a maximum message length threshold specifying a maximum length allowed for the content of the push message; determining whether the content length of the content of the push message exceeds the maximum message length threshold; and sending the content of the push message to a push receiving agent of a terminal when the content length of the content of the push message does not exceed the maximum message length threshold.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is a continuation of U.S. patent application Ser. No. 12/729,052, filed Mar. 22, 2010, which is a continuation of International Patent Application No. PCT/CN2008/072393, filed on Sep. 17, 2008, which claims priority to Chinese Patent Application No. 200710154667.7, filed on Sep. 21, 2007, all of which are hereby incorporated by reference in their entireties. 
     
    
     FIELD 
       [0002]    The present invention relates to a content distribution technology, and more particularly to a method and apparatus for sending a push content. 
       BACKGROUND 
       [0003]    “Push” is a content distribution mechanism, which employs a client/server operation mode and requires a server to distribute the required content without requiring a client to send a specific request. “Push” is most frequently used in message notification systems, and is applied in various industries such as security, banking, and business website. Taking the field of mobile value-added services as an example, the push service has the following applications: user customized information, which mainly refers that a user designates a subscription condition through initiative subscription or operation, and a content provider actively sends proper information to the user according to the corresponding subscription condition; group send information, which refers to a content push initiated by a third party without initiative subscription from the user, and may be specifically sending focused advertisements for stores, or sending group information notification according to actual conditions; and point-to-point service, which refers that a certain user sends designated content to another user. 
         [0004]    A structure for realizing a push application is mainly formed by the following three parts: a push proxy gateway (PPG), a push initiator (PI), and a terminal. The PI is an initiator of a push message, which is an application running on an ordinary website server and communicates with the PPG through a push access protocol (PAP). The PPG mainly functions to process a push submission and operations associated with the submission and transfers a push content to the terminal. Services of the PPG include: identification and authentication of the PI, access control, resolution and error detection of the push content and control information, address resolution of an acceptor of the push content, including broadcast, multicast, and other functions, and communication with the terminal through a push Over The Air (OTA) protocol. 
         [0005]    Briefly, the push realizing process is described as follows. The PI initiates a push message, which indicates a receiving terminal, the source PI, and a push content of the push message. The PI sends the push message to the PPG through the PAP. Then, the PPG sends the push message to the terminal through the push OTA protocol.  FIG. 1  is a schematic view of realizing a push application in the prior art. 
         [0006]    A session initiation protocol (SIP) is a control (signaling) protocol in an application layer, which is adapted to establish, modify, and terminate a call between Internet Protocol (IP) network-based users. The actual applications of the SIP in practice include, but not limited to, speech, video, instant message, and the like. An SIP push service is a service for encapsulating a push content in an SIP message and transferring the SIP message over an existing SIP/IP core network.  FIG. 2  is a schematic view of realizing an SIP push service in the prior art. As shown in  FIG. 2 , the part accomplishing the functions of the PPG in the push service may be referred to as a push sending agent, while the part accomplishing the functions of the terminal in the push service may be referred to as a push receiving agent. The push sending agent and the push receiving agent are interface points of the SIP/IP core network and communicate with each other by using an SIP message. In the SIP push service, the functions provided by the SIP include: accessibility of a user, availability of the user, capability of the user, and session establishment and session management. The SIP/IP core network provides abundant end-to-end media sessions and sessions between a client and a server. The SIP/IP core network includes an SIP gateway and a registration server, and provides authentication and authorization access services for SIP clients and SIP services, and may also provide SIP registration and routing functions. 
         [0007]      FIG. 3  is a schematic structural view of a framework of the SIP push service in the prior art. A terminal includes a push receiving agent and an application module. The push receiving agent transmits a push content to the application module. The application module accomplishes the corresponding service operation based on the push content. A server includes a push sending agent and an application module. The push sending agent receives a transfer command and the push content sent by a push provider PI, and sends the push content to the push receiving agent in the terminal over the SIP/IP core network according to the transfer command. The application module in the server accomplishes the functions associated with the service in the application layer. 
         [0008]    Currently, in the SIP push service, the user can only report his/her own terminal capability information and preference through a user agent profile (UA Prof) mechanism. The terminal capability may refer to, for example, equipment manufacturer, model, software version, screen size, screen resolution, and the like, while the preference may refer to some user-defined configuration information. The information reported by the user may be employed by the server in realizing service customization and personalization. That is, the user informs the server of services supported by him/her. The message security and authorization in the SIP push service are mainly based on a security mechanism provided by the SIP/IP core network. That is, the SIP/IP core network can perform authentication and security appraisal on the push sending agent, so as to ensure that the push sending agent corresponding to the terminal is legal, but has no control capability on the push message, for example, in the case that the user does not wish to receive a large push content, the user intends to reject some undesirable service types and a push content containing reactionary words and violent words, the user intends to reject a push content sent by a PI that is un-trusted to the terminal, or the terminal is only expected to receive a specific push content. Since no control capability on the push message is provided, the push message cannot be sent in the above specific cases, so that the user experience is degraded. 
       SUMMARY 
       [0009]    An embodiment of the present invention provides a method for sending a push content. A push sending agent in a server receives a push message sent by a push message initiator, compares a content length of a content of the push message with a matching condition which includes a maximum message length threshold specifying a maximum length allowed for the content of the push message. The push sending agent determines whether the content length of the content of the push message exceeds the maximum message length threshold, and sends the content of the push message to a push receiving agent in a terminal when the content length of the content of the push message does not exceed the maximum message length threshold. 
         [0010]    An embodiment of the present invention provides an apparatus supporting a message push mechanism. The apparatus includes a processor and a non-transitory computer readable storage medium storing programming for execution by the processor. The programming comprises instructions to: compare a content length of a content of a push message received from a push message initiator with a matching condition, wherein the matching condition comprising a maximum message length threshold specifying a maximum length allowed for the content of the push message; determine whether the content length of the content of the push message exceeds the maximum message length threshold; and send the content of the push message to a push receiving agent of a terminal when the content length of the content of the push message does not exceed the maximum message length threshold. 
         [0011]    An embodiment of the present invention provides a computer program product stored on a non-transitory computer readable medium comprising computer executable instruction that when executed implement the following: compare a content length of a content of a push message received from a push message initiator with a matching condition, wherein the matching condition comprising a maximum message length threshold specifying a maximum length allowed for the content of the push message; determine whether the content length of the content of the push message exceeds the maximum message length threshold; and send the content of the push message to a push receiving agent of a terminal when the content length of the content of the push message does not exceed the maximum message length threshold. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0012]      FIG. 1  is a schematic structural view of realizing a push mechanism in the prior art; 
           [0013]      FIG. 2  is a schematic view of realizing an SIP push service in the prior art; 
           [0014]      FIG. 3  is a schematic structural view of a framework of the SIP push service in the prior art; 
           [0015]      FIG. 4  is a schematic structural view of a first push sending agent according to an embodiment of the present invention; 
           [0016]      FIG. 5  is a schematic structural view of a second push sending agent according to an embodiment of the present invention; 
           [0017]      FIG. 6  is a schematic structural view of a first terminal according to an embodiment of the present invention; 
           [0018]      FIG. 7  is a schematic structural view of a second terminal according to an embodiment of the present invention; 
           [0019]      FIG. 8  is a flow chart of a method for controlling a push message according to an embodiment of the present invention; 
           [0020]      FIG. 9  is a flow chart of a processing operation performed by a terminal according to a push message control policy; 
           [0021]      FIG. 10  is a flow chart of a processing operation performed by a push sending agent according to a push message control policy; 
           [0022]      FIG. 11  is a flow chart of sending a push message control policy from a terminal to a push sending agent; 
           [0023]      FIG. 12  is a flow chart of a first method for controlling a push message according to an embodiment of the present invention; and 
           [0024]      FIG. 13  is a flow chart of a second method for controlling a push message according to an embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0025]    To make the objectives and advantages of the embodiments of the present invention more comprehensible, the embodiments of the present invention are further illustrated below in detail with reference to the accompanying drawings. 
         [0026]    First, four kinds of devices for controlling a push message provided in the embodiments of the present invention are introduced, that is, two kinds of push sending agents and two kinds of terminals. 
         [0027]      FIG. 4  is a schematic structural view of a first push sending agent according to an embodiment of the present invention. The push sending agent includes a push message processing module and a policy storage module. 
         [0028]    The push message processing module is adapted to receive a push message sent by a PI, compare the received push message with a matching condition in a push message control policy stored by the policy storage module, and process the received push message according to a processing mode corresponding to the matching condition that is satisfied by the push message. 
         [0029]    The policy storage module is adapted to store the push message control policy containing the matching condition and the corresponding processing mode that is set by a terminal. 
         [0030]    In the first push sending agent provided in the embodiment of the present invention, a push message control policy set by a terminal is stored, and when a received push message satisfies a matching condition in the push message control policy, the received push message is processed according to a processing mode corresponding to the matching condition, which realizes control of the push message, so as to enhance the user experience. 
         [0031]    The push message processing module of the first push sending agent may include a processing execution module and a resolution control module. 
         [0032]    The processing execution module is adapted to receive the push message sent by the PI, send the received push message to a push receiving agent in the terminal when the matching condition is a push content that the terminal is allowed to receive, drop the push message or forward the push message to other terminals when the matching condition is a push content that the terminal is not allowed to receive, and temporarily store the push message when the matching condition is a push content that the terminal is currently not allowed to receive according to a resolution control result obtained by the resolution control module. 
         [0033]    The resolution control module is adapted to resolve the push message control policy stored by the policy storage module, and compare the push message received by the processing execution module with the matching condition in the push message control policy to determine the matching condition that is satisfied by the push message, so as to obtain the resolution control result. 
         [0034]    The push message processing module may further include a feedback module, adapted to feed back a success message to the PI when the processing execution module sends the push message to the push receiving agent in the terminal; and feed back a failure message to the PI when the processing execution module drops the push message, forwards the push message to other terminals, or temporarily stores the push message. 
         [0035]    The first push sending agent provided in the embodiment of the present invention is applicable to the case that a push sending agent stores a push message control policy set by a terminal, and uses the stored push message control policy when controlling a push message. 
         [0036]      FIG. 5  is a schematic structural view of a second push sending agent according to an embodiment of the present invention. The push sending agent includes a push message processing module and a policy reading module. 
         [0037]    The push message processing module is adapted to receive a push message sent by a PI, compare the received push message with a matching condition in a push message control policy read by the policy reading module, and process the received push message according to a processing mode corresponding to the matching condition that is satisfied by the push message. 
         [0038]    The policy reading module is adapted to read the push message control policy containing the matching condition and the corresponding processing mode from a terminal. 
         [0039]    In the second push sending agent provided in the embodiment of the present invention, a push message control policy set by a terminal is read, and when a received push message satisfies a matching condition in the push message control policy, the received push message is processed according to a processing mode corresponding to the matching condition, which realizes control of the push message, so as to enhance the user experience. 
         [0040]    The push message processing module of the second push sending agent may include a processing execution module and a resolution control module. 
         [0041]    The processing execution module is adapted to receive the push message sent by the PI, send the received push message to a push receiving agent in the terminal when the matching condition is a push content that the terminal is allowed to receive, drop the push message or forward the push message to other terminals when the matching condition is a push content that the terminal is not allowed to receive, and temporarily store the push message when the matching condition is a push content that the terminal is currently not allowed to receive according to a resolution control result obtained by the resolution control module. 
         [0042]    The resolution control module is adapted to resolve the push message control policy read by the policy reading module, and compare the push message received by the processing execution module with the matching condition in the push message control policy to determine the matching condition that is satisfied by the push message, so as to obtain the resolution control result. 
         [0043]    The push message processing module may further include a feedback module, adapted to feed back a success message to the PI when the processing execution module sends the push message to the push receiving agent in the terminal; and feed back a failure message to the PI when the processing execution module drops the push message, forwards the push message to other terminals, or temporarily stores the push message. 
         [0044]    The second push sending agent provided in the embodiment of the present invention is applicable to the case that a terminal sets and stores a push message control policy, and a push sending agent reads the push message control policy from the terminal when controlling a push message. 
         [0045]      FIG. 6  is a schematic structural view of a first terminal according to an embodiment of the present invention, which includes a policy setting module, a policy storage module, and a push message processing module. 
         [0046]    The policy setting module is adapted to set a push message control policy containing a matching condition and a corresponding processing mode. 
         [0047]    The policy storage module is adapted to store the push message control policy set by the policy setting module. 
         [0048]    The push message processing module is adapted to receive a push message sent by a push sending agent, compare the received push message with the matching condition in the push message control policy stored by the policy storage module, and process the received push message according to the processing mode corresponding to the matching condition that is satisfied by the received push message. 
         [0049]    In the first terminal provided in the embodiment of the present invention, a push message control policy is set and stored, and when a received push message satisfies a matching condition in the push message control policy, the received push message is processed according to a processing mode corresponding to the matching condition, which realizes control of the push message, so as to enhance the user experience. 
         [0050]    The first terminal provided in the embodiment of the present invention may further include an application module adapted to perform corresponding service processing according to the push message. In this case, the push message processing module includes a processing execution module and a resolution control module. 
         [0051]    The processing execution module is adapted to receive the push message sent by the push sending agent, send the push message to the application module in the terminal when the matching condition is a push content that the terminal is allowed to receive, drop the push message or forward the push message to other terminals when the matching condition is a push content that the terminal is not allowed to receive, and temporarily store the push message when the matching condition is a push content that the terminal is currently not allowed to receive according to a resolution control result obtained by the resolution control module. 
         [0052]    The resolution control module is adapted to resolve the push message control policy in the policy storage module, and compare the push message received by the processing execution module with the matching condition in the push message control policy stored by the policy storage module to determine the matching condition that is satisfied by the push message, so as to obtain the resolution control result. 
         [0053]    The push message processing module may further include a feedback module, adapted to feed back a success message to the push sending agent when the processing execution module sends the push message to the application module; and feed back a failure message to the push sending agent when the processing execution module drops the push message, forwards the push message to other terminals, or temporarily stores the push message. 
         [0054]    The first terminal provided in the embodiment of the present invention is applicable to the case that a terminal sets and stores a push message control policy and uses the stored push message control policy to control a push message. 
         [0055]      FIG. 7  is schematic structural view of a second terminal according to an embodiment of the present invention, which includes a policy setting module and a policy sending module. 
         [0056]    The policy setting module is adapted to set a push message control policy containing a matching condition and a corresponding processing mode. 
         [0057]    The policy sending module is adapted to send the push message control policy set by the policy setting module to a push sending agent. 
         [0058]    In the second terminal provided in the embodiment of the present invention, a push message control policy is set and then sent to a push sending agent, such that the push sending agent performs control on a push message according to the push message control policy sent by the terminal after receiving the push message, which realizes control of the push message, so as to enhance the user experience. 
         [0059]    The terminal provided in the embodiment of the present invention is applicable to the case that a terminal sets a push message control policy, but a push sending agent controls a push message according to the push message control policy sent by the terminal. 
         [0060]    The above push sending agents and terminals provided in the embodiments of the present invention may form systems for controlling a push message in the embodiments of the present invention. The first push sending agent and the second terminal provided in the embodiments of the present invention may form a first system provided in an embodiment of the present invention; the first terminal in the embodiment of the present invention and an ordinary push sending agent that only accomplishes a function of transmitting a push message may form a second system provided in an embodiment of the present invention; and the second push sending agent in the embodiment of the present invention and a terminal that only accomplishes a function of setting a push message control policy may form a third system provided in an embodiment of the present invention. 
         [0061]    Next, a method for controlling a push message provided in an embodiment of the present invention is introduced. 
         [0062]      FIG. 8  is a flow chart of a method for controlling a push message according to an embodiment of the present invention. A push message control policy is set before the process starts. The process includes the following blocks. 
         [0063]    In Block  801 , the push message is compared with a matching condition in the push message control policy. 
         [0064]    In this block, the push message control policy may be submitted by a user. 
         [0065]    In Block  802 , the push message is processed according to a processing mode corresponding to the matching condition that is satisfied by the push message. 
         [0066]    In the method for controlling a push message provided in the embodiment of the present invention, a push message control policy is set, and when a push message satisfies a matching condition in the push message control policy, the push message is processed according to a processing mode corresponding to the matching condition, which realizes control of the push message, so as to enhance the user experience. 
         [0067]    Based on the devices for controlling a push message provided in the embodiments of the present invention, the method for controlling a push message provided in the embodiment of the present invention may have two embodiments. The two embodiments are introduced below together with a specific SIP push service. 
         [0068]    Before the specific preferred embodiments are introduced, specific examples of a matching condition in a push message control policy applied in the two embodiments are listed as follows. 
         [0069]    The matching conditions in the set push message control policy may include: a user identifier (ID), a maximum message length threshold, service control, content control, and control of trusted PIs. The corresponding five push message control policies are respectively introduced below. 
         [0070]    First, user ID 
         [0071]    The setting of this matching condition aims at determining that a terminal to which a push message is to be sent is a terminal that sets a push message control policy according to the user ID when a push sending agent controls the push message. 
         [0072]    Second, maximum message length threshold 
         [0073]    A content length of a push message is controlled in such push message control policy. Specifically, a terminal sets a length of a push message and stores the set length in the terminal or sends the set length to a push sending agent for storage. When a length of a received push message exceeds the set length, the terminal is always or currently not allowed to receive the push message, and the push message may be automatically dropped, transferred to other terminals, or temporarily stored with reference to the stored push message control policy. 
         [0074]    Third, service control 
         [0075]    A service received by a terminal is controlled, which is mainly realized by setting a service ID corresponding to a service type that the terminal is allowed, not allowed, or currently not allowed to receive. A push sending agent may send a push message sent from a PI to a push receiving agent in the terminal through an SIP message, in which an Accept-Contact header in the SIP message indicates the service type. 
         [0076]    If a push message control policy is stored in the terminal, a list of service types that the terminal does not wish to receive or currently does not wish to receive or a list of services that the terminal wishes to receive may be defined, and the terminal accomplishes the control of the service type to select to drop the push message, send the push message to other terminals, or temporarily store the push message. 
         [0077]      FIG. 9  is a flow chart of a processing operation performed by a terminal according to a push message control policy. It is assumed that a service type of a push message is a multimedia message in this process. The process includes the following steps. 
         [0078]    In Step  901 , after receiving a push message sent by a PI, a push sending agent sends the push message to a push receiving agent through NOTIFY or MESSAGE in an SIP message. 
         [0079]    In Step  902 , after receiving the push message, the push receiving agent returns a 200OK message to the push sending agent to notify the push sending agent that the push message has been successfully received. 
         [0080]    In Step  903 , the push receiving agent views a service type carried in an Accept-Contact header field in the SIP message that carries the push message, and determines that the push message is a multimedia message. If the terminal is not allowed to receive a service message of a multimedia message in the push message control policy, the push receiving agent drops the push message without sending the push message to an application module, so that the user does not know the arrival of the message; if the terminal is currently not allowed to receive the multimedia message service in the push message control policy, the push receiving agent temporarily stores the push message; and if the terminal is allowed to receive the service message of the multimedia message in the push message control policy, the push message is sent to the application module for performing corresponding service processing. 
         [0081]    If the push message control policy is sent to the push sending agent for storage, a list of services that the terminal is not allowed to receive or currently not allowed to receive or a list of services that the terminal is allowed to receive may be defined similarly, and the push sending agent accomplishes the control of the service type to select to drop the push message, send the push message to other terminals, or temporarily store the push message. In this case, besides being indicated in the Accept-Contact header field in the SIP message encapsulated by the push sending agent, the service type of the push message may also be determined according to a receiving port number of the push sending agent or a source port address of the PI. 
         [0082]      FIG. 10  is a flow chart of a processing operation performed by a push sending agent according to a push message control policy. The process includes the following steps. 
         [0083]    In Step  1001 , a PI sends a push message to the push sending agent. 
         [0084]    In Step  1002 , the push sending agent sends a response to the PI. 
         [0085]    In Step  1003 , the push sending agent compares the push message with a matching condition in the stored push message control policy, and if the matching condition satisfied by the push message is a push content that a terminal is allowed to receive, Step  1004  is performed; otherwise, if the matching condition satisfied by the push message is a push content that the terminal is not allowed to receive, the push message is dropped; and if the matching condition satisfied by the push message is a push content that the terminal is currently not allowed to receive, the push message is temporarily stored. 
         [0086]    In Step  1004 , the push sending agent sends the push message to a push receiving agent through MESSAGE or NOTIFY in an SIP message. 
         [0087]    In Step  1005 , the push receiving agent returns a 200OK message to the push sending agent. 
         [0088]    Fourth, content control 
         [0089]    A terminal may set a content key word of a push message that is not allowed or currently not allowed to be received, for example, reactionary characters, violent characters, advertisement characters, unhealthy characters, politically sensitive characters, and the like. 
         [0090]    The terminal may also set a content key word of a push message that is allowed to be received. For example, a push message containing key words about finance and economics, news, and sports is allowed to be received, and a push message not containing such key words is not received. 
         [0091]    Fifth, trusted PI 
         [0092]    A terminal may set an ID of a trusted PI. Once a push message is received, if a PI sending the push message is a trusted PI, the push message is allowed to be received. 
         [0093]    Table 1 shows examples of specific matching conditions set in the push message control policy. In the actual application, the valid time may also be set for the matching conditions. 
         [0000]    
       
         
               
               
               
               
               
             
           
               
                 TABLE 1 
               
               
                   
               
               
                   
                 Parameter 
                   
                   
                   
               
               
                 Specification 
                 or 
                 Processing 
               
               
                 definition 
                 description 
                 method 
                 Valid time 
                 Value 
               
               
                   
               
             
             
               
                 User ID 
                 User ID 
                   
                   
                 sip:alice@sample.com 
               
               
                 Maximum 
                 Maximum 
                 Drop/pause 
                  9:00-11:00 
                 1300 bytes 
               
               
                 Message 
                 message 
               
               
                 Size 
                 length 
               
               
                   
                 threshold 
               
               
                 App ID 
                 Service ID 
                 Drop/pause/store 
                  9:00-11:00 
                 MMS service: 
               
               
                   
                   
                   
                   
                 x-wap-application:mms.ua 
               
               
                 Feature Tag 
                 Service ID 
                 Drop/pause/store 
                  9:00-11:00 
                 MMS service: 
               
               
                   
                   
                   
                   
                 +g.oma.iari.push.mms.ua 
               
               
                 Content 
                 Content 
                 Drop 
                 00:00-00:00 
                 Reactionary characters, 
               
               
                 Filter 
                 key word 
                   
                   
                 violent characters, 
               
               
                   
                   
                   
                   
                 advertisements, and the 
               
               
                   
                   
                   
                   
                 like 
               
               
                 Whitelist 
                 Trusted PI 
                 Drop/pause 
                 00:00-00:00 
                 www.yahoo.com 
               
               
                   
               
             
          
         
       
     
       First Embodiment 
       [0094]    A terminal sets a push message control policy and sends the set push message control policy to a push sending agent on a server for storage. After a PI sends a push message to the push sending agent, the push sending agent processes the push message according to the stored push message control policy.  FIG. 11  shows a specific process of sending the set push message control policy from the terminal to the push sending agent, that is, the terminal sends the push message control policy to the push sending agent by encapsulating the push message control policy in an SIP message. The process shown in  FIG. 11  includes the following steps. 
         [0095]    In Step  1101 , after setting the push message control policy, the terminal carries the push message control policy in a REGISTER or SUBSCRIBE request message and sends the request message to the push sending agent for storage. 
         [0096]    In Step  1102 , after receiving the push message control policy, the push sending agent returns a 200OK message to the terminal, which indicates that the push message control policy has been successfully received and stored. 
         [0097]    The REGISTER or SUBSCRIBE request message is a specific example of the SIP message. Other SIP messages may also be adopted to carry the push message control policy. The specific carrying manner may include carrying the push message control policy in an SIP header field of an SIP push message. Moreover, the carrying the push message control policy in the SIP message is also a specific application in combination with an SIP push service. In other services besides the SIP push service, other messages may also be adopted to carry the push message control policy, which is associated with the specific application environment. 
         [0098]    Extensible markup language (XML) is a set of rules for creating semantic tags that divide a document into many elements and identify the elements, which is a platform-independent method for describing data. Briefly, the data created by using XML can be read by any application on any platform. In the embodiments of the present invention, the push message control policy may be created by using XML and carried in the SIP message in the format of an XML document. 
         [0099]    Three examples of carrying the push message control policy in the SIP message are introduced below. 
         [0100]    In the first example, the push message control policy is carried in a ua-profile header field of an event in a SUBSCRIBE message. The specific SUBSCRIBE message structure is shown as follows. The message structure is a common sense for those skilled in the art, and thus is illustrated briefly herein. 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                 SUBSCRIBE sip:receiver agent@home1.net SIP/2.0; Message name 
               
               
                 Via:SIP/2.0/UDP[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp;branch= 
               
               
                 z9hG4bKnashds7; 
               
               
                 Path where the message passes through 
               
               
                 Max-Forwards: 70; Hop that the message passes through 
               
               
                 Route: &lt;sip:pcscf1.visited1.net:7531;lr;comp=sigcomp&gt;, 
               
               
                 &lt;sip:orig@scscf1.home1.net;lr&gt;; Designated route information 
               
               
                 From: &lt;sip:receiver agent@home1.net&gt;;tag=31415; Message source 
               
               
                 To: &lt; sip:reveiver agent@home1.net&gt;; Message destination 
               
               
                 Accept-Contact:*;+g.oma.icsi.push’;+g.oma.iari.push.- 
               
               
                 PushSyncML;;require;explicit; Content that can be received 
               
               
                 Event: ua-profile;profile-type=“application”; Event, in which the push 
               
               
                 message control policy is carried in the ua-profile header field in the event 
               
               
                 Call-ID: b89rjhnedlrfjflslj40a222; Session number 
               
               
                 CSeq: 85 SUBSCRIBE; Transaction sequence 
               
               
                 P-Preferred-Identity: “Receiver agent” &lt;sip:reveiver 
               
               
                 agent@home1.net&gt;; Terminal that wishes to accept 
               
               
                 Privacy: none 
               
               
                 Expires: 600000; Time limit 
               
               
                 Accept: application/vnd.syncml.ds.notification; Content format 
               
               
                 Contact: &lt;sip:[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp&gt;; Contact 
               
               
                 address 
               
               
                 Content-Length: 0; Content length 
               
               
                   
               
             
          
         
       
     
         [0101]    The specific push message control policy is carried in the format of an XML document, the structure of which is shown as follows. The XML document structure is a common sense for those skilled in the art, and is introduced briefly herein. 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                 &lt;?xml version=“1.0” encoding=“UTF-8”?&gt; 
               
               
                 &lt;rdf:RDF        xmlns:rdf=“http://www.w3.org/1999/02/22- 
               
               
                 rdf-syntax-ns#”xmlns:prf=“http://www.openmobilealliance.org/tech/ 
               
               
                 profiles/UAPROF/ccppschema-20021212#” xmlns:mms=“http:// 
               
               
                 www.wapforum.org/profiles/MMS/ccppschema-20010111#”&gt; 
               
               
                 -&lt;prf:component&gt; 
               
               
                 -&lt;rdf:Description rdf:ID=“Filterlist”&gt; 
               
               
                 &lt;rdf:type 
               
               
                 rdf:resource=“http://www.openmobilealliance.org/tech/profiles/UAPROF/ 
               
               
                 ccppschema-20021212#filterlist” /&gt;; The above is the specification of the 
               
               
                 current XML document. 
               
               
                 &lt;prf:User_ID&gt;a@example.com&lt;/prf:User_ID&gt;; User ID 
               
               
                 &lt;prf:MaxMessageSize&gt;1500&lt;/prf:MaxMessageSize&gt;; Maximum content 
               
               
                 length value 
               
               
                 &lt;prf:Sevice_ID_Drop&gt;; Service ID for indicating a service type, in which 
               
               
                 a push message conforming to the service type is dropped. 
               
               
                 &lt;rdf:Bag&gt; 
               
               
                      &lt;rdf:li&gt; x-wap-application:sms.ua &lt;/rdf:li&gt;; Short message service 
               
               
                      &lt;rdf:li&gt; x-wap-application:sms.ua &lt;/rdf:li&gt;; Multimedia short 
               
               
                      message service 
               
               
                    &lt;/rdf:Bag&gt; 
               
               
                   &lt;/prf:Sevice_ID_Drop &gt; 
               
               
                 &lt;prf:Content_Drop&gt;; Content key word, in which a push message 
               
               
                 containing such content key word is dropped. 
               
               
                 &lt;rdf:li&gt; reactionary &lt;/rdf:li&gt;; Specific key word 
               
               
                 &lt;rdf:li&gt; violent &lt;/rdf:li&gt;; Specific key word 
               
               
                 &lt;/rdf:Bag&gt; 
               
               
                 &lt;/prf:Content_Drop &gt; 
               
               
                   &lt;prf:PI_Permitted&gt;; ID of a PI, in which a push message from the 
               
               
                   PI is permitted. 
               
               
                    -&lt;rdf:Bag&gt; 
               
               
                      &lt;rdf:li&gt; www.example1.com &lt;/rdf:li&gt;; ID of a specific trusted PI 
               
               
                      &lt;rdf:li&gt; www.example2.com &lt;/rdf:li&gt;; ID of a specific trusted PI 
               
               
                     &lt;/rdf:Bag&gt; 
               
               
                    &lt;/prf:PI_Permitted&gt; 
               
               
                 &lt;/rdf:Description&gt; 
               
               
                  &lt;/prf:component&gt; 
               
               
                 &lt;/rdf:RDF&gt; 
               
               
                   
               
             
          
         
       
     
         [0102]    In the second example, the push message control policy is carried in Accept header field and Content-type of a SUBSCRIBE message. The specific SUBSCRIBE message structure is shown as follows. The meanings of various parts are not described again. 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                 SUBSCRIBE sip:receiver agent@home1.net SIP/2.0 
               
               
                 Via:SIP/2.0/UDP[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp;branch= 
               
               
                 z9hG4bKnashds7 
               
               
                 Max-Forwards: 70 
               
               
                 Route: &lt;sip:pcscf1.visited1.net:7531;lr;comp=sigcomp&gt;, 
               
               
                 &lt;sip:orig@scscf1.home1.net;lr&gt; 
               
               
                 From: &lt;sip:receiver agent@home1.net&gt;;tag=31415 
               
               
                 To: &lt;sip:reveiver agent@home1.net&gt; 
               
               
                 Accept-Contact: *;+g.oma.icsi.push’;+ 
               
               
                 g.oma.iari.push.PushSyncML;;require;explicit 
               
               
                 Event: ua-profile;profile-type=“application” 
               
               
                 Call-ID: b89rjhnedlrfjflslj40a222 
               
               
                 CSeq: 85 SUBSCRIBE 
               
               
                 P-Preferred-Identity: “Receiver agent” &lt;sip:reveiver agent@home1.net&gt; 
               
               
                 Privacy: none 
               
               
                 Expires: 600000 
               
               
                 Accept: application/filterlist+xml; The Accept header field identifies that 
               
               
                 the push message control policy is carried in the format of an XML 
               
               
                 document. 
               
               
                 Content-type: application/filterlist +xml; The push message control policy 
               
               
                 in the format of the XML document is carried in the Content-type header 
               
               
                 field. 
               
               
                 Contact: &lt;sip:[5555::aaa:bbb:ccc:ddd]:1357;comp=sigcomp&gt; 
               
               
                 Content-Length: 0 
               
               
                   
               
             
          
         
       
     
         [0103]    The specific push message control policy is carried in the format of the XML document, the structure of which is shown as follows. 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                 &lt;?xml version=“1.0” encoding=“UTF-8”?&gt; 
               
               
                 &lt;!-- edited with XMLSPY v5 rel.  4 U (http://www.xmlspy.com) by Registred (Registred) 
               
               
                 --&gt; 
               
               
                 &lt;!DOCTYPE Filters SYSTEM “C:\Documents and Settings\user\desktop\filters.dtd”&gt;; The 
               
               
                 above is the specification of the current XML document format. 
               
               
                 &lt;Filters&gt; 
               
               
                   &lt;Filter Filter_Item=“APP_ID” Pro_Methord=“Drop”&gt;; Service ID for indicating a 
               
               
                 service type, in which a push message containing the service ID is dropped. 
               
               
                     &lt;User_ID&gt;a@example.com&lt;/User_ID&gt;; User ID 
               
               
                     &lt;Filter_Value&gt;mms&lt;/Filter_Value&gt;; The specific service type is a multimedia 
               
               
                 message service. 
               
               
                     &lt;Run_Time&gt;00:00-00:00&lt;/Run_Time&gt;; Valid time 
               
               
                   &lt;/Filter&gt; 
               
               
                   &lt;Filter Filter_Item=“APP_ID” Pro_Methord=“Pause”&gt; Service ID for indicating a 
               
               
                 service type, in which the sending of a push message containing the service ID is paused. 
               
               
                     &lt;User_ID&gt;a@example.com&lt;/User_ID&gt;; User ID 
               
               
                     &lt;Filter_Value&gt;email&lt;/Filter_Value&gt;; The specific service type is an E-mail service. 
               
               
                     &lt;Run_Time&gt;18:00-5:00&lt;/Run_Time&gt;; Valid time 
               
               
                   &lt;/Filter&gt; 
               
               
                   &lt;Filter Filter_Item=“Key_Words” Pro_Methord=“Drop”&gt; Indicating a key word, in 
               
               
                 which a push message containing the key word is dropped. 
               
               
                     &lt;User_ID&gt;a@example.com&lt;/User_ID&gt;; User ID 
               
               
                     &lt;Filter_Value&gt; violent &lt;/Filter_Value&gt;; Specific key word 
               
               
                     &lt;Run_Time&gt;00:00-00:00&lt;/Run_Time&gt;; Valid time 
               
               
                   &lt;/Filter&gt; 
               
               
                   &lt;Filter Filter_Item=“Max_Size” Pro_Methord=“Drop”&gt;; Indicating a maximum content 
               
               
                 length, in which a push message exceeding the length is dropped. 
               
               
                     &lt;User_ID&gt;a@example.com&lt;/User_ID&gt;; User ID 
               
               
                     &lt;Filter_Value&gt;1500&lt;/Filter_Value&gt;; Specific maximum content length value 
               
               
                     &lt;Run_Time&gt;00:00-00:00&lt;/Run_Time&gt;; Valid time 
               
               
                   &lt;/Filter&gt; 
               
               
                   &lt;Filter Filter_Item=“PI” Pro_Methord=“Permitted”&gt;; ID of a PI, in which a push 
               
               
                 message containing the ID of the PI is permitted. 
               
               
                     &lt;User_ID&gt;a@example.com&lt;/User_ID&gt;; User ID 
               
               
                     &lt;Filter_Value&gt;sina.com.cn&lt;/Filter_Value&gt;; Specific ID of the PI 
               
               
                     &lt;Run_Time&gt;18:00-5:00&lt;/Run_Time&gt;; Valid time 
               
               
                   &lt;/Filter&gt; 
               
               
                 &lt;/Filters&gt; 
               
               
                   
               
             
          
         
       
     
         [0104]    In the third example, a header field carrying the push message control policy is extended in an SIP push message. Three extended header fields may be adopted to carry the push message control policy. 
         [0105]    The first extended header field is SIP-Push-Trusted-List, which extends the existing SIP header field and is adapted to carry the push message control policy. Certainly, the header field can also carry other SIP service-based control policies. Several specific realizing manners and rules are illustrated below through examples. 
         [0000]    
       
         
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 SIP-Push-Trusted-List:&lt;sip:alice@sample.com&gt; 
               
               
                   
                 SIP-Push-Trusted -List:&lt;sip:bob@sample.com&gt; 
               
               
                   
                 SIP-Push-Trusted -List:&lt;www.sample.com&gt; 
               
               
                   
                 SIP-Push-Trusted -List:13612345678 
               
               
                   
                   
               
             
          
         
       
     
         [0106]    The permitted object in the header field is mainly an ID of a PI, which may be a host name, a telephone number, or a uniform resource identifier (URI) of the SIP. 
         [0107]    The second extended header field is SIP-Push-Block-List for carrying a push message type required to be dropped in the SIP push service. Certainly, the header field may also carry other SIP service-based drop messages. Several specific realizing manners and rules are illustrated below through examples. 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                 SIP-Push-Block-List:&lt;sip:alice@sample.com&gt;,    App_ID=x- 
               
               
                 wap-application:mms.ua, 
               
               
                 Max=1800bytes,Content=“reactionary” 
               
               
                 SIP-Push-Block-List:&lt;sip:bob@sample.com&gt; 
               
               
                 SIP-Push-Block-List:&lt;www.sample.com&gt; 
               
               
                 SIP-Push-Block-List:13612345678 
               
               
                   
               
             
          
         
       
     
         [0108]    The dropped object in the above header field may be an ID of a PI. Alternatively, a multimedia message service may be dropped according to an indication in the APP_ID, a push message larger than 1800 bytes may be dropped according to the specification of the Max field, or a push message having reactionary content may be dropped according to the Content field. 
         [0109]    The third extended header field is SIP-Push-Permit-List for carrying a push message control policy associated with the SIP push service. Certainly, the header field may also carry other SIP service-based control policies. Several specific realizing manners and rules are illustrated below through examples. 
         [0000]    
       
         
               
               
             
           
               
                   
                   
               
             
             
               
                   
                 SIP-Push-Permit-List:&lt;sip:alice@sample.com&gt;, 
               
               
                   
                 App_ID=x-wap-application:mms.ua,Max=1800bytes,permit=allow, 
               
               
                   
                 SIP-Push-Permit-List:&lt;sip:bob@sample.com&gt;,permit=allow 
               
               
                   
                 SIP-Push-Permit-List:www.sample.com,permit=refuse 
               
               
                   
                 SIP-Push-Permit-List:13612345678,permit=refuse 
               
               
                   
                   
               
             
          
         
       
     
         [0110]    In the above header field, the permitted object may be an ID of a PI, the service type required to be allowed is a multimedia message service indicated in the APP_ID, and a push message smaller than 1800 bytes is allowed according to the specification of the Max field. The authorization right is accomplished by the permit attached field. 
         [0111]    A completed SIP message may be formed by the extended header fields provided in the embodiment of the present invention together with relevant header fields in other SIP messages. 
         [0112]    In the first embodiment, the control processing is performed on a received push message according to the process shown in  FIG. 12  after Steps  1101  and  1102  shown in  FIG. 11 . The process shown in  FIG. 12  includes the following blocks. 
         [0113]    In Block  1201 , a push sending agent receives a push message from a PI. 
         [0114]    In Block  1202 , the push sending agent compares the received push message with a matching condition in a push message control policy to determine, for example, whether the push message has an excessively large content, whether the push message contains a key word that is not wished to be received, whether the push message is a service not wished to be received currently, whether the push message is from a trusted PI, whether the current time is a time at which the push message is wished or not wished to be received, whether the set push message control policy is applied, and the like. If the matching condition satisfied by the push message is a push content that the terminal is allowed to receive, Block  1203  is performed; otherwise, if the matching condition satisfied by the push message is a push content that the terminal is not allowed to receive, the push sending agent drops the push message; and if the matching condition satisfied by the push message is a push content that the terminal is currently not allowed to receive, the push sending agent temporarily stores the push message, and Block  1206  is directly performed after the operation of dropping or temporarily storing the push message is finished. 
         [0115]    In Block  1203 , the push sending agent sends the push message to an SIP/IP core network. The specific sending manner includes carrying the push message in an SIP message and sending the SIP message to the SIP/IP core network by the push sending agent. 
         [0116]    In Block  1204 , the SIP/IP core network sends the push message to a push receiving agent. 
         [0117]    In Block  1205 , the push receiving agent returns an acknowledgement message to the push sending agent. 
         [0118]    In Block  1206 , the push sending agent returns a current transmission status of the push message to the PI. In this block, if the push sending agent sends the push message to the push receiving agent, a success message is returned to the PI; and if the push sending agent drops or temporarily stores the push message, a failure message is returned to the PI. 
       Second Preferred Embodiment 
       [0119]    A terminal sets a push message control policy and stores the set push message control policy locally. After a PI sends a push message to a push sending agent, the push sending agent sends the push message to the terminal, and the terminal processes the push message according to the stored push message control policy.  FIG. 13  shows a process of processing the received push message by the terminal. The process includes the following blocks. 
         [0120]    In Block  1301 , a push sending agent sends a push message received from a PI to a push receiving agent in a terminal. The specific sending manner may include carrying the push message in a header field of an SIP message and sending the SIP message to the push receiving agent by the push sending agent. 
         [0121]    In Block  1302 , the push receiving agent compares the received push message with a matching condition in a push message control policy to determine, for example, whether the push message has an excessively large content, whether the push message contains a key word that is not wished to be received, whether the push message is a message that is not wished to be received currently, whether the push message is from a trusted PI, and the like. If the matching condition satisfied by the push message is a push content that the terminal is allowed to receive, Block  1303  is performed; otherwise, if the matching condition satisfied by the push message is a push content that the terminal is not allowed to receive, the push receiving agent drops the push message; and if the matching condition satisfied by the push message is a push content that the terminal is currently not allowed to receive, the push receiving agent temporarily stores the push message, and Block  1304  is directly performed after the operation of dropping or temporarily storing the push message is finished. The push receiving agent may also return a message that the push message has been deleted to the push sending agent when dropping or temporarily storing the push message before directly performing Block  1304 . This block is optional. 
         [0122]    In Block  1303 , the push receiving agent returns an acknowledgement message to the push sending agent and sends the push message to an application module in the terminal for performing corresponding service. 
         [0123]    In Block  1304 , the push sending agent reports a current transferring status of the push message to the PI. In this block, if the push receiving agent sends the push message to the application module in the terminal, a success message is returned to the PI; and if the push receiving agent drops or temporarily stores the push message and returns the message that the push message has been deleted to the push sending agent, the push sending agent returns a failure message to the PI. 
         [0124]    The push message control policies provided in the embodiments of the present invention all need to be converted into a format that can be received by the push sending agent or stored by the terminal. The push message control policy may be stored and sent in the format of an XML document as mentioned in the above embodiments. A framework structure of an XML document including matching conditions and processing modes that can be set in the above five types of push message control policies is further given below. The specific statement structure is a common sense for those skilled in the art, and will not be described herein again. The push message control policy may be formed by filling the specific matching condition and processing mode according to the document structure, and other actually required matching conditions and processing modes may also be extended based on such document structure. 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                 &lt;?xml version=“1.0” encoding=“UTF-8”?&gt; 
               
               
                 &lt;!--W3C Schema generated by XMLSPY v5 rel.  4 U (http://www.xmlspy.com)--&gt; 
               
               
                 &lt;xs:schema        xmlns:xs=“http://www.w3.org/2001/XMLSchema” 
               
               
                 elementFormDefault=“qualified”&gt;; The above is the specification of the XML document. 
               
               
                   &lt;xs:element name=“Filter”&gt; 
               
               
                     &lt;xs:complexType&gt; 
               
               
                       &lt;xs:sequence&gt; 
               
               
                         &lt;xs:element ref=“User_ID” maxOccurs=“unbounded”/&gt;; User ID 
               
               
                         &lt;xs:element ref=“Filter_Value” maxOccurs=“unbounded”/&gt;; Specific 
               
               
                 matching condition can be filled, for example, service ID, specific key word, or the like 
               
               
                         &lt;xs:element ref=“Run_Time” maxOccurs=“unbounded”/&gt;; Valid time 
               
               
                       &lt;/xs:sequence&gt; 
               
               
                       &lt;xs:attribute name=“Filter_Item” use=“required”&gt; 
               
               
                         &lt;xs:simpleType&gt; 
               
               
                           &lt;xs:restriction base=“xs:NMTOKEN”&gt; 
               
               
                             &lt;xs:enumeration value=“Key_Words”/&gt;; Key word 
               
               
                             &lt;xs:enumeration value=“PI”/&gt;; ID of an PI 
               
               
                             &lt;xs:enumeration value=“Feature_Tag”/&gt;; Feature tag, for 
               
               
                 identifying, for example, services 
               
               
                             &lt;xs:enumeration value=“Max_Size”/&gt;; Maximum message 
               
               
                 length 
               
               
                             &lt;xs:enumeration value=“APP_ID”/&gt;; Service ID 
               
               
                           &lt;/xs:restriction&gt; 
               
               
                         &lt;/xs:simpleType&gt; 
               
               
                       &lt;/xs:attribute&gt; 
               
               
                       &lt;xs:attribute name=“Pro_Methord” use=“required”&gt; 
               
               
                         &lt;xs:simpleType&gt; 
               
               
                           &lt;xs:restriction base=“xs:NMTOKEN”&gt; 
               
               
                             &lt;xs:enumeration value=“Pause”/&gt;; Pause 
               
               
                             &lt;xs:enumeration value=“Save”/&gt;; Save 
               
               
                             &lt;xs:enumeration value=“Permitted”/&gt;; Permit 
               
               
                             &lt;xs:enumeration value=“Drop”/&gt;; Drop 
               
               
                           &lt;/xs:restriction&gt; 
               
               
                         &lt;/xs:simpleType&gt; 
               
               
                       &lt;/xs:attribute&gt; 
               
               
                     &lt;/xs:complexType&gt; 
               
               
                   &lt;/xs:element&gt; 
               
               
                   &lt;xs:element name=“Filter_Value” type=“xs:string”/&gt;; The type of the specific matching 
               
               
                 condition that can be filled is a string type. 
               
               
                   &lt;xs:element name=“Filters”&gt; 
               
               
                     &lt;xs:complexType&gt; 
               
               
                       &lt;xs:sequence&gt; 
               
               
                         &lt;xs:element ref=“Filter” maxOccurs=“unbounded”/&gt; 
               
               
                       &lt;/xs:sequence&gt; 
               
               
                     &lt;/xs:complexType&gt; 
               
               
                   &lt;/xs:element&gt; 
               
               
                   &lt;xs:element name=“Run_Time” type=“xs:string”/&gt;; The type of the valid time is string. 
               
               
                   &lt;xs:element name=“User_ID” type=“xs:string”/&gt;; The type of the user ID is string. 
               
               
                 &lt;/xs:schema&gt; 
               
               
                   
               
             
          
         
       
     
         [0125]    In the method, the device, and the system for controlling a push message provided in the embodiments of the present invention, a push message control policy containing a matching condition and a corresponding processing mode is set, and when a received push message satisfies the matching condition in the push message control policy, the received push message is processed according to the processing mode corresponding to the matching condition, thereby realizing control of the push message, so as to enhance the user experience. 
         [0126]    The above descriptions are merely preferred embodiments of the present invention, but are not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present invention fall within the scope of the present invention as recited in the accompanying claims.