Changeset 253 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_opt.c
- Timestamp:
- Mar 1, 2006 7:29:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_opt.c
r238 r253 83 83 puts(" --auto-loop Automatically loop incoming RTP to outgoing RTP"); 84 84 puts(" --auto-conf Automatically put incoming calls to conference"); 85 puts(" --rtp-port=N Base port to try for RTP"); 85 86 puts(""); 86 87 puts("Buddy List (can be more than one):"); … … 212 213 OPT_AUTO_ANSWER, OPT_AUTO_HANGUP, OPT_AUTO_PLAY, OPT_AUTO_LOOP, 213 214 OPT_AUTO_CONF, 214 OPT_PLAY_FILE, 215 OPT_PLAY_FILE, OPT_RTP_PORT, 215 216 OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS, 216 217 }; … … 244 245 { "auto-conf", 0, 0, OPT_AUTO_CONF}, 245 246 { "play-file", 1, 0, OPT_PLAY_FILE}, 247 { "rtp-port", 1, 0, OPT_RTP_PORT}, 246 248 { "next-account",0,0, OPT_NEXT_ACCOUNT}, 247 249 { "next-cred", 0, 0, OPT_NEXT_CRED}, … … 463 465 break; 464 466 467 case OPT_RTP_PORT: 468 pjsua.start_rtp_port = my_atoi(optarg); 469 if (pjsua.start_rtp_port < 1 || pjsua.start_rtp_port > 65535) { 470 PJ_LOG(1,(THIS_FILE, 471 "Error: rtp-port argument value (expecting 1-65535")); 472 return -1; 473 } 474 465 475 case OPT_AUTO_ANSWER: 466 476 pjsua.auto_answer = my_atoi(optarg); 467 477 if (pjsua.auto_answer < 100 || pjsua.auto_answer > 699) { 468 puts("Error: invalid code in --auto-answer (expecting 100-699"); 478 PJ_LOG(1,(THIS_FILE, 479 "Error: invalid code in --auto-answer (expecting 100-699")); 469 480 return -1; 470 481 } … … 474 485 pjsua.max_calls = my_atoi(optarg); 475 486 if (pjsua.max_calls < 1 || pjsua.max_calls > 255) { 476 puts("Too many calls for max-calls (1-255)");487 PJ_LOG(1,(THIS_FILE,"Too many calls for max-calls (1-255)")); 477 488 return -1; 478 489 } … … 578 589 pjsip_endpt_dump(pjsua.endpt, 1); 579 590 pjmedia_endpt_dump(pjsua.med_endpt); 580 pjsip_tsx_layer_dump( );581 pjsip_ua_dump( );591 pjsip_tsx_layer_dump(1); 592 pjsip_ua_dump(1); 582 593 583 594
Note: See TracChangeset
for help on using the changeset viewer.