]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: When no global type the debug option defaults to "yes"
authorKevin Harwell <kharwell@digium.com>
Wed, 5 Feb 2014 19:41:48 +0000 (19:41 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 5 Feb 2014 19:41:48 +0000 (19:41 +0000)
commitfaec988a5c97f73af9675867c862c227194a3450
treef57104ec398ba736fb15b192505a8dbf2027dd00
parent88de17bba67ed4a20d34b73f26bc3fd7347a7633
res_pjsip: When no global type the debug option defaults to "yes"

If the global section was not specified in pjsip.conf then the configuration
object does not exist in sorcery so when retrieving "debug" option it would
return NULL.  Then the NULL result was passed to ast_false utils function
which would return false because it wasn't set to some representation of
false, thus enabling sip debug logging.  Made it so if the global config object
does not exist then it will return a default of "no" for sip debugging.

(issue ASTERISK-23038)
Reported by: Rusty Newton

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@407442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip/config_global.c