Changeset 2077 for pjproject


Ignore:
Timestamp:
Jun 27, 2008 6:48:22 PM (16 years ago)
Author:
bennylp
Message:

Media session should not reject the whole SDP when it receives SDP with unknown media

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/session.c

    r2073 r2077  
    215215 
    216216        si->proto = PJMEDIA_TP_PROTO_UNKNOWN; 
    217         return PJMEDIA_SDP_EINPROTO; 
     217        return PJ_SUCCESS; 
    218218    } 
    219219 
     
    254254    if (local_af==pj_AF_UNSPEC()) { 
    255255        /* Unsupported address family */ 
    256         return PJ_EAFNOTSUP; 
     256        return PJ_SUCCESS; 
    257257    } 
    258258 
     
    298298        si->dir = PJMEDIA_DIR_ENCODING_DECODING; 
    299299 
     300    } 
     301 
     302    /* No need to do anything else if stream is rejected */ 
     303    if (local_m->desc.port == 0) { 
     304        return PJ_SUCCESS; 
    300305    } 
    301306 
Note: See TracChangeset for help on using the changeset viewer.