Ignore:
Timestamp:
Aug 25, 2007 1:36:15 PM (17 years ago)
Author:
bennylp
Message:

Implement ticket #336: custom presence status in NOTIFY/PUBLISH, supporting subset of RPID elements

File:
1 edited

Legend:

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

    r1423 r1424  
    19191919 
    19201920    /** 
     1921     * Presence online status text. 
     1922     */ 
     1923    pj_str_t            online_status_text; 
     1924 
     1925    /** 
     1926     * Extended RPID online status information. 
     1927     */ 
     1928    pjrpid_element      rpid; 
     1929 
     1930    /** 
    19211931     * Buffer that is used internally to store the status text. 
    19221932     */ 
     
    20812091 * Modify account's presence status to be advertised to remote/presence 
    20822092 * subscribers. This would trigger the sending of outgoing NOTIFY request 
    2083  * if there are server side presence subscription for this account. 
     2093 * if there are server side presence subscription for this account, and/or 
     2094 * outgoing PUBLISH if presence publication is enabled for this account. 
     2095 * 
     2096 * @see pjsua_acc_set_online_status2() 
    20842097 * 
    20852098 * @param acc_id        The account ID. 
     
    20962109                                                 pj_bool_t is_online); 
    20972110 
     2111/** 
     2112 * Modify account's presence status to be advertised to remote/presence 
     2113 * subscribers. This would trigger the sending of outgoing NOTIFY request 
     2114 * if there are server side presence subscription for this account, and/or 
     2115 * outgoing PUBLISH if presence publication is enabled for this account. 
     2116 * 
     2117 * @see pjsua_acc_set_online_status() 
     2118 * 
     2119 * @param acc_id        The account ID. 
     2120 * @param is_online     True of false. 
     2121 * @param pr            Extended information in subset of RPID format 
     2122 *                      which allows setting custom presence text. 
     2123 * 
     2124 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     2125 */ 
     2126PJ_DECL(pj_status_t) pjsua_acc_set_online_status2(pjsua_acc_id acc_id, 
     2127                                                  pj_bool_t is_online, 
     2128                                                  const pjrpid_element *pr); 
    20982129 
    20992130/** 
     
    29893020 
    29903021    /** 
     3022     * Extended RPID information about the person. 
     3023     */ 
     3024    pjrpid_element      rpid; 
     3025 
     3026    /** 
    29913027     * Internal buffer. 
    29923028     */ 
    2993     char                buf_[256]; 
     3029    char                buf_[512]; 
    29943030 
    29953031} pjsua_buddy_info; 
Note: See TracChangeset for help on using the changeset viewer.