Add additional control frame types to the IAX2 parser for debug messages
authorMatthew Jordan <mjordan@digium.com>
Sun, 21 Jul 2013 02:30:58 +0000 (02:30 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 21 Jul 2013 02:30:58 +0000 (02:30 +0000)
This patch adds some of the more recent control frame types to the IAX2
parser. When IAX2 debugging is enabled, it will now show more of the control
frame types.

(closes issue ASTERISK-22120)
Reported by: Birger "WIMPy" Harzenetter
patches:
  iaxcmds.diff uploaded by wimpy

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394895 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/iax2/parser.c

index 878d701..5d1a8ca 100644 (file)
@@ -604,6 +604,16 @@ void iax_showframe(struct iax_frame *f, struct ast_iax2_full_hdr *fhi, int rx, s
                "TXFER  ",
                "CNLINE ",
                "REDIR  ",
+               "T38PARM",
+               "CONTRCC",
+               "SRCCHG ",
+               "READACT",
+               "AOC    ",
+               "ENDOFQ ",
+               "INCOMPL",
+               "MCID   ",
+               "UPDRTPP",
+               "PCAUSEC",
        };
        struct ast_iax2_full_hdr *fh;
        char retries[20];