comparison sip-in/call_clear.c @ 109:9b87894704eb

sip-in: first step toward final call clearing
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 28 Sep 2022 16:32:13 -0800
parents
children c1c94b7fc2e2
comparison
equal deleted inserted replaced
108:0d6435808bcd 109:9b87894704eb
1 /*
2 * In this module we implement final clearing of calls, i.e., freeing
3 * of struct call, and all preliminary steps that need to happen
4 * toward this ultimate end state.
5 */
6
7 #include <sys/types.h>
8 #include <sys/socket.h>
9 #include <sys/time.h>
10 #include <netinet/in.h>
11 #include <stdio.h>
12 #include <stdint.h>
13 #include <stdlib.h>
14 #include <string.h>
15 #include <strings.h>
16 #include <syslog.h>
17 #include "call.h"
18
19 extern struct call *call_list;
20 extern struct timeval cur_event_time;
21
22 void
23 sip_mark_end_time(call, linger)
24 struct call *call;
25 unsigned linger;
26 {
27 call->sip_clear_time = cur_event_time.tv_sec + linger;
28 }