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

Reply via email to