mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Merge "chan_sip: Fix output of 'sip set debug off'."
This commit is contained in:
@@ -22710,7 +22710,12 @@ static char *sip_do_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_args
|
|||||||
} else if (!strcasecmp(what, "off")) {
|
} else if (!strcasecmp(what, "off")) {
|
||||||
sipdebug &= ~sip_debug_console;
|
sipdebug &= ~sip_debug_console;
|
||||||
sipdebug_text = 0;
|
sipdebug_text = 0;
|
||||||
|
if (sipdebug == sip_debug_none) {
|
||||||
ast_cli(a->fd, "SIP Debugging Disabled\n");
|
ast_cli(a->fd, "SIP Debugging Disabled\n");
|
||||||
|
} else {
|
||||||
|
ast_cli(a->fd, "SIP Debugging still enabled due to configuration.\n");
|
||||||
|
ast_cli(a->fd, "Set sipdebug=no in sip.conf and reload to actually disable.\n");
|
||||||
|
}
|
||||||
return CLI_SUCCESS;
|
return CLI_SUCCESS;
|
||||||
}
|
}
|
||||||
} else if (a->argc == e->args + 1) { /* ip/peer */
|
} else if (a->argc == e->args + 1) { /* ip/peer */
|
||||||
|
Reference in New Issue
Block a user