tDo a toxav_hangup() like we do elsewhere - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 68bfca6e6ec56f7eda1a08b6cb7316ce0d8bc425
 (DIR) parent 0368ab5203e985277c13020317059026c2d3e642
 (HTM) Author: sin <sin@2f30.org>
       Date:   Wed,  8 Oct 2014 20:24:06 +0100
       
       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().
       
       Diffstat:
         M ratox.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -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);
                                                }