Changeset 5461 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_config.c
- Timestamp:
- Oct 14, 2016 4:53:07 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_config.c
r5186 r5461 560 560 561 561 case OPT_LOG_LEVEL: 562 c = pj_strtoul(pj_cstr(&tmp, pj_optarg));562 c = (int)pj_strtoul(pj_cstr(&tmp, pj_optarg)); 563 563 if (c < 0 || c > 6) { 564 564 PJ_LOG(1,(THIS_FILE, … … 572 572 573 573 case OPT_APP_LOG_LEVEL: 574 cfg->log_cfg.console_level = pj_strtoul(pj_cstr(&tmp, pj_optarg));574 cfg->log_cfg.console_level = (unsigned)pj_strtoul(pj_cstr(&tmp, pj_optarg)); 575 575 if (cfg->log_cfg.console_level > 6) { 576 576 PJ_LOG(1,(THIS_FILE, … … 627 627 return PJ_EINVAL; 628 628 } 629 cfg->media_cfg.clock_rate = lval;629 cfg->media_cfg.clock_rate = (unsigned)lval; 630 630 break; 631 631 … … 637 637 return PJ_EINVAL; 638 638 } 639 cfg->media_cfg.snd_clock_rate = lval;639 cfg->media_cfg.snd_clock_rate = (unsigned)lval; 640 640 break; 641 641 … … 718 718 719 719 case OPT_REG_TIMEOUT: /* reg-timeout */ 720 cur_acc->reg_timeout = pj_strtoul(pj_cstr(&tmp,pj_optarg));720 cur_acc->reg_timeout = (unsigned)pj_strtoul(pj_cstr(&tmp,pj_optarg)); 721 721 if (cur_acc->reg_timeout < 1 || cur_acc->reg_timeout > 3600) { 722 722 PJ_LOG(1,(THIS_FILE, … … 747 747 return PJ_EINVAL; 748 748 } 749 cur_acc->use_timer = lval;750 cfg->cfg.use_timer = lval;749 cur_acc->use_timer = (pjsua_sip_timer_use)lval; 750 cfg->cfg.use_timer = (pjsua_sip_timer_use)lval; 751 751 break; 752 752 753 753 case OPT_TIMER_SE: /** session timer session expiration */ 754 cur_acc->timer_setting.sess_expires = pj_strtoul(pj_cstr(&tmp, pj_optarg));754 cur_acc->timer_setting.sess_expires = (unsigned)pj_strtoul(pj_cstr(&tmp, pj_optarg)); 755 755 if (cur_acc->timer_setting.sess_expires < 90) { 756 756 PJ_LOG(1,(THIS_FILE, … … 763 763 764 764 case OPT_TIMER_MIN_SE: /** session timer minimum session expiration */ 765 cur_acc->timer_setting.min_se = pj_strtoul(pj_cstr(&tmp, pj_optarg));765 cur_acc->timer_setting.min_se = (unsigned)pj_strtoul(pj_cstr(&tmp, pj_optarg)); 766 766 if (cur_acc->timer_setting.min_se < 90) { 767 767 PJ_LOG(1,(THIS_FILE, … … 810 810 811 811 case OPT_AUTO_UPDATE_NAT: /* OPT_AUTO_UPDATE_NAT */ 812 cur_acc->allow_contact_rewrite = pj_strtoul(pj_cstr(&tmp, pj_optarg));812 cur_acc->allow_contact_rewrite = (pj_bool_t)pj_strtoul(pj_cstr(&tmp, pj_optarg)); 813 813 break; 814 814 … … 871 871 872 872 case OPT_REG_RETRY_INTERVAL: 873 cur_acc->reg_retry_interval = pj_strtoul(pj_cstr(&tmp, pj_optarg));873 cur_acc->reg_retry_interval = (unsigned)pj_strtoul(pj_cstr(&tmp, pj_optarg)); 874 874 break; 875 875
Note: See TracChangeset
for help on using the changeset viewer.