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/pjsua-lib/pjsua_internal.h

    r648 r685  
    9898    pj_bool_t        online_status; /**< Our online status.             */ 
    9999    pjsua_srv_pres   pres_srv_list; /**< Server subscription list.      */ 
     100    pjsip_publishc  *publish_sess;  /**< Client publication session.    */ 
     101    pj_bool_t        publish_state; /**< Last published online status   */ 
    100102 
    101103} pjsua_acc; 
     
    256258 
    257259 
     260#if 0 
    258261#define PJSUA_LOCK()        pj_mutex_lock(pjsua_var.mutex); 
    259262#define PJSUA_UNLOCK()      pj_mutex_unlock(pjsua_var.mutex); 
     263#else 
     264#define PJSUA_LOCK() 
     265#define PJSUA_UNLOCK() 
     266#endif 
    260267 
    261268 
     
    285292 */ 
    286293void pjsua_pres_shutdown(void); 
     294 
     295/** 
     296 * Init presence for aoocunt. 
     297 */ 
     298pj_status_t pjsua_pres_init_acc(int acc_id); 
    287299 
    288300/** 
Note: See TracChangeset for help on using the changeset viewer.