Ignore:
Timestamp:
Nov 23, 2016 1:03:56 AM (8 years ago)
Author:
ming
Message:

Fixed #1981: Assertion when session timer is disabled and PJSIP receives 422

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_timer.c

    r4967 r5488  
    734734 
    735735    /* Check if Session Timers is supported */ 
    736     if ((inv->options & PJSIP_INV_SUPPORT_TIMER) == 0) 
    737         return PJ_SUCCESS; 
     736    if ((inv->options & PJSIP_INV_SUPPORT_TIMER) == 0) { 
     737        if (rdata->msg_info.msg->line.status.code ==  
     738            PJSIP_SC_SESSION_TIMER_TOO_SMALL) 
     739        { 
     740            return PJSIP_EINVALIDSTATUS; 
     741        } else { 
     742            return PJ_SUCCESS; 
     743        } 
     744    } 
    738745 
    739746    pj_assert(is_initialized); 
Note: See TracChangeset for help on using the changeset viewer.