diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-18 05:45:52 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-18 05:45:52 +0000 |
commit | dd1cbb3f4a9d563768b69bcf8df27f0eafada66c (patch) | |
tree | f9d55235f90b97b59125c9aa0dc408a23eba812d /epan/dissectors/packet-h248_annex_e.c | |
parent | c5f9cde0941a0591bbc7eb1f9f958f723f97bf12 (diff) |
Add part of E.5 Basic DTMF Generator Package
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19586 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-h248_annex_e.c')
-rw-r--r-- | epan/dissectors/packet-h248_annex_e.c | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/epan/dissectors/packet-h248_annex_e.c b/epan/dissectors/packet-h248_annex_e.c index 30abd3e98f..5876959d1f 100644 --- a/epan/dissectors/packet-h248_annex_e.c +++ b/epan/dissectors/packet-h248_annex_e.c @@ -45,6 +45,15 @@ static gint ett_h248_pkg_generic_cause_evt = -1; static gint ett_tdmc = -1; static gint ett_h248_pkg_generic = -1; +static const value_string h248_pkg_generic_cause_gencause_vals[] = { + { 1, "NR (Normal Release)"}, + { 2, "UR (Unavailable Resources)"}, + { 3, "FT (Failure, Temporary)"}, + { 4, "FP (Failure, Permanent)"}, + { 5, "IW (Interworking Error)"}, + { 6, "UN (Unsupported)"}, + { 0, NULL } +}; static h248_pkg_param_t h248_pkg_generic_cause_evt_params[] = { { 0x0001, &hf_h248_pkg_generic_cause_gencause, h248_param_ber_integer, NULL }, @@ -138,6 +147,43 @@ static int hf_h248_pkg_tonedet_evt_etd = -1; static int hf_h248_pkg_tonedet_evt_ltd = -1; */ +/* E.5 Basic DTMF Generator Package */ +static int hf_h248_pkg_dg = -1; +static int hf_h248_pkg_dg_params = -1; +static int hf_h248_pkg_dg_sig_d0 = -1; +static int hf_h248_pkg_dg_sig_d1 = -1; +static int hf_h248_pkg_dg_sig_d2 = -1; +static int hf_h248_pkg_dg_sig_d3 = -1; + +static gint ett_h248_pkg_dg = -1; +static gint ett_h248_pkg_dg_sig_d0 = -1; +static gint ett_h248_pkg_dg_sig_d1 = -1; +static gint ett_h248_pkg_dg_sig_d2 = -1; +static gint ett_h248_pkg_dg_sig_d3 = -1; + +/* Signals defenitions */ +static h248_pkg_sig_t h248_pkg_dg_signals[] = { + { 0x0010, &hf_h248_pkg_dg_sig_d0, &ett_h248_pkg_dg_sig_d0, NULL }, + { 0x0011, &hf_h248_pkg_dg_sig_d1, &ett_h248_pkg_dg_sig_d1, NULL }, + { 0x0012, &hf_h248_pkg_dg_sig_d2, &ett_h248_pkg_dg_sig_d2, NULL }, + { 0x0013, &hf_h248_pkg_dg_sig_d3, &ett_h248_pkg_dg_sig_d3, NULL }, + /* TODO add the rest of the signals */ + + { 0, NULL, NULL, NULL} +}; + +/* Packet defenitions */ +static h248_package_t h248_pkg_dg = { + 0x0005, + &hf_h248_pkg_dg, + &hf_h248_pkg_dg_params, + &ett_h248_pkg_dg, + NULL, /* Properties */ + h248_pkg_dg_signals, /* signals */ + NULL, /* events */ + NULL /* statistics */ +}; + /* H.248.1 E.9 Analog Line Supervision Package */ static int hf_h248_pkg_al = -1; static int hf_h248_pkg_al_param = -1; @@ -294,7 +340,7 @@ void proto_register_h248_annex_e(void) { /* H.248.1 E.1 Generic Package */ { &hf_h248_pkg_generic, { "Generic Package", "h248.pkg.generic", FT_BYTES, BASE_HEX, NULL, 0, "", HFILL }}, { &hf_h248_pkg_generic_cause_evt, { "Cause Event", "h248.pkg.generic.cause", FT_BYTES, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_h248_pkg_generic_cause_gencause, { "Generic Cause", "h248.pkg.generic.cause.gencause", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_h248_pkg_generic_cause_gencause, { "Generic Cause", "h248.pkg.generic.cause.gencause", FT_UINT32, BASE_HEX, VALS(h248_pkg_generic_cause_gencause_vals), 0, "", HFILL }}, { &hf_h248_pkg_generic_cause_failurecause, { "Generic Cause", "h248.pkg.generic.cause.failurecause", FT_STRING, BASE_HEX, NULL, 0, "", HFILL }}, /* H.248.1 E.9 Analog Line Supervision Package */ { &hf_h248_pkg_al, { "Analog Line Supervision Package", "h248.pkg.al", FT_BYTES, BASE_HEX, NULL, 0, "", HFILL }}, @@ -327,6 +373,12 @@ void proto_register_h248_annex_e(void) { &ett_h248_pkg_generic_cause_evt, &ett_h248_pkg_generic, + &ett_h248_pkg_dg, + &ett_h248_pkg_dg_sig_d0, + &ett_h248_pkg_dg_sig_d1, + &ett_h248_pkg_dg_sig_d2, + &ett_h248_pkg_dg_sig_d3, + &ett_h248_pkg_al, &ett_h248_pkg_al_evt_onhook, @@ -341,6 +393,7 @@ void proto_register_h248_annex_e(void) { proto_register_subtree_array(ett, array_length(ett)); h248_register_package(&h248_pkg_generic); + h248_register_package(&h248_pkg_dg); h248_register_package(&h248_pkg_al); h248_register_package(&h248_pkg_rtp); h248_register_package(&h248_pkg_tdmc); |