From owner-freebsd-current@FreeBSD.ORG Mon Nov 26 14:12:08 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 C014416A419 for ; Mon, 26 Nov 2007 14:12:08 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id 8C32513C478 for ; Mon, 26 Nov 2007 14:12:08 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:Subject:From:X-Attribution:Date:Message-Id; b=aBrtLCmAGj6Dl3423kCUS08GQqzC7XZzNmbRwUg/Tii1bJGRtHPXU+bhJAoqStObvdeownX72T6UKynm/VnbD7VeJP4y6Nl7XnGH5nPXrKDIBIjQL5H3zg9FKCVxrWMMzU3mk8dwWEWwOb59jlqRIhQAQka73cqrHnIM2VSC71EeeR5tDDC9XQNCKTLmRGm3Q6WodO2yHMlAZo6BJJYNxjNYMe/Hg9ODftpKLgJHm/IpKcdcdm9Slyo9Epey+Xzh; Received: from uucp by munchkin.clue.co.za with local-rmail (Exim 4.67) (envelope-from ) id 1Iwegx-0006mH-W6 for current@freebsd.org; Mon, 26 Nov 2007 14:12:08 +0000 Received: from ianf.clue.co.za ([10.0.0.6] helo=clue.co.za) by urchin.clue.co.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Iwege-0005ei-7e for current@freebsd.org; Mon, 26 Nov 2007 14:11:48 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Iwegc-0000eb-SL for current@freebsd.org; Mon, 26 Nov 2007 16:11:46 +0200 To: current@freebsd.org From: Ian FREISLICH X-Attribution: BOFH Date: Mon, 26 Nov 2007 16:11:46 +0200 Message-Id: Cc: Subject: 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 14:12:08 -0000 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. 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); - kthread_exit(0); + kproc_exit(0); } ZAP_LOCK(toselwakeup_lock); @@ -1254,7 +1254,7 @@ ZAP_LOCK_INIT(toselwakeup_lock, "toselwakeup_lock"); kthread_must_exit = 0; - if (kthread_create(selwakeup_thread_handler, (void *)toselwakeup, &kthread, 0, 0, "zt_selwakeup_thread")) + if (kproc_create(selwakeup_thread_handler, (void *)toselwakeup, kthread, 0, 0, "zt_selwakeup_thread")) { printf("Failed to create kthread\n"); } Ian -- Ian Freislich