summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-08-12 17:28:36 +0000
committerBenny Prijono <bennylp@teluu.com>2009-08-12 17:28:36 +0000
commit6614f2b83f87fcee6c9416802642163d79968f6b (patch)
tree6f87ed1f9a7fe3624a86b5b580ece461a8609a5f
parent801646a8c33e605180e8669c4345d05f391ad78f (diff)
Bug fix for ticket #833 (session timer support)
- bug in verifying --timer-se option in pjsua git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2867 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip-apps/src/pjsua/pjsua_app.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c
index 883d6704..36967d6a 100644
--- a/pjsip-apps/src/pjsua/pjsua_app.c
+++ b/pjsip-apps/src/pjsua/pjsua_app.c
@@ -191,8 +191,8 @@ static void usage(void)
puts (" --publish Send presence PUBLISH for this account");
puts (" --use-100rel Require reliable provisional response (100rel)");
puts (" --use-timer Require SIP session timers");
- puts (" --timer-se Session timers expiration period, in secs (def:1800)");
- puts (" --timer-min-se Session timers minimum expiration period, in secs (def:90)");
+ puts (" --timer-se=N Session timers expiration period, in secs (def:1800)");
+ puts (" --timer-min-se=N Session timers minimum expiration period, in secs (def:90)");
puts (" --auto-update-nat=N Where N is 0 or 1 to enable/disable SIP traversal behind");
puts (" symmetric NAT (default 1)");
puts (" --next-cred Add another credentials");
@@ -839,7 +839,7 @@ static pj_status_t parse_args(int argc, char *argv[],
case OPT_TIMER_SE: /** session timer session expiration */
cur_acc->timer_setting.sess_expires = pj_strtoul(pj_cstr(&tmp, pj_optarg));
- if (cur_acc->timer_setting.min_se < 90) {
+ if (cur_acc->timer_setting.sess_expires < 90) {
PJ_LOG(1,(THIS_FILE,
"Error: invalid value for --timer-se "
"(expecting higher than 90)"));