From owner-freebsd-current@FreeBSD.ORG Mon Nov 26 18:50:50 2007 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 D823316A418 for ; Mon, 26 Nov 2007 18:50:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outI.internet-mail-service.net (outI.internet-mail-service.net [216.240.47.232]) by mx1.freebsd.org (Postfix) with ESMTP id B55BA13C461 for ; Mon, 26 Nov 2007 18:50:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Mon, 26 Nov 2007 10:50:50 -0800 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 97690126AB0; Mon, 26 Nov 2007 10:50:49 -0800 (PST) Message-ID: <474B1588.4070605@elischer.org> Date: Mon, 26 Nov 2007 10:50:48 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Ian FREISLICH References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Poll: asterisk anyone? (+patch) 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: Mon, 26 Nov 2007 18:50:51 -0000 Ian FREISLICH wrote: > Hi > > Just a quick poll to find out if anyone here is successfully running > asterisk (+zaptel) on 7-BETAx or -CURRENT or a previous branch for > that matter. > > I'm having great difficulty making it work on -CURRENT/AMD64. After > the recentish changes renaming kthreads to kproc, zaptel needs the > following patch to compile. > > Any datapoints, even that I'm being a total noob will be helpful. > > I'm experiencing: > 8-CURRENT (amd64): phone on FXS port doesn't get dial tone. A SIP phone can > register, but the first dial attempt requires a reboot to > unstick asterisk. I sent patches to someone in ports about this. I forget who. they said they'd add the changes (shown below) required to the port patches.. > 7-BETA (i386): phone on FXS port gets dialtone, but the first dial attempt > requires a reboot to unstick asterisk. > 6.3-BETA (i386): Works fine. > > --- work/zaptel-bsd-1.4.6/zaptel/zaptel.c.orig 2007-11-13 08:12:02.000000000 +0000 > +++ work/zaptel-bsd-1.4.6/zaptel/zaptel.c 2007-11-13 08:16:38.000000000 +0000 > @@ -254,7 +254,7 @@ > while (1) { > if (kthread_must_exit) { > wakeup(cookie); #if __FreeBSD_Version__ < 800002 > - kthread_exit(0); #else > + kproc_exit(0); #endif > } > > ZAP_LOCK(toselwakeup_lock); > @@ -1254,7 +1254,7 @@ > ZAP_LOCK_INIT(toselwakeup_lock, "toselwakeup_lock"); > > kthread_must_exit = 0; #if __FreeBSD_Version__ < 800002 > - if (kthread_create(selwakeup_thread_handler, (void *)toselwakeup, &kthread, 0, 0, "zt_selwakeup_thread")) #else > + if (kproc_create(selwakeup_thread_handler, (void *)toselwakeup, kthread, 0, 0, "zt_selwakeup_thread")) #endif and, shouldn't that be &kthread? > { > printf("Failed to create kthread\n"); > } > > Ian > > -- > Ian Freislich > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"