Ignore:
Timestamp:
Oct 6, 2017 8:14:31 AM (7 years ago)
Author:
riza
Message:

Close #2051: Implement callback wrapper for on_buddy_evsub_state() on pjsua2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r5649 r5672  
    972972 
    973973    buddy->onBuddyState(); 
     974} 
     975 
     976void Endpoint::on_buddy_evsub_state(pjsua_buddy_id buddy_id, 
     977                                    pjsip_evsub *sub, 
     978                                    pjsip_event *event) 
     979{ 
     980    PJ_UNUSED_ARG(sub); 
     981 
     982    Buddy *buddy = (Buddy*)pjsua_buddy_get_user_data(buddy_id); 
     983    if (!buddy || !buddy->isValid()) { 
     984        /* Ignored */ 
     985        return; 
     986    } 
     987 
     988    OnBuddyEvSubStateParam prm; 
     989    prm.e.fromPj(*event); 
     990 
     991    buddy->onBuddyEvSubState(prm); 
    974992} 
    975993 
     
    15311549    ua_cfg.cb.on_mwi_info       = &Endpoint::on_mwi_info; 
    15321550    ua_cfg.cb.on_buddy_state    = &Endpoint::on_buddy_state; 
     1551    ua_cfg.cb.on_buddy_evsub_state = &Endpoint::on_buddy_evsub_state; 
    15331552    ua_cfg.cb.on_acc_find_for_incoming  = &Endpoint::on_acc_find_for_incoming; 
    15341553    ua_cfg.cb.on_ip_change_progress     = &Endpoint::on_ip_change_progress; 
Note: See TracChangeset for help on using the changeset viewer.