This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

tshark parse AMR-WB instead AMR

asked Oct 16 '25

updated Oct 17 '25

Hi! I catch a problem when used command

tshark -r from_test.pcap --enable-protocol rtp -d rtp.pt==112,amr -O amr

I got the following output:

Adaptive Multi-Rate
    [Payload decoded as: RFC 3267 bandwidth-efficient mode (1)]
    0100 .... = CMR: AMR-WB 15.85 kbit/s (4)
    .... 0... = F bit: Last frame in this payload
    .... .000  0... .... = FT bits: AMR-WB 6.60 kbit/s (0) / Frame OK
    .1.. .... = Q bit: Ok
    Error: 13 Bytes available, 17 would be needed!
        [Expert Info (Error/Malformed): Error: 13 Bytes available, 17 would be needed!]
            [Error: 13 Bytes available, 17 would be needed!]
            Message: Error: 13 Bytes available, 17 would be needed!
            [Severity level: Error]
            [Group: Malformed]
        Malformed Packet
[Malformed Packet: AMR]

However, I expected to get AMR instead of AMR-WB, like in Wireshark:

Adaptive Multi-Rate
    [Payload decoded as: RFC 3267 bandwidth-efficient mode (1)]
    0010 .... = CMR: AMR 5,90 kbit/s (2)
    .... 0... = F bit: Last frame in this payload
    .... .001  0... .... = FT bits: AMR 5,90 kbit/s (2) / Frame OK
    .1.. .... = Q bit: Ok
    Frame Data: 7a567cd7f7f97a599ffef022206022

Both outputs from same pcap. What am I doing wrong while using tshark? tshark version is 4.2.3

Comments

Are tshark and wireshark the same version?
Are you using the same profile for each?
Do you get same output when using -C option to specify profile to load with tshark?

User 2763 ( Oct 17 '25 )

same versions I have exported profile from the Wireshark. In file decode_as_entries it has

# "Decode As" entries file for Wireshark 4.2.3.
#
# This file is regenerated each time "Decode As" preferences
# are saved within Wireshark. Making manual changes should be safe,
# however.
decode_as_entry: rtp.pt,112,(none),AMR
decode_as_entry: udp.port,34000,(none),RTP
decode_as_entry: udp.port,4000,ICQ,RTP

tshark I start without any profiles, just with options --enable-protocol rtp -d rtp.pt==112,amr -O amr

User 6584 ( Oct 17 '25 )

Thank you! I have run tshark -C and see expected info in AMR layer! But why thshark doesn't work without -C, just with -d rtp.pt==112,amr

User 6584 ( Oct 17 '25 )

Tshark uses the default profile without -C, not the last used profile the way Wireshark does

User 82682 ( Oct 17 '25 )

2 Answers

0

answered Oct 17 '25

updated Oct 17 '25

I'v found solution of my problem - need use -o option like this
tshark -r amr_nb.pcap -o amr.mode:AMR-NB --enable-protocol rtp -d rtp.pt==112,amr -O amr

Adaptive Multi-Rate
    [Payload decoded as: RFC 3267 bandwidth-efficient mode (1)]
    0010 .... = CMR: AMR 5,90 kbit/s (2)
    .... 0... = F bit: Last frame in this payload
    .... .001  0... .... = FT bits: AMR 5,90 kbit/s (2) / Frame OK
    .1.. .... = Q bit: Ok
    Frame Data: 7a567cd7f7f97a599ffef022206022

Thank all for support

0

answered Oct 16 '25

Try using -d rtp.pt=112,amr_wb instead in that command.

Comments

It doesn’t solve the problem. I need correct AMR narrowband representation at AMR layer. Not AMR WB

User 6584 ( Oct 17 '25 )

I am sorry, I misread what you wrote. Yes, the problem is in your preferences.

User 82682 ( Oct 17 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.