Changeset 6126


Ignore:
Timestamp:
Dec 26, 2019 3:36:57 AM (4 years ago)
Author:
ming
Message:

Closed #2259: Fix check to cleanup provisional media

File:
1 edited

Legend:

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

    r6106 r6126  
    54905490        } 
    54915491         
    5492         if (tsx->status_code/100 != 2 || 
    5493             ((call->opt.flag & PJSUA_CALL_NO_SDP_OFFER) == 0 && 
    5494              !call->med_update_success)) 
     5492        if (tsx->last_tx->msg->body && 
     5493            (tsx->status_code/100 != 2 || !call->med_update_success)) 
    54955494        { 
    54965495            /* Either we get non-2xx or media update failed, 
     
    55075506                tsx->status_code!=422)) 
    55085507    { 
    5509         if (tsx->status_code/100 != 2 || 
    5510             ((call->opt.flag & PJSUA_CALL_NO_SDP_OFFER) == 0 && 
    5511              !call->med_update_success)) 
     5508        if (tsx->last_tx->msg->body && 
     5509            (tsx->status_code/100 != 2 || !call->med_update_success)) 
    55125510        { 
    55135511            /* Either we get non-2xx or media update failed, 
Note: See TracChangeset for help on using the changeset viewer.