FreeCalypso > hg > themwi-system-sw
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sip-in/call_clear.c Wed Sep 28 16:32:13 2022 -0800 @@ -0,0 +1,28 @@ +/* + * In this module we implement final clearing of calls, i.e., freeing + * of struct call, and all preliminary steps that need to happen + * toward this ultimate end state. + */ + +#include <sys/types.h> +#include <sys/socket.h> +#include <sys/time.h> +#include <netinet/in.h> +#include <stdio.h> +#include <stdint.h> +#include <stdlib.h> +#include <string.h> +#include <strings.h> +#include <syslog.h> +#include "call.h" + +extern struct call *call_list; +extern struct timeval cur_event_time; + +void +sip_mark_end_time(call, linger) + struct call *call; + unsigned linger; +{ + call->sip_clear_time = cur_event_time.tv_sec + linger; +}