Ignore:
Timestamp:
Jun 30, 2009 1:53:47 PM (15 years ago)
Author:
bennylp
Message:

Related to #911:

  • added subscription state name string in pjsua_buddy_info and display this in pjsua
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r2762 r2824  
    196196    if (buddy->sub) { 
    197197        info->sub_state = pjsip_evsub_get_state(buddy->sub); 
     198        info->sub_state_name = pjsip_evsub_get_state_name(buddy->sub); 
    198199        if (info->sub_state == PJSIP_EVSUB_STATE_TERMINATED && 
    199200            total < sizeof(info->buf_))  
     
    208209        } 
    209210    } else if (total < sizeof(info->buf_)) { 
     211        info->sub_state_name = "NULL"; 
    210212        info->sub_term_reason.ptr = info->buf_ + total; 
    211213        pj_strncpy(&info->sub_term_reason, &buddy->term_reason, 
     
    213215        total += info->sub_term_reason.slen; 
    214216    } else { 
     217        info->sub_state_name = "NULL"; 
    215218        info->sub_term_reason = pj_str(""); 
    216219    } 
Note: See TracChangeset for help on using the changeset viewer.