This is our old Q&A Site. Please post any new questions and answers at


I need to capture only (!!!) gsm_sms protocol from the SS7 stream with the help of the tshark. But unfortunately I could not find any useful information in Internet how to create such filter. Maybe somebody could help me with this? Any examples or links...

Any help will be appreciated! Thanks!

asked 04 Apr '13, 06:58

domeno's gravatar image

accept rate: 0%

You could use this (display) filter with tshark:

tshark -ni eth0 -R "gsm_sms"

Please replace eth0 with your interface name.

Unfortunately, you can't write the data stream to a pcap file (Option -w) while you are using a display filter (-R).


permanent link

answered 08 Apr '13, 16:20

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
accept rate: 15%

To Kurt

Thanks for the reply. But I have no any problem with the display filters. I need to capture events in the “gsm_sms” protocols and then write them into the files.

And now I have problem to write correct capture filter for the “gsm_sms” protocol. May be you know how to write correct capture filter for this protocol?

With best regards.

(08 Apr '13, 22:16) domeno

I don't think there is a way to use a capture filter to identify gsm_sms, as the capture filters have no protocol intelligence at the GSM level (only IP, UDP, TCP, etc.), so it would be hard/impossible to detect a gsm_sms message/packet.

Your best option is to capture everything and then later use Wireshark or tshark to just analyze gsm_sms with a display filter.

You can also ask the people at (see lists). Maybe they can help or have any further idea. If so, please update here as well for the benefit of all ;-)

(09 Apr '13, 05:58) Kurt Knochner ♦

Generally each protocol messages follows a definite structure. You have to decode the frame in order to find the GSM SMS protocol data.

Generally GSM SMS will have the following sequence,

The 21st byte of M3UA (refer to the above link) will be the indicator for the following protocol. It specifies which protocol message follows M3UA.

This may give you an idea how to proceed. GSM SMS protocol specifications can be found in ITU-T Q.7xx(not sure which number exactly it is) series of ITU-T. It is available freely.

No other way other than digging detail in to the frame to find out specific protocol message. I explored this when i tried to find out only ISUP messages. So not sure about GSM SMS. But I hope this will be handy. Will post it here if I find anything else.

permanent link

answered 09 Apr '13, 06:23

Manoj%20G's gravatar image

Manoj G
accept rate: 33%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 04 Apr '13, 06:58

question was seen: 8,501 times

last updated: 09 Apr '13, 06:23

p​o​w​e​r​e​d by O​S​Q​A