Changeset 2196


Ignore:
Timestamp:
Aug 7, 2008 9:55:52 AM (16 years ago)
Author:
bennylp
Message:

Ticket #586: Added ICE negotiations test to test the scenario when two agents have different number of components

Location:
pjproject/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r2191 r2196  
    250250    puts  ("Media Transport Options:"); 
    251251    puts  ("  --use-ice           Enable ICE (default:no)"); 
    252     puts  ("  --ice-no-host       Disable ICE host candidates"); 
     252    puts  ("  --ice-no-host       Disable ICE host candidates (default: no)"); 
     253    puts  ("  --ice-no-rtcp       Disable RTCP component in ICE (default: no)"); 
    253254    puts  ("  --rtp-port=N        Base port to try for RTP (default=4000)"); 
    254255    puts  ("  --rx-drop-pct=PCT   Drop PCT percent of RX RTP (for pkt lost sim, default: 0)"); 
     
    457458           OPT_AUTO_CONF, OPT_CLOCK_RATE, OPT_SND_CLOCK_RATE, OPT_STEREO, 
    458459           OPT_USE_ICE, OPT_USE_SRTP, OPT_SRTP_SECURE, 
    459            OPT_USE_TURN, OPT_ICE_NO_HOST, OPT_TURN_SRV, OPT_TURN_TCP, 
    460            OPT_TURN_USER, OPT_TURN_PASSWD, 
     460           OPT_USE_TURN, OPT_ICE_NO_HOST, OPT_ICE_NO_RTCP, OPT_TURN_SRV,  
     461           OPT_TURN_TCP, OPT_TURN_USER, OPT_TURN_PASSWD, 
    461462           OPT_PLAY_FILE, OPT_PLAY_TONE, OPT_RTP_PORT, OPT_ADD_CODEC,  
    462463           OPT_ILBC_MODE, OPT_REC_FILE, OPT_AUTO_REC, 
     
    530531        { "use-turn",   0, 0, OPT_USE_TURN}, 
    531532        { "ice-no-host",0, 0, OPT_ICE_NO_HOST}, 
     533        { "ice-no-rtcp",0, 0, OPT_ICE_NO_RTCP}, 
    532534        { "turn-srv",   1, 0, OPT_TURN_SRV}, 
    533535        { "turn-tcp",   0, 0, OPT_TURN_TCP}, 
     
    948950            break; 
    949951 
     952        case OPT_ICE_NO_RTCP: 
     953            cfg->media_cfg.ice_no_rtcp = PJ_TRUE; 
     954            break; 
     955 
    950956        case OPT_TURN_SRV: 
    951957            cfg->media_cfg.turn_server = pj_str(pj_optarg); 
     
    15551561    if (config->media_cfg.ice_no_host_cands) 
    15561562        pj_strcat2(&cfg, "--ice-no-host\n"); 
     1563 
     1564    if (config->media_cfg.ice_no_rtcp) 
     1565        pj_strcat2(&cfg, "--ice-no-rtcp\n"); 
    15571566 
    15581567    if (config->media_cfg.turn_server.slen) { 
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r2162 r2196  
    41024102 
    41034103    /** 
     4104     * Disable RTCP component. 
     4105     * 
     4106     * Default: no 
     4107     */ 
     4108    pj_bool_t           ice_no_rtcp; 
     4109 
     4110    /** 
    41044111     * Enable TURN relay candidate in ICE. 
    41054112     */ 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r2191 r2196  
    759759 
    760760        comp_cnt = 1; 
    761         if (PJMEDIA_ADVERTISE_RTCP) 
     761        if (PJMEDIA_ADVERTISE_RTCP && !pjsua_var.media_cfg.ice_no_rtcp) 
    762762            ++comp_cnt; 
    763763 
Note: See TracChangeset for help on using the changeset viewer.