Wireshark-dev: Re: [Wireshark-dev] How do I get RTP payload type from sub-dissector

From: "Michael Lum" <michael.lum@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Nov 2008 09:52:10 -0800
Yes, I have the following:

    dissector_add_string("rtp_dyn_payload_type",  "EVRC", evrc_handle);
    dissector_add_string("rtp_dyn_payload_type",  "EVRCB", evrc_handle);
    dissector_add_string("rtp_dyn_payload_type",  "EVRCWB",
evrc_handle);

but when a particular packet is being dissected I want to know if
it is EVRC or EVRCB or EVRCWB so that I can use different header fields.



--
Michael Lum                   Principal Software Engineer
4600 Jacombs Road             +1.604.276.0055
Richmond, B.C.
Canada V6V 3B1
Star Solutions
-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Anders Broman
Sent: November 19, 2008 9:48 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I get RTP payload type from
sub-dissector

Hi,
Have a look at pcaket-amr or pcaket-h264.c

But basically:
dissector_add_string("rtp_dyn_payload_type","AMR", amr_handle);

You can also do
Regards
Anders

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Michael Lum
Sent: den 19 november 2008 18:39
To: Developer support list for Wireshark
Subject: [Wireshark-dev] How do I get RTP payload type from
sub-dissector

Hello,

I have a dissector that gets called after RTP.

How can I get the payload type for the packet from the RTP dissection in
my dissector ?

My dissector is called based on dynamic payload types.

Thanks

--
Michael Lum                   Principal Software Engineer
4600 Jacombs Road             +1.604.276.0055
Richmond, B.C.
Canada V6V 3B1
Star Solutions
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev