Changeset 629 for pjproject/trunk
- Timestamp:
- Jul 26, 2006 5:05:39 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r620 r629 117 117 puts (" --rtp-port=N Base port to try for RTP (default=4000)"); 118 118 puts (" --quality=N Specify media quality (0-10, default=10)"); 119 /*120 119 puts (" --ptime=MSEC Override codec ptime to MSEC (default=specific)"); 121 */ 120 puts (" --no-vad Disable VAD/silence detector (default=vad enabled)"); 121 122 122 puts (""); 123 123 puts ("Buddy List (can be more than one):"); … … 249 249 OPT_AUTO_CONF, OPT_CLOCK_RATE, 250 250 OPT_PLAY_FILE, OPT_RTP_PORT, OPT_ADD_CODEC, 251 OPT_COMPLEXITY, OPT_QUALITY, OPT_PTIME, 251 OPT_COMPLEXITY, OPT_QUALITY, OPT_PTIME, OPT_NO_VAD, 252 252 OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS, 253 253 OPT_DURATION, OPT_NO_TCP, OPT_NO_UDP, … … 290 290 { "quality", 1, 0, OPT_QUALITY}, 291 291 { "ptime", 1, 0, OPT_PTIME}, 292 { "no-vad", 0, 0, OPT_NO_VAD}, 292 293 { "next-account",0,0, OPT_NEXT_ACCOUNT}, 293 294 { "next-cred", 0, 0, OPT_NEXT_CRED}, … … 592 593 cfg->duration = my_atoi(pj_optarg); 593 594 break; 595 */ 594 596 595 597 case OPT_PTIME: 596 cfg-> ptime = my_atoi(pj_optarg);597 if (cfg-> ptime < 10 || cfg->ptime > 1000) {598 cfg->media_cfg.ptime = my_atoi(pj_optarg); 599 if (cfg->media_cfg.ptime < 10 || cfg->media_cfg.ptime > 1000) { 598 600 PJ_LOG(1,(THIS_FILE, 599 601 "Error: invalid --ptime option")); … … 602 604 break; 603 605 604 */ 606 case OPT_NO_VAD: 607 cfg->media_cfg.no_vad = PJ_TRUE; 608 break; 605 609 606 610 case OPT_QUALITY: -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r612 r629 2091 2091 */ 2092 2092 unsigned quality; 2093 2094 /** 2095 * Specify default ptime. 2096 * 2097 * Default: 0 (codec specific) 2098 */ 2099 unsigned ptime; 2100 2101 /** 2102 * Disable VAD? 2103 * 2104 * Default: 0 (no (meaning VAD is enabled)) 2105 */ 2106 pj_bool_t no_vad; 2093 2107 }; 2094 2108 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r611 r629 1853 1853 1854 1854 /* Override ptime, if this option is specified. */ 1855 PJ_TODO(set_codec_ptime_in_call); 1855 if (pjsua_var.media_cfg.ptime != 0) { 1856 sess_info.stream_info[0].param->setting.frm_per_pkt = 1857 pjsua_var.media_cfg.ptime / sess_info.stream_info[0].param->info.frm_ptime; 1858 if (sess_info.stream_info[0].param->setting.frm_per_pkt == 0) 1859 sess_info.stream_info[0].param->setting.frm_per_pkt = 1; 1860 } 1861 1862 /* Disable VAD, if this option is specified. */ 1863 if (pjsua_var.media_cfg.no_vad) { 1864 sess_info.stream_info[0].param->setting.vad = 0; 1865 } 1856 1866 1857 1867
Note: See TracChangeset
for help on using the changeset viewer.