diff options
author | Anders Broman <anders.broman@ericsson.com> | 2006-07-05 05:18:06 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2006-07-05 05:18:06 +0000 |
commit | 330a42fc919239d0e17e549e076ec3e62c81afc5 (patch) | |
tree | 78c5e1f84ae095ce8ae309039812bbad9a938c9e /gtk/voip_calls.c | |
parent | 2c39ec122cda76aff36d9e0594868a94574c6ac9 (diff) | |
download | wireshark-330a42fc919239d0e17e549e076ec3e62c81afc5.tar.gz wireshark-330a42fc919239d0e17e549e076ec3e62c81afc5.tar.bz2 wireshark-330a42fc919239d0e17e549e076ec3e62c81afc5.zip |
From Martin Mathieson:
Mike Oliveras has indicated that for MGCP voip calls, 2 seconds may be a
better timeout for still matching DLCX requests to a hung-up endpoint,
as in this patch.
svn path=/trunk/; revision=18662
Diffstat (limited to 'gtk/voip_calls.c')
-rw-r--r-- | gtk/voip_calls.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/voip_calls.c b/gtk/voip_calls.c index edd6e8816a..ed0e2bd610 100644 --- a/gtk/voip_calls.c +++ b/gtk/voip_calls.c @@ -2289,11 +2289,15 @@ MGCPcalls_packet( void *ptr _U_, packet_info *pinfo, epan_dissect_t *edt _U_, co if (pi->endpointId != NULL){ if (g_strcasecmp(tmp_mgcpinfo->endpointId,pi->endpointId) == 0){ /* - check first if it is an ended call. We consider an ended call after 1sec we don't - get a packet in this Endpoint and the call has been released + check first if it is an ended call. We can still match packets to this Endpoint 2 seconds + after the call has been released */ diff_time = nstime_to_sec(&pinfo->fd->rel_ts) - tmp_listinfo->stop_sec - (double)tmp_listinfo->stop_usec/1000000; - if ( ((tmp_listinfo->call_state == VOIP_CANCELLED) || (tmp_listinfo->call_state == VOIP_COMPLETED) || (tmp_listinfo->call_state == VOIP_REJECTED)) && (diff_time > 1) ){ + if ( ((tmp_listinfo->call_state == VOIP_CANCELLED) || + (tmp_listinfo->call_state == VOIP_COMPLETED) || + (tmp_listinfo->call_state == VOIP_REJECTED)) && + (diff_time > 2) ) + { tmp_listinfo->call_active_state = VOIP_INACTIVE; } else { strinfo = (voip_calls_info_t*)(list->data); |