diff options
author | AndersBroman <anders.broman@ericsson.com> | 2016-12-12 14:21:03 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-12-12 16:19:53 +0000 |
commit | d6d2b597310c610d5b53d8225f0d9494f800d706 (patch) | |
tree | d007b61c9cf236051b48fd235a649989286e7203 /epan/dissectors/packet-rtp.c | |
parent | b604fff1363e40f2327bd5765264f687eb1ec04a (diff) |
[RTP] In case no conversation is found, check if we have a dissecor for
the dynamic payload type defined. If so set the dynamic
payload_type_string to that dissectors name.
This is for RTP analysis to work if there is no setup information in the
file.
Change-Id: I7ae7b957cfa9eb6013f7d32d50563e2034210af6
Reviewed-on: https://code.wireshark.org/review/19220
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rtp.c')
-rw-r--r-- | epan/dissectors/packet-rtp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rtp.c b/epan/dissectors/packet-rtp.c index b61a5b5b49..f7f245e7a1 100644 --- a/epan/dissectors/packet-rtp.c +++ b/epan/dissectors/packet-rtp.c @@ -2152,6 +2152,18 @@ dissect_rtp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ rtp_info->info_payload_type_str = payload_type_str; rtp_info->info_payload_rate = sample_rate; } + } else { + /* See if we have a dissector tied to the dynamic payload trough preferences*/ + dissector_handle_t pt_dissector_handle; + const char *name; + + pt_dissector_handle = dissector_get_uint_handle(rtp_pt_dissector_table, payload_type); + if (pt_dissector_handle) { + name = dissector_handle_get_dissector_name(pt_dissector_handle); + if (name) { + rtp_info->info_payload_type_str = name; + } + } } } |