ratox

FIFO based tox client
git clone git://git.2f30.org/ratox
Log | Files | Refs | README | LICENSE

commit 3a0b00460b6e82d920d360accdbe19d09548b7f7
parent 8980dc40eef790b5f706068db6c34abaf0637594
Author: z3bra <contactatz3bradotorg>
Date:   Thu,  2 Mar 2017 22:37:51 +0100

Write call state to the FCALL_STATE file

Diffstat:
Mratox.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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"); } }