aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h225
diff options
context:
space:
mode:
authorLars Roland <Lars.Roland@gmx.net>2005-02-07 21:09:23 +0000
committerLars Roland <Lars.Roland@gmx.net>2005-02-07 21:09:23 +0000
commit66194e3f4a04fbd7b592d817f431592b33635514 (patch)
tree9276f8eb4828243c019f224909bf25e70e7f5a22 /asn1/h225
parent802a3977bfa68030d968427c8c2ad02e1da81fe8 (diff)
And finally (I hope) the last part from the patch
from Alejandro Vaquero: patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations svn path=/trunk/; revision=13347
Diffstat (limited to 'asn1/h225')
-rw-r--r--asn1/h225/h225.cnf15
-rw-r--r--asn1/h225/packet-h225-template.c2
-rw-r--r--asn1/h225/packet-h225-template.h2
3 files changed, 16 insertions, 3 deletions
diff --git a/asn1/h225/h225.cnf b/asn1/h225/h225.cnf
index 85327ab6e8..fd24d4f79b 100644
--- a/asn1/h225/h225.cnf
+++ b/asn1/h225/h225.cnf
@@ -203,16 +203,25 @@ CallIdentifier/guid guid
h225_pi->msg_tag = rasmessage_value;
#.END
#----------------------------------------------------------------------------------------
+#.FN_HDR DestinationInfo/_item
+
+ h225_pi->is_destinationInfo = TRUE;
+#.END
+#----------------------------------------------------------------------------------------
# TODO asn2eth can't handle restriced string ?
#.FN_BODY DialedDigits
-
- offset=dissect_per_restricted_character_string(tvb, offset, pinfo, tree, hf_index, 1, 128, "#,*0123456789", 13);
+ if (h225_pi->is_destinationInfo == TRUE) {
+ offset = dissect_per_restricted_character_string(tvb, offset, pinfo, tree, hf_index, 1, 128, "#,*0123456789", 13, (char *)&h225_pi->dialedDigits , 64);
+ h225_pi->is_destinationInfo = FALSE;
+ }
+ else
+ offset = dissect_per_restricted_character_string(tvb, offset, pinfo, tree, hf_index, 1, 128, "#,*0123456789", 13, NULL, NULL);
#.END
#----------------------------------------------------------------------------------------
# TODO asn2eth can't handle restriced string ?
#.FN_BODY NumberDigits
- offset=dissect_per_restricted_character_string(tvb, offset, pinfo, tree, hf_index, 1, 128, "#,*0123456789", 13);
+ offset=dissect_per_restricted_character_string(tvb, offset, pinfo, tree, hf_index, 1, 128, "#,*0123456789", 13, NULL, NULL);
#.END
#----------------------------------------------------------------------------------------
#.FN_BODY H245TransportAddress/h245ipAddress/h245ipv4
diff --git a/asn1/h225/packet-h225-template.c b/asn1/h225/packet-h225-template.c
index 94ced2434f..993eeddfa3 100644
--- a/asn1/h225/packet-h225-template.c
+++ b/asn1/h225/packet-h225-template.c
@@ -298,6 +298,8 @@ static void reset_h225_packet_info(h225_packet_info *pi)
pi->h245_address = 0;
pi->h245_port = 0;
pi->frame_label[0] = '\0';
+ pi->dialedDigits[0] = '\0';
+ pi->is_destinationInfo = FALSE;
}
/*
diff --git a/asn1/h225/packet-h225-template.h b/asn1/h225/packet-h225-template.h
index 69492a3538..b7b7c0667b 100644
--- a/asn1/h225/packet-h225-template.h
+++ b/asn1/h225/packet-h225-template.h
@@ -65,6 +65,8 @@ typedef struct _h225_packet_info {
gboolean is_h245Tunneling;
guint32 h245_address;
guint16 h245_port;
+ gchar dialedDigits[64]; /* Dialed Digits in the LRQ and LCF used for voip analysis */
+ gboolean is_destinationInfo;
gchar frame_label[50]; /* the Fram label used by graph_analysis, what is a abreviation of cinfo */
} h225_packet_info;