summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-08 20:24:06 +0100
committersin <sin@2f30.org>2014-10-08 20:24:06 +0100
commit68bfca6e6ec56f7eda1a08b6cb7316ce0d8bc425 (patch)
treebd8bf2a7b865b48596ab5efa331e14f89c3d8ae9
parent0368ab5203e985277c13020317059026c2d3e642 (diff)
Do a toxav_hangup() like we do elsewhere
This will trigger the callback and reset toxav internal states accordingly. In the callback we actually call cancelcall().
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index 182e1b4..7eaeb2e 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1764,7 +1764,7 @@ loop(void)
case av_CallActive:
if ((fd = openat(f->dirfd, ffiles[FCALL_OUT].name, ffiles[FCALL_OUT].flags)) == -1 &&
errno == ENXIO) {
- cancelcall(f, "Ended");
+ toxav_hangup(toxav, f->av.num);
} else {
close(fd);
}