Ignore:
Timestamp:
Jan 28, 2020 6:58:45 AM (4 years ago)
Author:
ming
Message:

Closed #2143: Add AEC info to call info & statistics dump

File:
1 edited

Legend:

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

    r5729 r6140  
    370370        p += len; 
    371371 
     372        if (call_med->type == PJMEDIA_TYPE_AUDIO) { 
     373            if (pjsua_snd_is_active()) { 
     374                pjmedia_echo_stat stat; 
     375                pj_status_t status; 
     376                 
     377                status = pjsua_get_ec_stat(&stat); 
     378                if (status == PJ_SUCCESS) { 
     379                    len = pj_ansi_snprintf(p, end-p, "   %s  EC stat: %.*s\n", 
     380                                           indent, 
     381                                           (int)stat.stat_info.slen, 
     382                                           stat.stat_info.ptr); 
     383                    if (len < 1 || len >= end-p) { 
     384                        *p = '\0'; 
     385                        return; 
     386                    } 
     387                    p += len; 
     388                } 
     389            } 
     390        } 
     391 
    372392        /* Get and ICE SRTP status */ 
    373393        if (call_med->tp) { 
Note: See TracChangeset for help on using the changeset viewer.