view libutil/mncc_utils.c @ 176:f5c4f9a764be

osmo-bts-rtp-bfi.patch: updated version This version of the osmo-bts patch sets the TAF bit correctly in generated RTP BFI packets, correctly generates RTP BFI in the case of FACCH stealing on sysmoBTS, and removes one EFR-specific bogon from sysmoBTS code.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 17 Feb 2023 18:27:03 -0800
parents dbc0a8677b69
children
line wrap: on
line source

/* simple utility functions for MNCC */

#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "../include/mncc.h"
#include "../include/gsm48_const.h"

mncc_set_cause(msg, loc, val)
	struct gsm_mncc *msg;
{
	msg->fields |= MNCC_F_CAUSE;
	msg->cause.coding = GSM48_CAUSE_CODING_GSM;
	msg->cause.location = loc;
	msg->cause.value = val;
}