summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-24 14:30:40 +0100
committersin <sin@2f30.org>2014-10-24 14:30:55 +0100
commit267c56c41afbee3923e5f4127acd436c4eb9c44f (patch)
tree2109974ea2c4d90619b37919fc636809e3faef7c /ratox.c
parentedf96a7ce3c34448be3250ad0a0137f7ab951ca8 (diff)
Use (none, pending, active) instead of (0, 1, 2)
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c8
1 files changed, 4 insertions, 4 deletions
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;