Changeset 3305 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Sep 7, 2010 9:36:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r3299 r3305 202 202 puts (" --use-srtp=N Use SRTP? 0:disabled, 1:optional, 2:mandatory,"); 203 203 puts (" 3:optional by duplicating media offer (def:0)"); 204 puts (" --srtp-secure=N SRTP require secure SIP? 0:no, 1:tls, 1:sips (def:1)");204 puts (" --srtp-secure=N SRTP require secure SIP? 0:no, 1:tls, 2:sips (def:1)"); 205 205 #endif 206 206 puts (" --registrar=url Set the URL of registrar server"); … … 223 223 puts (" --mwi Subscribe to message summary/waiting indication"); 224 224 puts (" --use-100rel Require reliable provisional response (100rel)"); 225 puts (" --use-timer Require SIP session timers"); 225 puts (" --use-timer=N Use SIP session timers? (default=1)"); 226 puts (" 0:inactive, 1:optional, 2:mandatory, 3:always"); 226 227 printf(" --timer-se=N Session timers expiration period, in secs (def:%d)\n", 227 228 PJSIP_SESS_TIMER_DEF_SE); … … 263 264 puts (" --tls-verify-client Verify client's certificate (default=no)"); 264 265 puts (" --tls-neg-timeout Specify TLS negotiation timeout (default=no)"); 265 puts (" --tls-srv-name Specify TLS server name for multi -hosting server (optional)");266 puts (" --tls-srv-name Specify TLS server name for multihosting server"); 266 267 267 268 puts (""); … … 654 655 #endif 655 656 { "set-qos", 0, 0, OPT_QOS}, 656 { "use-timer", 0, 0, OPT_TIMER},657 { "use-timer", 1, 0, OPT_TIMER}, 657 658 { "timer-se", 1, 0, OPT_TIMER_SE}, 658 659 { "timer-min-se", 1, 0, OPT_TIMER_MIN_SE}, … … 882 883 883 884 case OPT_TIMER: /** session timer */ 884 cur_acc->require_timer = PJ_TRUE; 885 cfg->cfg.require_timer = PJ_TRUE; 885 lval = pj_strtoul(pj_cstr(&tmp, pj_optarg)); 886 if (lval < 0 || lval > 3) { 887 PJ_LOG(1,(THIS_FILE, 888 "Error: expecting integer value 0-3 for --use-timer")); 889 return PJ_EINVAL; 890 } 891 cur_acc->use_timer = lval; 892 cfg->cfg.use_timer = lval; 886 893 break; 887 894 … … 1625 1632 1626 1633 /* Session Timer extension */ 1627 if (acc_cfg->require_timer) { 1628 pj_strcat2(result, "--use-timer\n"); 1634 if (acc_cfg->use_timer) { 1635 pj_ansi_sprintf(line, "--use-timer %d\n", 1636 acc_cfg->use_timer); 1637 pj_strcat2(result, line); 1629 1638 } 1630 1639 if (acc_cfg->timer_setting.min_se != 90) { … … 2104 2113 } 2105 2114 /* Session Timer extension */ 2106 if (config->cfg.require_timer) { 2107 pj_strcat2(&cfg, "--use-timer\n"); 2115 if (config->cfg.use_timer) { 2116 pj_ansi_sprintf(line, "--use-timer %d\n", 2117 config->cfg.use_timer); 2118 pj_strcat2(&cfg, line); 2108 2119 } 2109 2120 if (config->cfg.timer_setting.min_se != 90) {
Note: See TracChangeset
for help on using the changeset viewer.