changeset 116:3a1f0e13a3ac

sip-in call clearing: time comparison was reversed
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 28 Sep 2022 23:05:38 -0800
parents 1bbe57df74f6
children c93c339271a7
files sip-in/call_clear.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sip-in/call_clear.c	Wed Sep 28 22:54:57 2022 -0800
+++ b/sip-in/call_clear.c	Wed Sep 28 23:05:38 2022 -0800
@@ -53,7 +53,7 @@
 	for (pp = &call_list; *pp; ) {
 		call = *pp;
 		if (call->overall_state == OVERALL_STATE_DEAD_SIP &&
-		    call->sip_clear_time >= cur_event_time.tv_sec) {
+		    cur_event_time.tv_sec >= call->sip_clear_time) {
 			*pp = call->next;
 			syslog(LOG_INFO, "Call in%06u finished",
 				call->in_tag_num);