Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 14:58:01 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Paul Schenkeveld <freebsd@psconsult.nl>
Cc:        freebsd-isdn@freebsd.org
Subject:   Re: ISDN4BSD (HPS version) is going into ports
Message-ID:  <201211121458.01139.hselasky@c2i.net>
In-Reply-To: <20121112102332.GA13575@psconsult.nl>
References:  <509E87EF.9070607@incore.de> <201211112246.44683.hselasky@c2i.net> <20121112102332.GA13575@psconsult.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I looks like this is a problem on 1.8.x only. I have a 1.6.x system bridging 
to SIP and more and I don't see lots of unref'ed structures.

It appears to me that the Asterisk API has changed, and now needs a final de-
ref, by the allocator of the call structure. Could you try this patch, on a 
non-production system and see what happens:

Index: chan_capi/chan_capi.c
===================================================================
--- chan_capi/chan_capi.c	(revision 2419)
+++ chan_capi/chan_capi.c	(working copy)
@@ -1945,6 +1945,11 @@
 		if (pbx_chan->rings == 0)
 			pbx_chan->rings = 1;
 	    }
+	} else {
+#if (CC_AST_VERSION >= 0x10800)
+		/* drop final refcount */
+		hangup_what |= 2;
+#endif
 	}
 
 	if (hard_hangup) {


Thank you,
  -- HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211121458.01139.hselasky>