I want to write a dissector to manage some header extensions for RTP protocol. Searching in code, I saw that we need to write a sub-dissector and that it would be called instead of the generic header extension, but how do I register my dissector to the list of sub-dissectors in Lua?
Where is the payload type string locate?
In the packet I want to analyses, it said that payload type is
I think the real payload type is defined in a RTSP/SDF packet I received a fiew packets ago. Here is it's RTSP content:
RTSP/1.0 200 OK CSeq: 2 Connection: Keep-Alive Content-Base: rtsp://10.2.23.28/Storage/ Content-Type: application/sdp Content-Length: 166 v=0o=- 1 1 IN IP4 10.2.23.28 s=Media Presentation e=NONE c=IN IP4 0.0.0.0 t=0 0 a=control:* m=video 0 RTP/AVP 98 a=rtpmap:98 H264/90000 a=control:trackID=1
With that said, what should be the payload_str_type?
This should work:
local proto_foo = Proto("foo", "Foo Protocol")
So, you would use:
Unfortunately, Bug 5208 prevents this subdissector from being called.
UPDATE: According to
You can try SVN 40834 (or later) or download an automated build.