Max calls in pjsua_config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Might I suggest changing line 92 in pjsip/src/pjsua-lib/pjsua_core.c, 
function pjsua_config_default from:

cfg->max_calls = 4;

to something like:

cfg->max_calls = (PJSUA_MAX_CALLS) < 4 ? (PJSUA_MAX_CALLS) : 4;

I know the documentation 
(http://www.pjsip.org/pjsip/docs/html/structpjsua__config.htm#81c509061591620d0e4a92b134b60467) 
tells me to set max_calls to a value lower than PJSUA_MAX_CALLS, but I 
just don't like getting a segmentation fault for not reading the 
documentation ;-)

Regards,
Dan



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux