From owner-freebsd-current@FreeBSD.ORG Thu Feb 14 18:24:36 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 380D716A419 for ; Thu, 14 Feb 2008 18:24:36 +0000 (UTC) (envelope-from bazzoola@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id EAA9313C4CE for ; Thu, 14 Feb 2008 18:24:35 +0000 (UTC) (envelope-from bazzoola@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so512264pyb.10 for ; Thu, 14 Feb 2008 10:24:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=D3uJPnX1vlTIpLomBU/tzZQaAmUVlWVzJNGoTlbpFL8=; b=lKOGoAEf1GSvGvJ42ghwDHFnbEM/UMi3iv924EHCcwGFXvJZAPGHl0JuauM3smEnI1qMUzXpQKT0GrKgCao/GI8laKYFCYrbAUfSFTAJrHuHO16KyXO0IVGV1XErNfCxferHgwKQVZ+GZ07tcZO3gmW+zKxE2LIq6gGZmTOb2+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=EitjFmbLzutfaV2v+t3s63csN6e9Ypv56c5GHB3pzv//nwwQwvUfPYO8r76Sfff6gOw+p2jpsOKeHDIbkStVRYV4j2I6bPBWLqN7KnFERPQ6QWyZSfXPnVkHy2tFmJ3Xr7knTF3d7SRCtg3PVx5+urG4yLLYMdU2U4uHzCP/8g0= Received: by 10.35.87.8 with SMTP id p8mr1787423pyl.16.1203011817800; Thu, 14 Feb 2008 09:56:57 -0800 (PST) Received: from macwire.local ( [76.251.209.101]) by mx.google.com with ESMTPS id f6sm7629448pyh.13.2008.02.14.09.56.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Feb 2008 09:56:56 -0800 (PST) Message-Id: From: bazzoola To: Ian FREISLICH In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 14 Feb 2008 12:56:51 -0500 References: X-Mailer: Apple Mail (2.919.2) Cc: current@freebsd.org Subject: Re: Zaptel port X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2008 18:24:36 -0000 On Dec 5, 2007, at 8:23 AM, Ian FREISLICH wrote: > Ian FREISLICH wrote: >> Folling my previous post about zaptel and asterisk, I've done a lot >> of searching and the following patch from a very recent post to the >> asterisk-bsd digium list solves the asterisk/zaptel lockup at least >> for the 7.0 case. I'd suggest this patch making it into the >> 7-RELEASE cycle otherwise the latest branch that Asterisk with zaptel >> will work on is 6.x. >> >> The first chunk of this patch is already in the ports system. > > As usual, I post too quickly. The 3rd chunk is not needed. The > correct patch is attached. > > -- > Ian Freislich > Thanks for your efforts Ian. I submitted this patch long time ago to the maintainer on your behalf. It is already included and working for the past two months :) Take a look at 1.4.6_3 log http://www.freshports.org/misc/zaptel/ Please update your ports tree because: #cat /usr/ports/misc/zaptel/files/patch-zaptel::zaptel.c $FreeBSD: ports/misc/zaptel/files/patch-zaptel::zaptel.c,v 1.4 2007/12/26 10:18:45 sobomax Exp $ --- zaptel/zaptel.c.orig +++ zaptel/zaptel.c @@ -396,7 +396,7 @@ int schluffen(void *q) { - int rc = tsleep(q, PZERO | PCATCH, "schluffen", 0); + int rc = tsleep(q, PZERO | PCATCH, "schluffen", 10); switch(rc) { case EINTR: @@ -675,7 +675,11 @@ /* Free dev_info, if exist */ if(dev->si_drv2) free(dev->si_drv2, M_ZAP); dev->si_drv2 = NULL; +#if (__FreeBSD_version >= 700050) + destroy_dev_sched(dev); +#else destroy_dev(dev); +#endif return res; }