Ignore:
Timestamp:
Aug 15, 2006 8:26:34 PM (18 years ago)
Author:
bennylp
Message:

Support for PUBLISH (RFC 3903):

  • API BREAK: pjsua_pres_create_uac() API CHANGED!! Added options in the function, to allow creating SUBSCRIBE without ";id=" parameter in the Event header.
  • the generic event publication in pjsip-simple/publish.[hc]
  • split PIDF and X-PIDF body generation and parsing into pjsip-simple/presence_body.c.
  • allow NULL in module parameter in pjsip_endpt_add_capability()
  • added "--publish" option in PJSUA.
  • by default, PJSUA-LIB will not add ";id=" parameter in Event header in the SUBSCRIBE request since lots of server and user agents don't support this correctly.
  • Set version to 0.5.7.6.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-simple/publish.h

    r683 r685  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #ifndef __PJSIP_SIMPLE_PRESENCE_H__ 
    20 #define __PJSIP_SIMPLE_PRESENCE_H__ 
     19#ifndef __PJSIP_SIMPLE_PUBLISH_H__ 
     20#define __PJSIP_SIMPLE_PUBLISH_H__ 
    2121 
    2222/** 
     
    2424 * @brief SIP Extension for Event State Publication (PUBLISH, RFC 3903) 
    2525 */ 
     26 
     27#include <pjsip/sip_util.h> 
    2628 
    2729 
     
    3840 Extension for Event State Publication (PUBLISH) as defined by RFC 3856. 
    3941 */ 
     42 
     43/** 
     44 * The SIP PUBLISH method constant. 
     45 */ 
     46extern const pjsip_method pjsip_publish_method; 
    4047 
    4148 
     
    7885 
    7986 
     87/** 
     88 * Initialize client publication module. 
     89 * 
     90 * @param endpt     SIP endpoint. 
     91 * 
     92 * @return          PJ_SUCCESS on success. 
     93 */ 
     94PJ_DECL(pj_status_t) pjsip_publishc_init_module(pjsip_endpoint *endpt); 
     95 
     96 
    8097 
    8198/** 
     
    83100 * 
    84101 * @param endpt     Endpoint, used to allocate pool from. 
     102 * @param options   Option flags. 
    85103 * @param token     Opaque data to be associated with the client publication. 
    86104 * @param cb        Pointer to callback function to receive publication status. 
     
    90108 */ 
    91109PJ_DECL(pj_status_t) pjsip_publishc_create( pjsip_endpoint *endpt,  
     110                                            unsigned options, 
    92111                                            void *token, 
    93112                                            pjsip_publishc_cb *cb,  
     
    249268 
    250269 
    251 #endif  /* __PJSIP_SIMPLE_PRESENCE_H__ */ 
    252  
     270#endif  /* __PJSIP_SIMPLE_PUBLISH_H__ */ 
     271 
Note: See TracChangeset for help on using the changeset viewer.