Allow more control over the output of pri debug
authorKinsey Moore <kmoore@digium.com>
Mon, 6 Feb 2012 20:18:16 +0000 (20:18 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 6 Feb 2012 20:18:16 +0000 (20:18 +0000)
commit49ed50d8acf965b2395470fd8955d9a77b36d293
tree776ea6f465e7d60a21b0016133b78a7dbacdef75
parentd162e859780082e1a8439a51fe1cb57ffbb6e1c9
Allow more control over the output of pri debug

This changes the debuglevel of 'pri set debug' to a bit mask allowing the user
to independently select bits of output:
1 libpri internals including state machine
2 Decoded Q.931 messages
4 Decoded Q.921 headers
8 raw hex dump of the full frames

Additionally, this ensures that the meaning of "on" does not change and
intrudces intense and hex to simplify usage.

(closes issue ASTERISK-17159)
Original-patch-by: wimpy

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c
channels/sig_pri.h