- Timestamp:
- Mar 17, 2011 4:34:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip-apps/src/pjsua/pjsua_app.c
r3372 r3457 268 268 269 269 puts (""); 270 puts (" MediaOptions:");270 puts ("Audio Options:"); 271 271 puts (" --add-codec=name Manually add codec (default is to enable all)"); 272 272 puts (" --dis-codec=name Disable codec (can be specified multiple times)"); … … 302 302 puts (" --no-tones Disable audible tones"); 303 303 puts (" --jb-max-size Specify jitter buffer maximum size, in frames (default=-1)"); 304 puts (" --extra-audio Add one more audio stream"); 305 306 puts (""); 307 puts ("Video Options:"); 308 puts (" --video Enable video"); 304 309 305 310 puts (""); … … 541 546 OPT_AUTO_UPDATE_NAT,OPT_USE_COMPACT_FORM,OPT_DIS_CODEC, 542 547 OPT_NO_FORCE_LR, 543 OPT_TIMER, OPT_TIMER_SE, OPT_TIMER_MIN_SE 548 OPT_TIMER, OPT_TIMER_SE, OPT_TIMER_MIN_SE, 549 OPT_VIDEO, OPT_EXTRA_AUDIO 544 550 }; 545 551 struct pj_getopt_option long_options[] = { … … 660 666 { "timer-min-se", 1, 0, OPT_TIMER_MIN_SE}, 661 667 { "outb-rid", 1, 0, OPT_OUTB_RID}, 668 { "video", 0, 0, OPT_VIDEO}, 669 { "extra-audio",0, 0, OPT_EXTRA_AUDIO}, 662 670 { NULL, 0, 0, 0} 663 671 }; … … 1416 1424 cfg->udp_cfg.qos_params.flags = PJ_QOS_PARAM_HAS_DSCP; 1417 1425 cfg->udp_cfg.qos_params.dscp_val = 0x18; 1426 break; 1427 case OPT_VIDEO: 1428 ++cur_acc->max_video_cnt; 1429 break; 1430 case OPT_EXTRA_AUDIO: 1431 ++cur_acc->max_audio_cnt; 1418 1432 break; 1419 1433 default: … … 1661 1675 if (acc_cfg->mwi_enabled) 1662 1676 pj_strcat2(result, "--mwi\n"); 1677 1678 /* Video & extra audio */ 1679 for (i=0; i<acc_cfg->max_video_cnt; ++i) { 1680 pj_strcat2(result, "--video\n"); 1681 } 1682 for (i=1; i<acc_cfg->max_audio_cnt; ++i) { 1683 pj_strcat2(result, "--extra-audio\n"); 1684 } 1663 1685 } 1664 1686 … … 3892 3914 acc_cfg.cred_info[0].data = pj_str(passwd); 3893 3915 3916 acc_cfg.rtp_cfg = app_config.rtp_cfg; 3917 3894 3918 status = pjsua_acc_add(&acc_cfg, PJ_TRUE, NULL); 3895 3919 if (status != PJ_SUCCESS) { … … 4929 4953 /* Add accounts */ 4930 4954 for (i=0; i<app_config.acc_cnt; ++i) { 4955 app_config.acc_cfg[i].rtp_cfg = app_config.rtp_cfg; 4931 4956 status = pjsua_acc_add(&app_config.acc_cfg[i], PJ_TRUE, NULL); 4932 4957 if (status != PJ_SUCCESS) … … 4960 4985 if (app_config.ipv6) 4961 4986 status = create_ipv6_media_transports(); 4987 #if DISABLED_FOR_TICKET_1185 4962 4988 else 4963 4989 status = pjsua_media_transports_create(&app_config.rtp_cfg); 4990 #endif 4964 4991 #endif 4965 4992 if (status != PJ_SUCCESS) … … 5296 5323 } 5297 5324 5325 #if DISABLED_FOR_TICKET_1185 5298 5326 return pjsua_media_transports_attach(tp, i, PJ_TRUE); 5299 } 5300 5327 #else 5328 return PJ_ENOTSUP; 5329 #endif 5330 } 5331
Note: See TracChangeset
for help on using the changeset viewer.