Ignore:
Timestamp:
Oct 12, 2010 12:45:15 PM (14 years ago)
Author:
bennylp
Message:

Closed #1144: New presence callback to report subscription state (thanks Johan Lantz for the suggestion):

  • added on_buddy_evsub_state() callback
  • added sample implementation in pjsua_app.c
File:
1 edited

Legend:

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

    r3330 r3339  
    687687     */ 
    688688    void (*on_buddy_state)(pjsua_buddy_id buddy_id); 
     689 
     690 
     691    /** 
     692     * Notify application when the state of client subscription session 
     693     * associated with a buddy has changed. Application may use this 
     694     * callback to retrieve more detailed information about the state 
     695     * changed event. 
     696     * 
     697     * @param buddy_id      The buddy id. 
     698     * @param sub           Event subscription session. 
     699     * @param event         The event which triggers state change event. 
     700     */ 
     701    void (*on_buddy_evsub_state)(pjsua_buddy_id buddy_id, 
     702                                 pjsip_evsub *sub, 
     703                                 pjsip_event *event); 
    689704 
    690705    /** 
Note: See TracChangeset for help on using the changeset viewer.