view sip-in/call_list.c @ 61:e12036337412

sip-in/mgw_ops.c: fix double semicolon
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Sep 2022 16:43:30 -0800
parents 02761f1ae5e5
children 75b7a7b61824
line wrap: on
line source

/*
 * In this module we implement call list management for themwi-sip-in.
 */

#include <sys/types.h>
#include <sys/socket.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"

struct call *call_list;

struct call *
find_call_by_sip_id(sought_id)
	char *sought_id;
{
	struct call *call;

	for (call = call_list; call; call = call->next)
		if (!strcmp(call->sip_call_id, sought_id))
			return call;
	return 0;
}