Changeset 5672 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Oct 6, 2017 8:14:31 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5649 r5672 972 972 973 973 buddy->onBuddyState(); 974 } 975 976 void 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); 974 992 } 975 993 … … 1531 1549 ua_cfg.cb.on_mwi_info = &Endpoint::on_mwi_info; 1532 1550 ua_cfg.cb.on_buddy_state = &Endpoint::on_buddy_state; 1551 ua_cfg.cb.on_buddy_evsub_state = &Endpoint::on_buddy_evsub_state; 1533 1552 ua_cfg.cb.on_acc_find_for_incoming = &Endpoint::on_acc_find_for_incoming; 1534 1553 ua_cfg.cb.on_ip_change_progress = &Endpoint::on_ip_change_progress;
Note: See TracChangeset
for help on using the changeset viewer.