aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-05-28 23:05:41 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-05-28 23:05:41 +0000
commitaaaeb78d5817eb15e09d32a6d109100f73a727ee (patch)
tree9d536a39c0e2d7ca7cc76374c32a8de286e989a4 /plugins
parent300714273231d4ad7bfff5eafb45107b1c1cd2f4 (diff)
from Alejandro Vaquero
fox to packet-mgcp.c to make the viop analysis working again. svn path=/trunk/; revision=14468
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mgcp/packet-mgcp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c
index baf9c7edd6..cf2a7d0087 100644
--- a/plugins/mgcp/packet-mgcp.c
+++ b/plugins/mgcp/packet-mgcp.c
@@ -1067,8 +1067,11 @@ static gint tvb_parse_param(tvbuff_t* tvb, gint offset, gint len, int** hf)
{
gint returnvalue = -1, tvb_current_offset,counter;
guint8 tempchar, plus_minus;
+ gchar **buf;
+
tvb_current_offset = offset;
*hf = NULL;
+ buf=NULL;
if (len > 0)
{
@@ -1184,6 +1187,7 @@ static gint tvb_parse_param(tvbuff_t* tvb, gint offset, gint len, int** hf)
break;
case 'S':
*hf = &hf_mgcp_param_signalreq;
+ buf = &(mi->signalReq);
break;
case 'D':
*hf = &hf_mgcp_param_digitmap;
@@ -1191,6 +1195,7 @@ static gint tvb_parse_param(tvbuff_t* tvb, gint offset, gint len, int** hf)
break;
case 'O':
*hf = &hf_mgcp_param_observedevent;
+ buf = &(mi->observedEvents);
break;
case 'P':
tvb_current_offset++;
@@ -1262,6 +1267,11 @@ static gint tvb_parse_param(tvbuff_t* tvb, gint offset, gint len, int** hf)
tvb_current_offset++;
tvb_current_offset = tvb_skip_wsp(tvb,tvb_current_offset, (len - tvb_current_offset + offset));
returnvalue = tvb_current_offset;
+
+ /* set the observedEvents or signalReq used in Voip Calls analysis */
+ if (buf != NULL) {
+ *buf = tvb_get_string(tvb, tvb_current_offset, (len - tvb_current_offset + offset));
+ }
}
}
else