Ignore:
Timestamp:
Jun 23, 2010 12:38:28 PM (14 years ago)
Author:
bennylp
Message:

Fixed #1079 (Media transport should be kept alive during double-hold scenario). Details:

  • now the stream will be destroyed but the media transport will be kept alive during doublehold scenario
  • small fix in SRTP to also negotiate crypto even when the media is marked as inactive, otherwise it's possible that an "optional" endpoint would create RTP/AVP offer and send it to "mandatory" endpoint, which would be rejected and cause the media port to be set to zero
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r3206 r3219  
    21852185        } 
    21862186 
    2187         if (info.stream_info[i].dir == PJMEDIA_DIR_ENCODING) 
     2187        if (call->media_dir == PJMEDIA_DIR_NONE) { 
     2188            /* To handle when the stream that is currently being paused 
     2189             * (http://trac.pjsip.org/repos/ticket/1079) 
     2190             */ 
     2191            dir = "inactive"; 
     2192        } else if (info.stream_info[i].dir == PJMEDIA_DIR_ENCODING) 
    21882193            dir = "sendonly"; 
    21892194        else if (info.stream_info[i].dir == PJMEDIA_DIR_DECODING) 
Note: See TracChangeset for help on using the changeset viewer.