Changeset 1734


Ignore:
Timestamp:
Jan 23, 2008 8:34:11 PM (11 years ago)
Author:
bennylp
Message:

Handle SDP offer containing application as the media type

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/types.h

    r1639 r1734  
    6464     *  encoding_name. 
    6565     */ 
    66     PJMEDIA_TYPE_UNKNOWN = 3 
     66    PJMEDIA_TYPE_UNKNOWN = 3, 
     67 
     68    /** The media is application. */ 
     69    PJMEDIA_TYPE_APPLICATION = 4 
    6770 
    6871} pjmedia_type; 
  • pjproject/trunk/pjmedia/src/pjmedia/session.c

    r1689 r1734  
    5151static const pj_str_t ID_AUDIO = { "audio", 5}; 
    5252static const pj_str_t ID_VIDEO = { "video", 5}; 
     53static const pj_str_t ID_APPLICATION = { "application", 11}; 
    5354static const pj_str_t ID_IN = { "IN", 2 }; 
    5455static const pj_str_t ID_IP4 = { "IP4", 3}; 
     
    176177        si->type = PJMEDIA_TYPE_VIDEO; 
    177178 
     179    } else if (pj_stricmp(&local_m->desc.media, &ID_APPLICATION) == 0) { 
     180 
     181        si->type = PJMEDIA_TYPE_APPLICATION; 
     182 
    178183    } else { 
    179184 
    180185        si->type = PJMEDIA_TYPE_UNKNOWN; 
    181186        return PJMEDIA_EINVALIMEDIATYPE; 
     187 
    182188    } 
    183189 
     
    580586        if (status != PJ_SUCCESS) 
    581587            return status; 
    582  
    583588    } 
    584589 
Note: See TracChangeset for help on using the changeset viewer.