summaryrefslogtreecommitdiff
path: root/src/audio.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-07-31 16:45:03 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-07-31 16:45:03 +0200
commit8673275df8551a378fddfa570ace148eb340cf07 (patch)
treead09d7dfc632656766050a247d07976bb134a013 /src/audio.c
parent85e7ca656ea838805a702df278d1d73a2fb8f684 (diff)
test: add test for sending DTMF-digits
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index c98e35c..2b5be6e 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -325,7 +325,7 @@ static void encode_rtp_send(struct audio *a, struct autx *tx,
size_t len;
int err;
- if (!tx->ac)
+ if (!tx->ac || !tx->ac->ench)
return;
tx->mb->pos = tx->mb->end = STREAM_PRESZ;