mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Add brazil detection (bug #2872)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
dsp.c
5
dsp.c
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
/* Number of goertzels for progress detect */
|
/* Number of goertzels for progress detect */
|
||||||
#define GSAMP_SIZE_NA 183 /* North America - 350, 440, 480, 620, 950, 1400, 1800 Hz */
|
#define GSAMP_SIZE_NA 183 /* North America - 350, 440, 480, 620, 950, 1400, 1800 Hz */
|
||||||
#define GSAMP_SIZE_CR 188 /* Costa Rica - Only care about 425 Hz */
|
#define GSAMP_SIZE_CR 188 /* Costa Rica, Brazil - Only care about 425 Hz */
|
||||||
|
|
||||||
#define PROG_MODE_NA 0
|
#define PROG_MODE_NA 0
|
||||||
#define PROG_MODE_CR 1
|
#define PROG_MODE_CR 1
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
#define HZ_1400 5
|
#define HZ_1400 5
|
||||||
#define HZ_1800 6
|
#define HZ_1800 6
|
||||||
|
|
||||||
/* For CR modes */
|
/* For CR/BR modes */
|
||||||
#define HZ_425 0
|
#define HZ_425 0
|
||||||
|
|
||||||
static struct progalias {
|
static struct progalias {
|
||||||
@@ -69,6 +69,7 @@ static struct progalias {
|
|||||||
{ "us", PROG_MODE_NA },
|
{ "us", PROG_MODE_NA },
|
||||||
{ "ca", PROG_MODE_NA },
|
{ "ca", PROG_MODE_NA },
|
||||||
{ "cr", PROG_MODE_CR },
|
{ "cr", PROG_MODE_CR },
|
||||||
|
{ "br", PROG_MODE_CR },
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct progress {
|
static struct progress {
|
||||||
|
Reference in New Issue
Block a user