Changeset 2824
- Timestamp:
- Jun 30, 2009 1:53:47 PM (15 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2724 r2824 2534 2534 pjsua_buddy_get_info(buddy_id, &info); 2535 2535 2536 PJ_LOG(3,(THIS_FILE, "%.*s status is %.*s ",2536 PJ_LOG(3,(THIS_FILE, "%.*s status is %.*s (subscription state is %s)", 2537 2537 (int)info.uri.slen, 2538 2538 info.uri.ptr, 2539 2539 (int)info.status_text.slen, 2540 info.status_text.ptr)); 2540 info.status_text.ptr, 2541 info.sub_state_name)); 2541 2542 } 2542 2543 -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r2762 r2824 2897 2897 2898 2898 /** 2899 * String representation of subscription state. 2900 */ 2901 const char *sub_state_name; 2902 2903 /** 2899 2904 * Specifies the last presence subscription terminatino reason. If 2900 2905 * presence subscription is currently active, the value will be empty. -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r2762 r2824 196 196 if (buddy->sub) { 197 197 info->sub_state = pjsip_evsub_get_state(buddy->sub); 198 info->sub_state_name = pjsip_evsub_get_state_name(buddy->sub); 198 199 if (info->sub_state == PJSIP_EVSUB_STATE_TERMINATED && 199 200 total < sizeof(info->buf_)) … … 208 209 } 209 210 } else if (total < sizeof(info->buf_)) { 211 info->sub_state_name = "NULL"; 210 212 info->sub_term_reason.ptr = info->buf_ + total; 211 213 pj_strncpy(&info->sub_term_reason, &buddy->term_reason, … … 213 215 total += info->sub_term_reason.slen; 214 216 } else { 217 info->sub_state_name = "NULL"; 215 218 info->sub_term_reason = pj_str(""); 216 219 }
Note: See TracChangeset
for help on using the changeset viewer.