summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorz3bra <contactatz3bradotorg>2017-03-02 22:37:51 +0100
committerz3bra <contactatz3bradotorg>2017-03-02 22:37:51 +0100
commit3a0b00460b6e82d920d360accdbe19d09548b7f7 (patch)
treedf8a3917f0104207415ca1337f55d99f554c4833 /ratox.c
parent8980dc40eef790b5f706068db6c34abaf0637594 (diff)
Write call state to the FCALL_STATE file
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c3
1 files changed, 3 insertions, 0 deletions
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");
}
}