Ethereal-dev: Re: [Ethereal-dev] Check content type before calling SDP dissector, packet-sip(P

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sat, 6 Dec 2003 19:48:17 -0800
On Fri, Dec 05, 2003 at 03:21:10PM +0100, Anders Broman wrote:
> Included a patch to check content type before calling the SDP dissector, if
> not SDP print as text.

If you're using the current CVS version of Ethereal, you might want to
look at copying the code from the HTTP dissector to hand off to
subdissectors based on the content type - you can get the "media_type"
dissector table in dissectors other than the HTTP dissector by calling

	find_dissector_table("media_type")

in the other dissector's reg_handoff routine.

The SDP dissector now registers itself in that table.