Changeset 5930


Ignore:
Timestamp:
Jan 21, 2019 3:56:53 AM (3 months ago)
Author:
ming
Message:

Re #2173: Fixed assertion caused by PJMEDIA_SDP_EMISSINGCONN, if incoming INVITE contains unsupported media (such as video when PJSIP is built without video).

The assertion happens in:
pjsip_inv_verify_request3: Assertion `(status=pjmedia_sdp_validate(l_sdp))==PJ_SUCCESS' failed.

File:
1 edited

Legend:

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

    r5928 r5930  
    11621162        if (status != PJ_SUCCESS) 
    11631163            return status; 
     1164 
     1165        /* Add connection line, if none */ 
     1166        if (m->conn == NULL && sdp->conn == NULL) { 
     1167            m->conn = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_conn); 
     1168            m->conn->net_type = pj_str("IN"); 
     1169            if (med_use_ipv4) { 
     1170                m->conn->addr_type = pj_str("IP4"); 
     1171                m->conn->addr = pj_str("127.0.0.1"); 
     1172            } else { 
     1173                m->conn->addr_type = pj_str("IP6"); 
     1174                m->conn->addr = pj_str("::1"); 
     1175            } 
     1176        } 
     1177 
    11641178        sdp->media[sdp->media_count++] = m; 
    11651179    }       
Note: See TracChangeset for help on using the changeset viewer.