Changeset 3512


Ignore:
Timestamp:
Apr 8, 2011 4:26:18 AM (10 years ago)
Author:
nanang
Message:

Re #1201:

  • fix bug responding 488 after receiving re-INVITE for doublehold
  • updated pjsua_media.c to skip instantiating video devs when call hold by local.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c

    r3500 r3512  
    12671267    for (i=0; i<sdp->media_count && count<PJSUA_MAX_CALL_MEDIA; ++i) { 
    12681268        const pjmedia_sdp_media *m = sdp->media[i]; 
     1269        const pjmedia_sdp_conn *c; 
    12691270 
    12701271        /* Skip different media */ 
     
    12731274            continue; 
    12741275        } 
     1276 
     1277        c = m->conn? m->conn : sdp->conn; 
    12751278 
    12761279        /* Supported transports */ 
     
    13061309 
    13071310        /* Is media inactive? */ 
    1308         if (pjmedia_sdp_media_find_attr2(m, "inactive", NULL)) 
    1309             score[i] -= 10; 
     1311        if (pjmedia_sdp_media_find_attr2(m, "inactive", NULL) || 
     1312            pj_strcmp2(&c->addr, "0.0.0.0") == 0) 
     1313        { 
     1314            //score[i] -= 10; 
     1315            score[i] -= 1; 
     1316        } 
    13101317 
    13111318        ++count; 
     
    23012308 
    23022309        /* Setup encoding direction */ 
    2303         if (si->dir & PJMEDIA_DIR_ENCODING) { 
     2310        if (si->dir & PJMEDIA_DIR_ENCODING && !call->local_hold) { 
    23042311            pjmedia_vid_port_param vport_param; 
    23052312 
Note: See TracChangeset for help on using the changeset viewer.