Bristuff

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Bristuff

Postby GaD » Wed Mar 28, 2012 9:40 pm

I have a quick question. I have problems hearing the 'ringing' when calling manually. I'm trying to setup bristuff, but I keep getting error after error.

For those who are reading and need the info., you need to download kernel sources by doing:

#zypper install kernel-default-devel

After that I get another error that linux/autoconf.h: No such file or directory:

"In file included from /root/bristuff-0.4.0-RC3d/zaptel-1.4.12.1/kernel/zaptel.h:39:0,
from /root/bristuff-0.4.0-RC3d/zaptel-1.4.12.1/kernel/pciradio.c:56:
/root/bristuff-0.4.0-RC3d/zaptel-1.4.12.1/kernel/zconfig.h:26:28: fatal error: linux/autoconf.h: No such file or directory"

I narrowed it down that this happens when I try do make <and whatever, or none, options> in the zaptel folder. I've done a locate and I have found that I have this:
#:~/bristuff-0.4.0-RC3d/zaptel # locate autoconf.h
/usr/src/linux-2.6.34.10-0.6-obj/x86_64/default/include/generated/autoconf.h

At this point I have no idea where to go.... Any ideas...? I thought of doing a 'ln -s', but I do not know where this 'linux/autoconf' is.... :( :( :(
GaD
 
Posts: 195
Joined: Fri Jul 08, 2011 3:56 pm

Postby DomeDan » Fri Mar 30, 2012 5:06 am

I found the same problem here: http://forums.asterisk.org/viewtopic.php?f=14&t=79272
answer wrote:zaptel is obsolete and should not be used for new installs. Use 2.4 series versions of dahdi.

Asterisk 1.4 is obsolete and should not be used in new installs. Use Asterisk 1.8.5, at least.

Asterisk 1.4.12 is obsolete even by Asterisk 1.4 standards and shouldn't have been used for some time before 1.4 went on security fixes only.

config.log should show you where it went wrong, but note that configure attempts to do lots of things that will fail on one system or another, so expect the log to be full of error messages.

still not giving up, tried to replace <linux/autoconf.h> with <generated/autoconf.h>

then I got:
/root/bristuff-0.4.0-RC3d/zaptel-1.4.12.1/kernel/pciradio.c:1701:2: error: implicit declaration of function ‘set_current_state’
fixed that by adding #include <linux/sched.h>

and then this:
/root/bristuff-0.4.0-RC3d/zaptel-1.4.12.1/kernel/ztdummy.c:315:2: error: implicit declaration of function ‘kmalloc’
fixed that with added #include <linux/slab.h>

this is how I did the changes:
Code: Select all
cd zaptel-1.4.12.1/
sed -i 's/<linux\/autoconf.h>/<generated\/autoconf.h>\n#include\ <linux\/sched.h>\n#include\ <linux\/slab.h>/g' kernel/zconfig.h
sed -i 's/<linux\/autoconf.h>/<generated\/autoconf.h>/g' kernel/wct4xxp/vpm450m.c


next error:
/root/bristuff-0.4.0-RC3d/zaptel-1.4.12.1/kernel/ztdummy.c:202:43: error: ‘struct hrtimer’ has no member named ‘expires’
fixed that: http://ubuntuforums.org/showthread.php?t=1144894
with a patch: http://anonscm.debian.org/viewvc/pkg-vo ... threv=6683

then this error:
/root/bristuff-0.4.0-RC3d/zaptel-1.4.12.1/kernel/wctc4xxp/base.c:611:27: error: ‘struct net_device’ has no member named ‘priv’
tried what this guy wrote http://blog.matachowski.com/post/736172351 "Remove everything that refers to *wctc4xpp* and *xpp* in Mafefile. It should fix the problem and allow to finish installation."
Code: Select all
-INCOMPAT_MODULES:=xpp wcte12xp wctc4xxp wctdm24xxp zttranscode
+INCOMPAT_MODULES:=wcte12xp wctdm24xxp zttranscode
-INCOMPAT_MODULES:=wcte12xp wctc4xxp wctdm24xxp zttranscode
+INCOMPAT_MODULES:=wcte12xp wctdm24xxp zttranscode
-SUBDIR_MODULES:=wct4xxp wctc4xxp xpp wctdm24xxp wcte12xp
+SUBDIR_MODULES:=wct4xxp wctdm24xxp wcte12xp

I dont know how well it will work but it did compile.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Postby GaD » Wed Apr 11, 2012 9:07 pm

Hi DomeDan,

How well has your 'patch' worked? Unfortunately my bosses won't let me do much on the BRISTUFF until it is known to work well..., I'm hoping you can 'shed a light' and tell me so I don't have to create another test vici.... :)

Lemme' know! Thanks a ton!
GaD
 
Posts: 195
Joined: Fri Jul 08, 2011 3:56 pm

Postby DomeDan » Thu Apr 12, 2012 2:39 am

I have no idea, and I cant test it because I don't got a BRI telephony interface card.
I guess you have to bite the bullet create a test vici.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 123 guests