From 3a0b00460b6e82d920d360accdbe19d09548b7f7 Mon Sep 17 00:00:00 2001 From: z3bra Date: Thu, 2 Mar 2017 22:37:51 +0100 Subject: Write call state to the FCALL_STATE file --- ratox.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index f54ba93..97a3f55 100644 --- a/ratox.c +++ b/ratox.c @@ -1693,6 +1693,9 @@ loop(void) f->av.state &= ~RINGING; f->av.state |= TRANSMITTING; logmsg(": %s : Audio > Answered\n", f->name); + ftruncate(f->fd[FCALL_STATE], 0); + lseek(f->fd[FCALL_STATE], 0, SEEK_SET); + dprintf(f->fd[FCALL_STATE], "transmitting\n"); } } -- cgit v1.2.3