comparison sip-in/call_clear.c @ 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 a30c25fb4c2f
children
comparison
equal deleted inserted replaced
115:1bbe57df74f6 116:3a1f0e13a3ac
51 struct call *call, **pp; 51 struct call *call, **pp;
52 52
53 for (pp = &call_list; *pp; ) { 53 for (pp = &call_list; *pp; ) {
54 call = *pp; 54 call = *pp;
55 if (call->overall_state == OVERALL_STATE_DEAD_SIP && 55 if (call->overall_state == OVERALL_STATE_DEAD_SIP &&
56 call->sip_clear_time >= cur_event_time.tv_sec) { 56 cur_event_time.tv_sec >= call->sip_clear_time) {
57 *pp = call->next; 57 *pp = call->next;
58 syslog(LOG_INFO, "Call in%06u finished", 58 syslog(LOG_INFO, "Call in%06u finished",
59 call->in_tag_num); 59 call->in_tag_num);
60 free(call); 60 free(call);
61 continue; 61 continue;