siproc

A primitive SIP client that spawns processes for each call
git clone git://xatko.vsos.ethz.ch/siproc.git
Log | Files | Refs

commit 897338cbee27b41ae0da98515b87673353c2f49c
parent c009e2aca51c9011e74cd5e084f3752f82a9f82d
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date:   Tue, 23 Jul 2019 16:29:56 +0200

Delete the call once it gets terminated

The docs say that we should not do it in the callback, but they don't
give a proper reason so we're doing it anyways.

Diffstat:
src/siproc.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/siproc.cpp b/src/siproc.cpp @@ -143,6 +143,8 @@ public: CallInfo ci = getInfo(); if (ci.state == PJSIP_INV_STATE_DISCONNECTED) { fork_off(); + delete this; + return; } }