AMPS: Add DTX support

When DTX is enabled (-S dtx=2 or 3), a missing SAT tone causes the receiver
to mute audio and insert a low level of comfort noise.
Also the missing SAT tone will not cause the connection to be terminated.
This commit is contained in:
Andreas Eversberg
2017-05-25 09:57:22 +02:00
parent 2c1ab89723
commit bb64c6b3ba
7 changed files with 65 additions and 26 deletions

View File

@@ -36,6 +36,7 @@ typedef struct transaction {
enum amps_trans_state state; /* state of transaction */
struct timer timer; /* for varous timeouts */
int sat_detected; /* state if we detected SAT */
int dtx; /* if set, DTX is used with this call */
} transaction_t;
transaction_t *create_transaction(amps_t *amps, enum amps_trans_state trans_state, uint32_t min1, uint16_t min2, uint8_t msg_type, uint8_t ordq, uint8_t order, uint16_t chan);