2003-07-25 17:57:09 +00:00
|
|
|
/* packet-mgcp.h
|
|
|
|
* Routines for mgcp packet disassembly
|
|
|
|
* RFC 2705
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2003-07-25 17:57:09 +00:00
|
|
|
*
|
|
|
|
* Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu>
|
|
|
|
*
|
|
|
|
* Ethereal - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@ethereal.com>
|
|
|
|
* Copyright 1999 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* A simple MGCP type that is occasionally handy */
|
2005-04-25 00:51:11 +00:00
|
|
|
typedef enum _mgcp_type
|
|
|
|
{
|
2005-04-26 23:14:35 +00:00
|
|
|
MGCP_REQUEST,
|
|
|
|
MGCP_RESPONSE,
|
|
|
|
MGCP_OTHERS
|
2003-07-25 17:57:09 +00:00
|
|
|
} mgcp_type_t;
|
|
|
|
|
|
|
|
/* Container for tapping relevant data */
|
2005-04-25 00:51:11 +00:00
|
|
|
typedef struct _mgcp_info_t
|
|
|
|
{
|
2005-04-26 23:14:35 +00:00
|
|
|
mgcp_type_t mgcp_type;
|
|
|
|
char code[5];
|
|
|
|
guint32 transid;
|
|
|
|
nstime_t req_time;
|
|
|
|
gboolean is_duplicate;
|
|
|
|
gboolean request_available;
|
|
|
|
guint32 req_num; /* frame number request seen */
|
|
|
|
gchar *endpointId;
|
|
|
|
gchar *observedEvents;
|
|
|
|
guint32 rspcode;
|
|
|
|
gchar *signalReq;
|
|
|
|
gboolean hasDigitMap;
|
2003-07-25 17:57:09 +00:00
|
|
|
} mgcp_info_t;
|
|
|
|
|
|
|
|
/* Item of request list */
|
2005-04-25 00:51:11 +00:00
|
|
|
typedef struct _mgcp_call_t
|
|
|
|
{
|
2005-04-26 23:14:35 +00:00
|
|
|
guint32 transid;
|
|
|
|
char code[5];
|
|
|
|
guint32 req_num; /* frame number request seen */
|
|
|
|
guint32 rsp_num; /* frame number response seen */
|
|
|
|
guint32 rspcode;
|
|
|
|
nstime_t req_time;
|
|
|
|
gboolean responded;
|
2005-04-25 00:51:11 +00:00
|
|
|
} mgcp_call_t;
|
|
|
|
|