Ignore:
Timestamp:
Jul 2, 2006 12:29:54 PM (18 years ago)
Author:
bennylp
Message:

Miscellaneous bug fix and improvements in PJMEDIA: (1) more stricker SDP parsing and validation, (2) fixed bug in RTCP attribute generation in SDP, (3) configurable telephone-event payload type

File:
1 edited

Legend:

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

    r568 r571  
    122122    } 
    123123 
     124    /* Transport type must be equal */ 
     125    if (pj_stricmp(&rem_m->desc.transport,  
     126                   &local_m->desc.transport) != 0)  
     127    { 
     128        si->type = PJMEDIA_TYPE_UNKNOWN; 
     129        return PJMEDIA_SDPNEG_EINVANSTP; 
     130    } 
     131 
    124132    /* Media direction: */ 
    125133 
     
    200208    /* Get the payload number for receive channel. */ 
    201209    pt = pj_strtoul(&local_m->desc.fmt[0]); 
     210    pj_assert(PJMEDIA_RTP_PT_TELEPHONE_EVENTS==0 || 
     211              pt != PJMEDIA_RTP_PT_TELEPHONE_EVENTS); 
    202212 
    203213    /* Get codec info. 
Note: See TracChangeset for help on using the changeset viewer.