Finetuning LOSS (noise) detection

The algorithm is still bad, but works in most cases
This commit is contained in:
Andreas Eversberg
2017-05-24 14:00:08 +02:00
parent 56024b384b
commit fc3b3e07be
2 changed files with 1 additions and 4 deletions

View File

@@ -45,9 +45,6 @@ static int new_callref = 0x40000000;
#define DIALING_TO 3.8 /* timeout after channel allocation "Kanalbelegung" */ #define DIALING_TO 3.8 /* timeout after channel allocation "Kanalbelegung" */
#define DIALING_TO2 0.5 /* timeout while receiving digits */ #define DIALING_TO2 0.5 /* timeout while receiving digits */
/* radio loss condition */
#define LOSS_OF_SIGNAL 12.5 /* duration of carrier loss until release */
/* mobile terminating call */ /* mobile terminating call */
#define ALERTING_TO 60 /* timeout after 60 seconds alerting the MS */ #define ALERTING_TO 60 /* timeout after 60 seconds alerting the MS */
#define PAGING_TO 2.1 /* 700..2100 ms timeout after paging "Selektivruf" */ #define PAGING_TO 2.1 /* 700..2100 ms timeout after paging "Selektivruf" */

View File

@@ -51,7 +51,7 @@ void audio_reset_loss(loss_t *loss)
loss->level_count = 0; loss->level_count = 0;
} }
#define LOSS_MAX_DIFF 1.1 /* 10 % difference */ #define LOSS_MAX_DIFF 1.2 /* 20 % difference */
/* call this for every interval */ /* call this for every interval */
int audio_detect_loss(loss_t *loss, double level) int audio_detect_loss(loss_t *loss, double level)