Ignore:
Timestamp:
Apr 5, 2006 7:08:16 PM (18 years ago)
Author:
bennylp
Message:

Added detection/protection against inaccurate timestamp in RTCP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/siprtp.c

    r384 r388  
    176176                       pj_status_t status); 
    177177 
    178  
     178/* Print call */ 
     179static void print_call(int call_index); 
    179180 
    180181 
     
    676677        pj_time_val null_time = {0, 0}; 
    677678 
     679        PJ_LOG(3,(THIS_FILE, "Call #%d disconnected. Reason=%s", 
     680                  call->index, 
     681                  pjsip_get_status_text(inv->cause)->ptr)); 
     682        PJ_LOG(3,(THIS_FILE, "Call #%d statistics:", call->index)); 
     683        print_call(call->index); 
     684 
     685 
    678686        call->inv = NULL; 
    679687        inv->mod_data[mod_siprtp.id] = NULL; 
     
    685693        call->connect_time = null_time; 
    686694 
    687         PJ_LOG(3,(THIS_FILE, "Call #%d disconnected. Reason=%s", 
    688                   call->index, 
    689                   pjsip_get_status_text(inv->cause)->ptr)); 
    690695 
    691696    } else if (inv->state == PJSIP_INV_STATE_CONFIRMED) { 
     
    14721477 
    14731478 
    1474     if (call->media[0].thread == NULL) { 
     1479    if (call->inv == NULL || call->inv->state < PJSIP_INV_STATE_CONFIRMED) { 
    14751480        return; 
    14761481    } 
Note: See TracChangeset for help on using the changeset viewer.