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

using tshark this filter doesn't work 'sccp.called_address "27829101006"'

asked Oct 19 '26

updated Oct 19 '26

 "C:\Program Files\Wireshark\tshark.exe" -r "27829101006.pcap" -Y 'sccp.called_address "27829101006"'
tshark: "27829101006" was unexpected in this context.
    sccp.called_address 27829101006

tshark always complains about filter value 27829101006
but this filter sccp.called_address "27829101006" works on wireshark

Comments

Display Filter Reference: Signalling Connection Control Part

Can you verify the field name. Does not appear under sccp on the dfref page.

User 2763 ( Oct 19 '26 )

3 Answers

0

answered Oct 19 '26

Sample capture CH2.pcap with target field attached to 1924: unable to decode the MTP3 - SCCP - TCAP - CAP HexDump

C:\Users\admin\Downloads>"C:\Program Files\Wireshark\tshark.exe" -r "CH2.pcap" -Y "sccp.calling.digits == \"9198444444\""
    1   0.000000 1983-02-05T06:31:55.000000000-0600 1969-12-31T18:00:01.200000000-0600         3200 20           Camel-v2 263    invoke initialDP

"escape" the inside quotes with a backslash \

0

answered Oct 19 '26

updated Oct 19 '26

the filter on wirehark is this with == (double equation): sccp.calling.digits == "27829101006"

"C:\Program Files\Wireshark\tshark.exe" -G fields | findstr /C:sccp.called.digits /C:sccp.calling.digits
F     Called Party Digits     sccp.called.digits      FT_STRING       sccp            0x0
F     Calling Party Digits    sccp.calling.digits     FT_STRING       sccp            0x0

"C:\Program Files\Wireshark\tshark.exe" -r "27829101006.pcap" -Y 'sccp.calling.digits == "27829101006"'
"C:\Program Files\Wireshark\tshark.exe" -r "27829101006.pcap" -Y sccp.calling.digits == "27829101006"

tshark: Display filters were specified both with "-Y" and with additional command-line arguments.

0

answered Oct 19 '26

The display filter ‘sccp.called_address "27829101006”’ does not follow the pattern for syntactically correct display filters. There would need to be some type of operator, such as equals (==), not-equal (!=), etc. between the left-hand side and right-hand components for this to validate syntactically correct.

Furthermore sccp.called_address does not appear to be a known display filter in currently available Wireshark.

Since you are already using tshark you can review the available display filters with the tshark -G fields command.

In the example below we are looking for any display filters that contain the text 'called_address':

> % tshark -G fields | grep called_address
>  F    Called address length   x25.called_address_length   FT_UINT8    x25 BASE_DEC    0xf 
>  F    Called address  x25.called_address  FT_STRING   x25     0x0 
> %

We see two matches for x25 but none for sccp.

If you want to see all of the display filters available for sccp try the following:

> % tshark -G fields,sccp. | sort | cat -n
>     1 sccp.assoc.id   Association ID
>     2 sccp.assoc.msg  Message in frame
>     3 sccp.called.ansi_pc PC
> ...
>   100 sccp.variable_pointer2  Pointer to second Mandatory Variable parameter
>   101 sccp.variable_pointer3  Pointer to third Mandatory Variable parameter
>   102 sccp.wrong_length   Wrong length indicated.
> %

You said the display filter sccp.called_address "27829101006" "works on wireshark".

Did you actually test that yourself in Wireshark?

If not, did you find an image or video online? If so, that was likely AI generated and an AI hallucination.

If you actually verified the display filter as written above worked in Wireshark do you have a customized version of Wireshark or a custom sccp plugin?

Comments

the filter on wireshark is this - with == (double equation): sccp.calling.digits == "27829101006"

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