Changeset 284 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_settings.c
- Timestamp:
- Mar 5, 2006 11:54:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_settings.c
r278 r284 46 46 static void usage(void) 47 47 { 48 puts("Usage:"); 49 puts(" pjsua [options]"); 50 puts(""); 51 puts("General options:"); 52 puts(" --help Display this help screen"); 53 puts(" --version Display version info"); 54 puts(""); 55 puts("Logging options:"); 56 puts(" --config-file=file Read the config/arguments from file."); 57 puts(" --log-file=fname Log to filename (default stderr)"); 58 puts(" --log-level=N Set log max level to N (0(none) to 6(trace))"); 59 puts(" --app-log-level=N Set log max level for stdout display to N"); 60 puts(""); 61 puts("SIP Account options:"); 62 puts(" --id=url Set the URL of local ID (used in From header)"); 63 puts(" --contact=url Override the Contact information"); 64 puts(" --proxy=url Set the URL of proxy server"); 65 puts(""); 66 puts("SIP Account Registration Options:"); 67 puts(" --registrar=url Set the URL of registrar server"); 68 puts(" --reg-timeout=secs Set registration interval to secs (default 3600)"); 69 puts(""); 70 puts("SIP Account Control:"); 71 puts(" --next-account Add more account"); 72 puts(""); 73 puts("Authentication options:"); 74 puts(" --realm=string Set realm"); 75 puts(" --username=string Set authentication username"); 76 puts(" --password=string Set authentication password"); 77 puts(" --next-cred Add more credential"); 78 puts(""); 79 puts("Transport Options:"); 80 puts(" --local-port=port Set TCP/UDP port"); 81 puts(" --outbound=url Set the URL of outbound proxy server"); 82 puts(" --use-stun1=host[:port]"); 83 puts(" --use-stun2=host[:port] Resolve local IP with the specified STUN servers"); 84 puts(""); 85 puts("Media Options:"); 86 puts(" --wb Enable wideband codecs (16KHz)"); 87 puts(" --uwb Enable ultra-wideband codecs (32KHz)"); 88 puts(" --null-audio Use NULL audio device"); 89 puts(" --play-file=file Play WAV file in conference bridge"); 90 puts(" --auto-play Automatically play the file (to incoming calls only)"); 91 puts(" --auto-loop Automatically loop incoming RTP to outgoing RTP"); 92 puts(" --auto-conf Automatically put incoming calls to conference"); 93 puts(" --rtp-port=N Base port to try for RTP"); 94 puts(" --add-codec=name Specify alternate codec order"); 95 puts(""); 96 puts("Buddy List (can be more than one):"); 97 puts(" --add-buddy url Add the specified URL to the buddy list."); 98 puts(""); 99 puts("User Agent options:"); 100 puts(" --auto-answer=code Automatically answer incoming calls with code (e.g. 200)"); 101 puts(" --max-calls=N Maximum number of concurrent calls (default:4, max:255)"); 102 puts(""); 48 puts ("Usage:"); 49 puts (" pjsua [options]"); 50 puts (""); 51 puts ("General options:"); 52 puts (" --help Display this help screen"); 53 puts (" --version Display version info"); 54 puts (""); 55 puts ("Logging options:"); 56 puts (" --config-file=file Read the config/arguments from file."); 57 puts (" --log-file=fname Log to filename (default stderr)"); 58 puts (" --log-level=N Set log max level to N (0(none) to 6(trace)) (default=5)"); 59 puts (" --app-log-level=N Set log max level for stdout display (default=4)"); 60 puts (""); 61 puts ("SIP Account options:"); 62 puts (" --id=url Set the URL of local ID (used in From header)"); 63 puts (" --contact=url Override the Contact information"); 64 puts (" --proxy=url Set the URL of proxy server"); 65 puts (""); 66 puts ("SIP Account Registration Options:"); 67 puts (" --registrar=url Set the URL of registrar server"); 68 puts (" --reg-timeout=secs Set registration interval to secs (default 3600)"); 69 puts (""); 70 puts ("SIP Account Control:"); 71 puts (" --next-account Add more account"); 72 puts (""); 73 puts ("Authentication options:"); 74 puts (" --realm=string Set realm"); 75 puts (" --username=string Set authentication username"); 76 puts (" --password=string Set authentication password"); 77 puts (" --next-cred Add more credential"); 78 puts (""); 79 puts ("Transport Options:"); 80 puts (" --local-port=port Set TCP/UDP port"); 81 puts (" --outbound=url Set the URL of outbound proxy server"); 82 puts (" --use-stun1=host[:port]"); 83 puts (" --use-stun2=host[:port] Resolve local IP with the specified STUN servers"); 84 puts (""); 85 puts ("Media Options:"); 86 puts (" --wb Enable wideband codecs and set clock-rate to 16KHz"); 87 puts (" --uwb Enable ultra-wideband codecs and set clock-rate to 32KHz"); 88 puts (" --null-audio Use NULL audio device"); 89 puts (" --play-file=file Play WAV file in conference bridge"); 90 puts (" --auto-play Automatically play the file (to incoming calls only)"); 91 puts (" --auto-loop Automatically loop incoming RTP to outgoing RTP"); 92 puts (" --auto-conf Automatically put incoming calls to conference"); 93 puts (" --rtp-port=N Base port to try for RTP (default=4000)"); 94 puts (" --add-codec=name Specify alternate codec order"); 95 puts (" --complexity=N Specify encoding complexity (0-10, default=4)"); 96 puts (" --quality=N Specify encoding quality (0-10, default=4)"); 97 puts (""); 98 puts ("Buddy List (can be more than one):"); 99 puts (" --add-buddy url Add the specified URL to the buddy list."); 100 puts (""); 101 puts ("User Agent options:"); 102 puts (" --auto-answer=code Automatically answer incoming calls with code (e.g. 200)"); 103 puts (" --max-calls=N Maximum number of concurrent calls (default:4, max:255)"); 104 puts (""); 103 105 fflush(stdout); 104 106 } … … 223 225 OPT_AUTO_CONF, 224 226 OPT_PLAY_FILE, OPT_WB, OPT_UWB, OPT_RTP_PORT, OPT_ADD_CODEC, 227 OPT_COMPLEXITY, OPT_QUALITY, 225 228 OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS, 226 229 }; … … 258 261 { "rtp-port", 1, 0, OPT_RTP_PORT}, 259 262 { "add-codec", 1, 0, OPT_ADD_CODEC}, 263 { "complexity", 1, 0, OPT_COMPLEXITY}, 264 { "quality", 1, 0, OPT_QUALITY}, 260 265 { "next-account",0,0, OPT_NEXT_ACCOUNT}, 261 266 { "next-cred", 0, 0, OPT_NEXT_CRED}, … … 495 500 case OPT_ADD_CODEC: 496 501 pjsua.codec_arg[pjsua.codec_cnt++] = pj_str(optarg); 502 break; 503 504 case OPT_COMPLEXITY: 505 pjsua.complexity = my_atoi(optarg); 506 if (pjsua.complexity < 0 || pjsua.complexity > 10) { 507 PJ_LOG(1,(THIS_FILE, 508 "Error: invalid --complexity (expecting 0-10")); 509 return -1; 510 } 511 break; 512 513 case OPT_QUALITY: 514 pjsua.quality = my_atoi(optarg); 515 if (pjsua.quality < 0 || pjsua.quality > 10) { 516 PJ_LOG(1,(THIS_FILE, 517 "Error: invalid --quality (expecting 0-10")); 518 return -1; 519 } 497 520 break; 498 521
Note: See TracChangeset
for help on using the changeset viewer.