This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Country Code decoding

0

Hi,

when i view any trace via wire-shark, how wire shark identifying the country code from the calling or called party number ?

Some of the country codes are two digits and some are three digits what is the logic to identify the country code out of the number ?

Best Regards Anand.R

asked 10 Aug '16, 04:22

AnandRoni's gravatar image

AnandRoni
16223
accept rate: 0%


One Answer:

1

Have a look at dissect_e164_cc() in packet-e164.c https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob;f=epan/dissectors/packet-e164.c;h=00638ab5c72f3dd76971cb9f3fc8e865119e5554;hb=HEAD

But basically looking at the digits one by one. eg First digit == 1 CC Length =1.

answered 10 Aug '16, 05:02

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%