- Timestamp:
- Aug 17, 2009 8:28:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2892 r2897 1516 1516 } 1517 1517 1518 /* 100rel extension */ 1519 if (acc_cfg->require_100rel) { 1520 pj_strcat2(result, "--use-100rel\n"); 1521 } 1522 1523 /* Session Timer extension */ 1524 if (acc_cfg->require_timer) { 1525 pj_strcat2(result, "--use-timer\n"); 1526 } 1527 if (acc_cfg->timer_setting.min_se != 90) { 1528 pj_ansi_sprintf(line, "--timer-min-se %d\n", 1529 acc_cfg->timer_setting.min_se); 1530 pj_strcat2(result, line); 1531 } 1532 if (acc_cfg->timer_setting.sess_expires != PJSIP_SESS_TIMER_DEF_SE) { 1533 pj_ansi_sprintf(line, "--timer-se %d\n", 1534 acc_cfg->timer_setting.sess_expires); 1535 pj_strcat2(result, line); 1536 } 1537 1518 1538 } 1519 1539 … … 1956 1976 } 1957 1977 1978 /* SIP extensions. */ 1979 pj_strcat2(&cfg, "\n#\n# SIP extensions:\n#\n"); 1980 /* 100rel extension */ 1981 if (config->cfg.require_100rel) { 1982 pj_strcat2(&cfg, "--use-100rel\n"); 1983 } 1984 /* Session Timer extension */ 1985 if (config->cfg.require_timer) { 1986 pj_strcat2(&cfg, "--use-timer\n"); 1987 } 1988 if (config->cfg.timer_setting.min_se != 90) { 1989 pj_ansi_sprintf(line, "--timer-min-se %d\n", 1990 config->cfg.timer_setting.min_se); 1991 pj_strcat2(&cfg, line); 1992 } 1993 if (config->cfg.timer_setting.sess_expires != PJSIP_SESS_TIMER_DEF_SE) { 1994 pj_ansi_sprintf(line, "--timer-se %d\n", 1995 config->cfg.timer_setting.sess_expires); 1996 pj_strcat2(&cfg, line); 1997 } 1958 1998 1959 1999 *(cfg.ptr + cfg.slen) = '\0';
Note: See TracChangeset
for help on using the changeset viewer.