Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] Small SIP patch

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ruud Linders <moztest@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2003 12:48:09 +0200


A small update to the SIP-decoder.

- "UPDATE" is now a valid sip method
- Registers the SIP decoder so it can be called from other protocols (i.e. SCTP)


Regards,
	Ruud Linders



--- packet-sip.c.ORIG	Thu Jul 31 11:52:32 2003
+++ packet-sip.c	Thu Jul 31 12:46:43 2003
@@ -82,7 +82,8 @@
         "REFER",
         "REGISTER",
         "SPRACK",
-        "SUBSCRIBE"
+        "SUBSCRIBE",
+        "UPDATE"
 };
 
 /* from RFC 3261 */
@@ -958,6 +959,10 @@
         /* Required function calls to register the header fields and subtrees used */
         proto_register_field_array(proto_sip, hf, array_length(hf));
         proto_register_subtree_array(ett, array_length(ett));
+
+        /* Register the dissector so it can be called from other protocols */
+	register_dissector("sip", dissect_sip, proto_sip);
+	
 }
 
 void