view mgw/dtmf_defs.h @ 164:baaa6c1a3d3b

sip-out shutdown handling: always do check_dead_call()
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2022 16:31:15 -0800
parents 4b35a5a400f1
children a6eb2de277f6
line wrap: on
line source

/*
 * This header file holds various internal definitions for DTMF generation,
 * including key tunable settings of min and max DTMF duration.
 */

#define	DTMF_MIN_FRAMES		5	/* 100 ms */
#define	DTMF_MAX_FRAMES		60	/* 1200 ms */

struct dtmf_desc {
	int	digit;
	float	freq_low;
	float	freq_high;
	int16_t	*samples;
};