Ticket #480: ticket480.patch

File ticket480.patch, 703 bytes (added by nanang, 11 years ago)
  • pjmedia/src/pjmedia/session.c

     
    176176 
    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; 
    187182 
     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; 
     188 
    188189    } 
    189190 
    190191    /* Transport protocol */