From: Richard Mudgett Date: Thu, 13 May 2010 22:01:36 +0000 (+0000) Subject: Fix inverted logic in cli command: ss7 set debug on/off X-Git-Tag: 11.0.0-beta1~3031 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=274eb8960c0ffb6b3a34af996741285f944efa88;p=thirdparty%2Fasterisk.git Fix inverted logic in cli command: ss7 set debug on/off git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@263069 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 51e64ee357..b072d86cea 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -15914,7 +15914,7 @@ static char *handle_ss7_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_a return CLI_SUCCESS; } if (linksets[span-1].ss7) { - if (strcasecmp(a->argv[3], "on")) { + if (!strcasecmp(a->argv[3], "on")) { ss7_set_debug(linksets[span-1].ss7, SS7_DEBUG_MTP2 | SS7_DEBUG_MTP3 | SS7_DEBUG_ISUP); ast_cli(a->fd, "Enabled debugging on linkset %d\n", span); } else {