Changeset 4539 for pjproject/trunk


Ignore:
Timestamp:
Jun 21, 2013 5:12:58 AM (11 years ago)
Author:
ming
Message:

Closed #1682: Configurable local port range for UDP media transport

File:
1 edited

Legend:

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

    r4537 r4539  
    282282    /* Loop retry to bind RTP and RTCP sockets. */ 
    283283    for (i=0; i<RTP_RETRY; ++i, next_rtp_port += 2) { 
     284 
     285        if (cfg->port > 0 && cfg->port_range > 0 && 
     286            next_rtp_port > cfg->port + cfg->port_range) 
     287        { 
     288            next_rtp_port = (pj_uint16_t)cfg->port; 
     289        } 
    284290 
    285291        /* Create RTP socket. */ 
Note: See TracChangeset for help on using the changeset viewer.