Changeset 4695 for pjproject


Ignore:
Timestamp:
Dec 18, 2013 7:10:12 AM (11 years ago)
Author:
nanang
Message:

Fixed #1718: Immediately shift call state to DISCONNECTED after receiving 422 response without Min-SE header.

Location:
pjproject/trunk/pjsip/src/pjsip-ua
Files:
2 edited

Legend:

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

    r4653 r4695  
    36863686         */ 
    36873687        status = handle_timer_response(inv, e->body.tsx_state.src.rdata, 
    3688                                        PJ_TRUE); 
     3688                                       PJ_FALSE); 
     3689        if (status != PJ_SUCCESS) 
     3690            goto terminate_session; 
    36893691 
    36903692    } else if (PJSIP_IS_STATUS_IN_CLASS(tsx->status_code, 600)) { 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_timer.c

    r4537 r4695  
    724724                     pjsip_msg_find_hdr_by_name(msg, &STR_MIN_SE, NULL); 
    725725        if (min_se_hdr == NULL) { 
    726             /* Response 422 should contain Min-SE header */ 
    727             return PJ_SUCCESS; 
     726            /* Response 422 MUST contain Min-SE header */ 
     727            PJ_LOG(3, (inv->pool->obj_name,  
     728                       "Received 422 (Session Interval Too Small) response " 
     729                       "without Min-SE header!")); 
     730 
     731            pjsip_timer_end_session(inv); 
     732            return PJSIP_EMISSINGHDR; 
    728733        } 
    729734 
Note: See TracChangeset for help on using the changeset viewer.