From bb64c6b3ba80f8ef844bae59e270ca9e3b43d1fd Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Thu, 25 May 2017 09:57:22 +0200 Subject: 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. --- src/amps/transaction.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/amps/transaction.h') diff --git a/src/amps/transaction.h b/src/amps/transaction.h index 5240991..79fd467 100644 --- a/src/amps/transaction.h +++ b/src/amps/transaction.h @@ -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); -- cgit v1.2.3