Ignore:
Timestamp:
Jul 17, 2008 2:19:10 PM (16 years ago)
Author:
bennylp
Message:

Ticket #192: Add callback to notify application about incoming SUBSCRIBE request, and add subscription state and termination reason in buddy info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h

    r2130 r2150  
    8686 * Server presence subscription list head. 
    8787 */ 
    88 typedef struct pjsua_srv_pres 
     88struct pjsua_srv_pres 
    8989{ 
    9090    PJ_DECL_LIST_MEMBER(struct pjsua_srv_pres); 
    91     pjsip_evsub     *sub; 
    92     char            *remote; 
    93 } pjsua_srv_pres; 
     91    pjsip_evsub     *sub;           /**< The evsub.                         */ 
     92    char            *remote;        /**< Remote URI.                        */ 
     93    int              acc_id;        /**< Account ID.                        */ 
     94    pjsip_dialog    *dlg;           /**< Dialog.                            */ 
     95    int              expires;       /**< "expires" value in the request.    */ 
     96}; 
    9497 
    9598 
     
    151154} pjsua_transport_data; 
    152155 
     156 
     157/** Maximum length of subscription termination reason. */ 
     158#define PJSUA_BUDDY_SUB_TERM_REASON_LEN     32 
    153159 
    154160/** 
     
    168174    pjsip_dialog        *dlg;       /**< The underlying dialog.         */ 
    169175    pjsip_evsub         *sub;       /**< Buddy presence subscription    */ 
     176    pj_str_t             term_reason;/**< Subscription termination reason */ 
    170177    pjsip_pres_status    status;    /**< Buddy presence status.         */ 
    171178 
Note: See TracChangeset for help on using the changeset viewer.