Page 1 of 1

Asterisk Recompile

PostPosted: Mon Apr 11, 2011 10:54 am
by Trying
We highly recommend updating the base OS distribution with the updates
available for OpenSuSE. If you want to run a newer kernel you will need
to recompile zaptel, wanpipe, and asterisk for the system to work.
We have included a script called asterisk-recompile you can run after
you install vicibox if you need to update the kernel.


Where is this script exactly? Is is not in usr/share/astguiclient in my installation.

PostPosted: Mon Apr 11, 2011 12:05 pm
by williamconley
Code: Select all
:~ # locate recompile
/usr/local/bin/asterisk-recompile


Now all we need is to have that script write a value to the vicidial "system statuses" or a flat text file with a kernel version to check against, and have it run at reboot (check for change, run if true). :)

PostPosted: Mon Apr 11, 2011 12:53 pm
by Trying
dialer1:~ # /usr/local/bin/asterisk-recompile
-bash: /usr/local/bin/asterisk-recompile: No such file or directory


Hmmm, locate recompile gives me no result.

Yeah that is a VERY good suggestion.

PostPosted: Mon Apr 11, 2011 1:03 pm
by Trying
Does anyone have a link where I can download this script?

PostPosted: Mon Apr 11, 2011 1:06 pm
by williamconley
locate recompile Nothing? Really?

alternately, of course, it is on every Vicibox install .iso :) pop one in and grab it!

PostPosted: Mon Apr 11, 2011 1:08 pm
by Trying
Locate recompile delivers no result, really. I will get it from the iso, thank you very much. :)

PostPosted: Mon Apr 11, 2011 1:16 pm
by williamconley
i guess he put that script in after your version. :)

BUT: Kumba Put The Script In. And you can go get it. That ain't a bad thing. LOL

While you're in that folder, grab any other scripts you bump into. Never know. 8)

PostPosted: Mon Apr 11, 2011 1:18 pm
by Trying
:lol: Will do

PostPosted: Tue Apr 12, 2011 12:37 pm
by Kumba
asterisk-recompile hasn't been included since v.3.1. If you attempt to run it on v.3.1 it won't work or really do anything.

PostPosted: Tue Apr 12, 2011 12:44 pm
by williamconley
eGads! It was taken out? What happened? Seems like a cool tool. Does it need repair?

PostPosted: Tue Apr 12, 2011 12:55 pm
by Trying
Yeah that is too bad :( Having a horrible time trying to recompile. I have to reinstall all the asterisk servers again.

PostPosted: Tue Apr 12, 2011 3:46 pm
by williamconley
Strange. We've never had serious problems with recompiles. So far.

PostPosted: Thu Apr 14, 2011 1:14 pm
by Kumba
The v.3.1 ViciBox uses packages. There should be no compiling necessary. In fact, compiling your own kernel and what-not will break the drivers. It has been this way since v.3.1.0-beta was out.

PostPosted: Fri Apr 15, 2011 2:59 am
by DarknessBBB
Kumba wrote:The v.3.1 ViciBox uses packages. There should be no compiling necessary. In fact, compiling your own kernel and what-not will break the drivers. It has been this way since v.3.1.0-beta was out.


So what is the best practice to install mISDN drivers?

Asterisk Recompile

PostPosted: Sat Apr 16, 2011 4:43 am
by sandflalelo
I suggest you to buy an External Voip Gateway T1/E1 to connect to PSTN and convert TDM signal into SIP send to your asterisk box via an IP Network.

Jackson

Re: Asterisk Recompile

PostPosted: Sat Apr 16, 2011 6:24 am
by DarknessBBB
sandflalelo wrote:I suggest you to buy an External Voip Gateway T1/E1 to connect to PSTN and convert TDM signal into SIP send to your asterisk box via an IP Network.

Jackson


I'm talking about BRI isdn, not PRI isdn, but you thoughts are still valid, thank you :)

BTW, I think my question is still valid: what if I need to recompile to install some strange, unsupported cards and so on? :P

PostPosted: Sat Apr 16, 2011 4:12 pm
by williamconley
Scratch install instructions still work. Install on top of the existing packages.

PostPosted: Sat Apr 16, 2011 9:07 pm
by Kumba
mISDN should already be installed. But I have no clue if you need something special for your set-up. I don't have BRI here to test so it was kind of a black-hole when I included it.

But since everyone wants to know, here's how you do a manual re-compile using the latest and greatest stuff. This might need to be adjusted incase the uninstall has further dependencies. I haven't tested this so use at your own risk:

# Backup if this is a working system and Uninstall old stuff
mkdir ~/asterisk-old
cp -r /etc/asterisk/* ~/asterisk-old
zypper remove asterisk* dahdi* libpri* wanpipe* *sangoma* *teletone*
zypper in asterisk-perl

zypper in -t pattern devel_kernel
mkdir /usr/src/tars
cd /usr/src/tars
wget http://downloads.asterisk.org/pub/telep ... 1.5.tar.gz
wget http://downloads.asterisk.org/pub/telep ... 4.1.tar.gz
wget ftp://ftp.sangoma.com/linux/current_wan ... 3.5.20.tgz
wget http://download.vicidial.com/required-a ... ici.tar.gz
cd /usr/src
tar -xzf ./tars/libpri-1.4.11.5.tar.gz
tar -xzf ./tars/dahdi-linux-complete-2.4.1.2+2.4.1.tar.gz
tar -xzf ./tars/wanpipe-3.5.20.tgz
tar -xzf ./tars/asterisk-1.4.39.1-vici.tar.gz

# LibPRI
cd /usr/src/libpri-1.4.11.5
make
make install

# DAHDI
cd /usr/src/dahdi-linux-complete-2.4.1.2+2.4.1
make
make install
make config
chkconfig --del dahdi
rm /etc/init.d/dahdi
ln -s /usr/src/dahdi-linux-complete-2.4.1.2+2.4.1/linux /usr/src/dahdi

# Wanpipe
cd /usr/src/wanpipe-3.5.20
./Setup install --with-zaptel=/usr/src/dahdi --noautostart --protocol=TDM

# Asterisk
cd /usr/src/asterisk-1.4.39.1-vici
./configure
make
make install
make config
cp -r ~/asterisk-old/* /etc/asterisk

And you should end up with freshly installed drivers.

PostPosted: Mon Apr 18, 2011 12:15 am
by DarknessBBB
I love you :P

PostPosted: Mon Apr 18, 2011 8:13 am
by williamconley
LOL. Put THAT on your testimonials page. I dare ya

PostPosted: Mon Apr 18, 2011 1:53 pm
by DarknessBBB
williamconley wrote:LOL. Put THAT on your testimonials page. I dare ya


Eh? I don't have such page!

PostPosted: Mon Apr 18, 2011 9:32 pm
by williamconley
Great first entry! Come on!