Make sure we output the APDU debug on pri debug commands
authorMatthew Fredrickson <creslin@digium.com>
Tue, 7 Feb 2006 18:00:42 +0000 (18:00 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Tue, 7 Feb 2006 18:00:42 +0000 (18:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9194 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 11a810c..54d2a6b 100644 (file)
@@ -9392,7 +9392,7 @@ static int handle_pri_debug(int fd, int argc, char *argv[])
        }
        for (x=0;x<NUM_DCHANS;x++) {
                if (pris[span-1].dchans[x])
-                       pri_set_debug(pris[span-1].dchans[x], PRI_DEBUG_Q931_DUMP | PRI_DEBUG_Q931_STATE);
+                       pri_set_debug(pris[span-1].dchans[x], PRI_DEBUG_APDU | PRI_DEBUG_Q931_DUMP | PRI_DEBUG_Q931_STATE);
        }
        ast_cli(fd, "Enabled debugging on span %d\n", span);
        return RESULT_SUCCESS;
@@ -9440,7 +9440,7 @@ static int handle_pri_really_debug(int fd, int argc, char *argv[])
        }
        for (x=0;x<NUM_DCHANS;x++) {
                if (pris[span-1].dchans[x])
-                       pri_set_debug(pris[span-1].dchans[x], (PRI_DEBUG_Q931_DUMP | PRI_DEBUG_Q921_DUMP | PRI_DEBUG_Q921_RAW | PRI_DEBUG_Q921_STATE));
+                       pri_set_debug(pris[span-1].dchans[x], (PRI_DEBUG_APDU | PRI_DEBUG_Q931_DUMP | PRI_DEBUG_Q921_DUMP | PRI_DEBUG_Q921_RAW | PRI_DEBUG_Q921_STATE));
        }
        ast_cli(fd, "Enabled EXTENSIVE debugging on span %d\n", span);
        return RESULT_SUCCESS;