aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/voip_calls_dlg.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2005-02-07 08:56:39 +0000
committerAnders Broman <anders.broman@ericsson.com>2005-02-07 08:56:39 +0000
commitc765d211e9ea563224ac30474b666e68d43651bb (patch)
tree16c697b8f45b04f87c1c27584192fd76ff7a748c /gtk/voip_calls_dlg.c
parentbc04baef424c0dd1cb25ae1a6d17d1bae1f629c8 (diff)
From Alejandro Vaquero :
Find attached a 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=13336
Diffstat (limited to 'gtk/voip_calls_dlg.c')
-rw-r--r--gtk/voip_calls_dlg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/voip_calls_dlg.c b/gtk/voip_calls_dlg.c
index 0097e78d7a..af7de06fad 100644
--- a/gtk/voip_calls_dlg.c
+++ b/gtk/voip_calls_dlg.c
@@ -154,7 +154,7 @@ static void add_to_clist(voip_calls_info_t* strinfo)
/* Update the status label with the number of total messages */
g_snprintf(label_text, 256,
"Total: Calls: %d Start packets: %d Completed calls: %d Rejected calls: %d",
- voip_calls_get_info()->ncalls,
+ g_list_length(voip_calls_get_info()->strinfo_list),
voip_calls_get_info()->start_packets,
voip_calls_get_info()->completed_calls,
voip_calls_get_info()->rejected_calls);
@@ -604,19 +604,20 @@ static void voip_calls_dlg_create (void)
void voip_calls_dlg_update(GList *list)
{
gchar label_text[256];
-
+guint foo;
if (voip_calls_dlg != NULL) {
gtk_clist_clear(GTK_CLIST(clist));
calls_nb = 0;
calls_ns = 0;
g_snprintf(label_text, 256,
"Total: Calls: %d Start packets: %d Completed calls: %d Rejected calls: %d",
- voip_calls_get_info()->ncalls,
+ g_list_length(voip_calls_get_info()->strinfo_list),
voip_calls_get_info()->start_packets,
voip_calls_get_info()->completed_calls,
voip_calls_get_info()->rejected_calls);
gtk_label_set(GTK_LABEL(status_label), label_text);
+ foo= g_list_length(list);
list = g_list_first(list);
while (list)
{