tWrite call state to the FCALL_STATE file - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3a0b00460b6e82d920d360accdbe19d09548b7f7
(DIR) parent 8980dc40eef790b5f706068db6c34abaf0637594
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Thu, 2 Mar 2017 22:37:51 +0100
Write call state to the FCALL_STATE file
Diffstat:
M ratox.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/ratox.c b/ratox.c
t@@ -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");
}
}