AMPS: Minor fixes to loopback test
This commit is contained in:
@@ -590,8 +590,8 @@ int amps_create(int channel, enum amps_chan_type chan_type, const char *audiodev
|
|||||||
uint32_t min1;
|
uint32_t min1;
|
||||||
uint16_t min2;
|
uint16_t min2;
|
||||||
amps_number2min("1234567890", &min1, &min2);
|
amps_number2min("1234567890", &min1, &min2);
|
||||||
transaction_t __attribute__((__unused__)) *trans = create_transaction(amps, TRANS_CALL_ASSIGN, min1, min2, 0, 0, 0, amps->sender.kanal);
|
transaction_t __attribute__((__unused__)) *trans = create_transaction(amps, TRANS_CALL_MO_ASSIGN, min1, min2, 0, 0, 0, amps->sender.kanal);
|
||||||
amps_new_state(amps, STATE_BUSY);
|
// amps_new_state(amps, STATE_BUSY);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PDEBUG(DAMPS, DEBUG_NOTICE, "Created channel #%d (System %s) of type '%s' = %s\n", channel, band, chan_type_short_name(chan_type), chan_type_long_name(chan_type));
|
PDEBUG(DAMPS, DEBUG_NOTICE, "Created channel #%d (System %s) of type '%s' = %s\n", channel, band, chan_type_short_name(chan_type), chan_type_long_name(chan_type));
|
||||||
@@ -753,9 +753,6 @@ void amps_rx_sat(amps_t *amps, int tone, double quality)
|
|||||||
trans->sat_detected = 0;
|
trans->sat_detected = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (amps->sender.loopback)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* no SAT during alerting */
|
/* no SAT during alerting */
|
||||||
if (trans->state == TRANS_CALL_MT_ALERT
|
if (trans->state == TRANS_CALL_MT_ALERT
|
||||||
|| trans->state == TRANS_CALL_MT_ALERT_SEND)
|
|| trans->state == TRANS_CALL_MT_ALERT_SEND)
|
||||||
@@ -769,6 +766,9 @@ void amps_rx_sat(amps_t *amps, int tone, double quality)
|
|||||||
else
|
else
|
||||||
timer_stop(&trans->timer);
|
timer_stop(&trans->timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (amps->sender.loopback)
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void timeout_sat(amps_t *amps, double duration)
|
static void timeout_sat(amps_t *amps, double duration)
|
||||||
|
Reference in New Issue
Block a user