Poll: asterisk anyone? (+patch)

From: Ian FREISLICH <ianf_at_clue.co.za>
Date: Mon, 26 Nov 2007 16:11:46 +0200
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
_at__at_ -254,7 +254,7 _at__at_
         while (1) {
                 if (kthread_must_exit) {
                         wakeup(cookie);
-                        kthread_exit(0);
+                        kproc_exit(0);
                 }
 
                 ZAP_LOCK(toselwakeup_lock);
_at__at_ -1254,7 +1254,7 _at__at_
                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
Received on Mon Nov 26 2007 - 13:12:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC