From 267c56c41afbee3923e5f4127acd436c4eb9c44f Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 24 Oct 2014 14:30:40 +0100 Subject: Use (none, pending, active) instead of (0, 1, 2) --- ratox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index 0fa628e..55ab40c 100644 --- a/ratox.c +++ b/ratox.c @@ -396,7 +396,7 @@ cbcallinvite(void *av, int32_t cnum, void *udata) ftruncate(f->fd[FCALL_STATE], 0); lseek(f->fd[FCALL_STATE], 0, SEEK_SET); - dprintf(f->fd[FCALL_STATE], "1\n"); + dprintf(f->fd[FCALL_STATE], "pending\n"); } static void @@ -431,7 +431,7 @@ cbcallstart(void *av, int32_t cnum, void *udata) ftruncate(f->fd[FCALL_STATE], 0); lseek(f->fd[FCALL_STATE], 0, SEEK_SET); - dprintf(f->fd[FCALL_STATE], "2\n"); + dprintf(f->fd[FCALL_STATE], "active\n"); logmsg(": %s : Audio > Started\n", f->name); } @@ -532,7 +532,7 @@ cancelcall(struct friend *f, char *action) } ftruncate(f->fd[FCALL_STATE], 0); lseek(f->fd[FCALL_STATE], 0, SEEK_SET); - dprintf(f->fd[FCALL_STATE], "0\n"); + dprintf(f->fd[FCALL_STATE], "none\n"); /* Cancel Tx side of the call */ free(f->av.frame); @@ -1381,7 +1381,7 @@ friendcreate(int32_t frnum) /* Dump call pending state */ ftruncate(f->fd[FCALL_STATE], 0); - dprintf(f->fd[FCALL_STATE], "0\n"); + dprintf(f->fd[FCALL_STATE], "none\n"); f->av.state = 0; f->av.num = -1; -- cgit v1.2.3