Wireshark-bugs: [Wireshark-bugs] [Bug 6258] New: SIP-T/I supported only ITU till date. Added sup
Date: Tue, 23 Aug 2011 00:25:14 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6258

           Summary: SIP-T/I supported only ITU till date. Added support
                    for ANSI
           Product: Wireshark
           Version: 1.6.1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: kamal_bhambhani@xxxxxxxxx


Created an attachment (id=6852)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=6852)
text patch file for above diff for supporting SIP-T/I ANSI dissector
integration

Build Information:
wireshark 1.6.1 (SVN Rev Unknown from unknown)

Copyright 1998-2011 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GTK+ 2.10.4, with GLib 2.12.3, with libpcap 0.9.4, with
libz 1.2.3, with POSIX capabilities (Linux), with libpcre (version unknown),
without SMI, without c-ares, without ADNS, without Lua, without Python, with
GnuTLS 1.4.1, with Gcrypt 1.2.4, without Kerberos, without GeoIP, without
PortAudio, without AirPcap.

Running on Linux 2.6.18-128.el5, with libpcap version 0.9.4, with libz 1.2.3,
GnuTLS 1.4.1, Gcrypt 1.2.4.

Built using gcc 4.1.2 20080704 (Red Hat 4.1.2-44).
--
A simple change adds support for SIP-T/I for ANSI, along with ITU (Second was
already present)

Heres the patch as text file also attached.

--- epan/dissectors/packet-isup.c.old   2011-08-22 20:35:48.000000000 +0530
+++ epan/dissectors/packet-isup.c       2011-08-22 20:25:57.000000000 +0530
@@ -7579,8 +7579,15 @@
   tvbuff_t *message_tvb;
   guint8 message_type;

+  if(pinfo && pinfo->private_data &&
strstr((char*)pinfo->private_data,"ansi"))
+       isup_standard=ANSI_STANDARD;
+  else
+       isup_standard=ITU_STANDARD;
 /* Make entries in Protocol column and Info column on summary display */
-  col_append_str(pinfo->cinfo, COL_PROTOCOL, "/ISUP(ITU)");
+  if(isup_standard==ANSI_STANDARD)
+       col_append_str(pinfo->cinfo, COL_PROTOCOL, "/ISUP(AN)");
+  else
+       col_append_str(pinfo->cinfo, COL_PROTOCOL, "/ISUP(ITU)");

 /* Extract message type field */
   message_type = tvb_get_guint8(tvb, 0);

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.