Ethereal-dev: [Ethereal-dev] RTP Payload for DTMF Digits

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

From: Arsen Chaloyan <achaloyan@xxxxxxxxx>
Date: Thu, 27 Nov 2003 07:35:48 -0800 (PST)
Hello.

Incorrect "Event Duartion" value is shown (decode) by
ethereal for rtp packets (RFC2833).

The offset calculation in packet-rtp-events.c seems to
be wrong or there is no offset at all.

		proto_tree_add_boolean (rtp_events_tree,
hf_rtp_events_end, tvb, offset, 1, octet);
	    proto_tree_add_boolean (rtp_events_tree,
hf_rtp_events_reserved, tvb, offset, 1, octet);
	    proto_tree_add_uint ( rtp_events_tree,
hf_rtp_events_volume, tvb, offset, 1, octet);

	    proto_tree_add_item ( rtp_events_tree,
hf_rtp_events_duration, tvb, offset, 2, FALSE);


I slightly change it and now it works in my local
version
	    proto_tree_add_boolean (rtp_events_tree,
hf_rtp_events_end, tvb, offset+1, 1, octet);
	    proto_tree_add_boolean (rtp_events_tree,
hf_rtp_events_reserved, tvb, offset+1, 1, octet);
	    proto_tree_add_uint ( rtp_events_tree,
hf_rtp_events_volume, tvb, offset+1, 1, octet);

	    proto_tree_add_item ( rtp_events_tree,
hf_rtp_events_duration, tvb, offset+2, 2, FALSE);


Best regards, Arsen.

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/