Add manpage
Fix compilation in Debian kFreeBSD

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>
prepare for release

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>
Rework state management for audio calls

No need to try to keep local state, just use toxav_get_call_state().
We now can auto-accept calls by pre-attaching on the call_out FIFO.
Manpage update
Add -lrt to LDFLAGS
Fix build on kfreebsd
Check if the call id is valid before cancelling it
Update README
Update README
Update README
Update README
Update README
Merge branch 'master' into debian/unstable
prepare for release

- drop patches applied upstream
- drop manpage from ./debian (accepted upstream)
- patch manpage to document package divergence

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>
prepare for release

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>
Check outfiles if they are still open

If not, abort receiving.
Fix file-transfers
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().
Don't close a random fd

if (f->rxstate == TRANSFER_INPROGRESS &&
    (fd = openat(f->dirfd, ffiles[FFILE_OUT].name, ffiles[FFILE_OUT].flags, 0666)) == -1 &&
    errno == ENXIO) {
    ...
} else {
    close(fd); <--- not always appropriate!
}