Changeset 1801 for pjproject


Ignore:
Timestamp:
Feb 15, 2008 5:33:15 PM (17 years ago)
Author:
bennylp
Message:

Ticket #480: PJSIP rejects incoming call with m=image in the offer (thanks Thiago)

File:
1 edited

Legend:

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

    r1734 r1801  
    177177        si->type = PJMEDIA_TYPE_VIDEO; 
    178178 
    179     } else if (pj_stricmp(&local_m->desc.media, &ID_APPLICATION) == 0) { 
    180  
    181         si->type = PJMEDIA_TYPE_APPLICATION; 
    182  
    183179    } else { 
    184180 
    185181        si->type = PJMEDIA_TYPE_UNKNOWN; 
    186         return PJMEDIA_EINVALIMEDIATYPE; 
     182 
     183        /* Avoid rejecting call because of unrecognized media,  
     184         * just return PJ_SUCCESS, this media will be deactivated later. 
     185         */ 
     186        //return PJMEDIA_EINVALIMEDIATYPE; 
     187        return PJ_SUCCESS; 
    187188 
    188189    } 
Note: See TracChangeset for help on using the changeset viewer.