comparison sip-in/call_list.c @ 60:02761f1ae5e5

sip-in INVITE processing: got as far as CRCX completion
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 11 Sep 2022 15:42:54 -0800
parents
children 75b7a7b61824
comparison
equal deleted inserted replaced
59:bea761629c5b 60:02761f1ae5e5
1 /*
2 * In this module we implement call list management for themwi-sip-in.
3 */
4
5 #include <sys/types.h>
6 #include <sys/socket.h>
7 #include <netinet/in.h>
8 #include <stdio.h>
9 #include <stdint.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <strings.h>
13 #include <syslog.h>
14 #include "call.h"
15
16 struct call *call_list;
17
18 struct call *
19 find_call_by_sip_id(sought_id)
20 char *sought_id;
21 {
22 struct call *call;
23
24 for (call = call_list; call; call = call->next)
25 if (!strcmp(call->sip_call_id, sought_id))
26 return call;
27 return 0;
28 }