Re: ISDN4BSD (HPS version) is going into ports

Hans Petter Selasky <[email protected]> Mon, 12 Nov 2012 14:58:01 +0100
Newsgroups gmane.os.freebsd.devel.isdn
Message-ID <[email protected]>
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isdn
To unsubscribe, send any mail to "[email protected]"