aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/voip_calls.h
diff options
context:
space:
mode:
authorLars Roland <Lars.Roland@gmx.net>2005-02-20 15:53:11 +0000
committerLars Roland <Lars.Roland@gmx.net>2005-02-20 15:53:11 +0000
commitb65e9739d29e6ccaba833986088f10d32405475d (patch)
tree586b38b0e155434aef2d602a4cb8072d5e858cb6 /gtk/voip_calls.h
parenta177b7a4cc593a7655c8a9bc23ced7ac68cf2b6d (diff)
Don't register mgcp taps,
when we haven't loaded the mgcp plugin. and From Alejandro Vaquero: mgcp support for the voip call analysis tap svn path=/trunk/; revision=13447
Diffstat (limited to 'gtk/voip_calls.h')
-rw-r--r--gtk/voip_calls.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/gtk/voip_calls.h b/gtk/voip_calls.h
index ec8fdc3f14..fd3a2c80f7 100644
--- a/gtk/voip_calls.h
+++ b/gtk/voip_calls.h
@@ -44,6 +44,7 @@
/* defines voip call state */
typedef enum _voip_call_state {
VOIP_CALL_SETUP,
+ VOIP_RINGING,
VOIP_IN_CALL,
VOIP_CANCELLED,
VOIP_COMPLETED,
@@ -51,7 +52,7 @@ typedef enum _voip_call_state {
VOIP_UNKNOWN
} voip_call_state;
-extern char *voip_call_state_name[6];
+extern char *voip_call_state_name[7];
typedef enum _voip_call_active_state {
VOIP_ACTIVE,
@@ -61,10 +62,11 @@ typedef enum _voip_call_active_state {
typedef enum _voip_protocol {
VOIP_SIP,
VOIP_ISUP,
- VOIP_H323
+ VOIP_H323,
+ VOIP_MGCP
} voip_protocol;
-extern char *voip_protocol_name[3];
+extern char *voip_protocol_name[4];
/* defines specific SIP data */
@@ -81,13 +83,13 @@ typedef struct _sip_calls_info {
} sip_calls_info_t;
/* defines specific ISUP data */
-
typedef struct _isup_calls_info {
guint16 cic;
guint32 opc, dpc;
guint8 ni;
} isup_calls_info_t;
+/* defines specific H245 data */
typedef struct _h245_address {
guint32 h245_address;
guint16 h245_port;
@@ -107,6 +109,13 @@ typedef struct _h323_calls_info {
guint requestSeqNum;
} h323_calls_info_t;
+/* defines specific MGCP data */
+typedef struct _mgcp_calls_info {
+ gchar *endpointId;
+ gboolean fromEndpoint; /* true if the call was originated from the Endpoint, false for calls from MGC */
+} mgcp_calls_info_t;
+
+
/* defines a voip call */
typedef struct _voip_calls_info {
voip_call_state call_state;
@@ -149,6 +158,7 @@ typedef struct _voip_calls_tapinfo {
int mtp3_dummy;
int isup_dummy;
int q931_dummy;
+ int mgcp_dummy;
} voip_calls_tapinfo_t;
@@ -197,6 +207,7 @@ void h245dg_calls_init_tap(void);
void q931_calls_init_tap(void);
void sdp_calls_init_tap(void);
void rtp_init_tap(void);
+void mgcp_calls_init_tap(void);
/*
@@ -211,6 +222,7 @@ void remove_tap_listener_h245dg_calls(void);
void remove_tap_listener_q931_calls(void);
void remove_tap_listener_sdp_calls(void);
void remove_tap_listener_rtp(void);
+void remove_tap_listener_mgcp_calls(void);
/*
* Retrieves a constant reference to the unique info structure of the voip_calls tap listener.