Wireshark-dev: [Wireshark-dev] [PATCH] Avaya Display when codeset = 6
From: Alfred Alinazar <aalinazar@xxxxxxxxx>
Date: Wed, 20 Dec 2006 14:45:03 +0700
Hi All,

Please find a little patch against revision 20149 to
epan/dissectors/packet-q931.c
The patch is to dissect unknown information element when an Avaya PBX
use codeset = 6 to send display.

The sample of avaya capture can also be found attached.
Would you like to consider it please ?
Thanks in advance.

regards,

-Alfred-

Index: epan/dissectors/packet-q931.c
===================================================================
--- epan/dissectors/packet-q931.c	(revision 20149)
+++ epan/dissectors/packet-q931.c	(working copy)
@@ -427,6 +427,7 @@
 	{ Q931_IE_REDIRECTING_NUMBER,		"Redirecting number" },
 	{ Q931_IE_REDIRECTING_SUBADDR,		"Redirecting subaddress" },
 	{ Q931_IE_CALL_APPEARANCE,		"Call appearance" },
+        { Q931_IE_DISPLAY,			"Avaya Display" }, /* if Avaya codeset to send display = 6 */
 	{ 0,					NULL }
 };
 /* Codeset 7 */
@@ -2978,6 +2979,14 @@
 					}
 					break;
 
+                                case CS6 | Q931_IE_DISPLAY:
+                                        if (q931_tree != NULL) {
+                                                dissect_q931_ia5_ie(tvb, offset + 2,
+                                                        info_element_len, ie_tree,
+                                                        "Avaya Display");
+                                        }
+                                        break;
+
 				default:
 					if (q931_tree != NULL) {
 						proto_tree_add_text(ie_tree, tvb,

Attachment: avaya.pcap
Description: Binary data