Skip to content
Snippets Groups Projects
Commit 99f8f0f8 authored by Kevin Harwell's avatar Kevin Harwell
Browse files

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
........

Merged revisions 407442 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent a610bfa9
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ char *ast_sip_get_debug(void)
struct global_config *cfg = get_global_cfg();
if (!cfg) {
return 0;
return ast_strdup("no");
}
res = ast_strdup(cfg->debug);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment