summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-02-10 11:08:54 +0000
committerBenny Prijono <bennylp@teluu.com>2009-02-10 11:08:54 +0000
commit31a3f1be7186cafc4e76d250c81c39b222f179a7 (patch)
treebd0eaf927293193b025dee26ec1dfa1a1919e7f0
parent14058b7081958d2c828accd9fedf3b7abb251725 (diff)
Minor fix (ticket #724): set default pjsua_config.max_calls to PJSUA_MAX_CALLS if PJSUA_MAX_CALLS is lower than 4 (thanks Dan Aberg for the suggestion)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2448 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index 7304df06..b59fe26e 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -89,7 +89,7 @@ PJ_DEF(void) pjsua_config_default(pjsua_config *cfg)
{
pj_bzero(cfg, sizeof(*cfg));
- cfg->max_calls = 4;
+ cfg->max_calls = ((PJSUA_MAX_CALLS) < 4) ? (PJSUA_MAX_CALLS) : 4;
cfg->thread_cnt = 1;
cfg->nat_type_in_sdp = 1;
cfg->force_lr = PJ_TRUE;