Asterisk Recompile

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

Asterisk Recompile

Postby Trying » Mon Apr 11, 2011 10:54 am

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.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Mon Apr 11, 2011 12:05 pm

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). :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Mon Apr 11, 2011 12:53 pm

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.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Trying » Mon Apr 11, 2011 1:03 pm

Does anyone have a link where I can download this script?
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Mon Apr 11, 2011 1:06 pm

locate recompile Nothing? Really?

alternately, of course, it is on every Vicibox install .iso :) pop one in and grab it!
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Mon Apr 11, 2011 1:08 pm

Locate recompile delivers no result, really. I will get it from the iso, thank you very much. :)
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Mon Apr 11, 2011 1:16 pm

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)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Mon Apr 11, 2011 1:18 pm

:lol: Will do
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Kumba » Tue Apr 12, 2011 12:37 pm

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.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Postby williamconley » Tue Apr 12, 2011 12:44 pm

eGads! It was taken out? What happened? Seems like a cool tool. Does it need repair?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Tue Apr 12, 2011 12:55 pm

Yeah that is too bad :( Having a horrible time trying to recompile. I have to reinstall all the asterisk servers again.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Tue Apr 12, 2011 3:46 pm

Strange. We've never had serious problems with recompiles. So far.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Kumba » Thu Apr 14, 2011 1:14 pm

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.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Postby DarknessBBB » Fri Apr 15, 2011 2:59 am

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?
DarknessBBB
 
Posts: 328
Joined: Mon Jul 16, 2007 10:14 am

Asterisk Recompile

Postby sandflalelo » Sat Apr 16, 2011 4:43 am

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
sandflalelo
 
Posts: 1
Joined: Sat Feb 05, 2011 8:25 pm

Re: Asterisk Recompile

Postby DarknessBBB » Sat Apr 16, 2011 6:24 am

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
DarknessBBB
 
Posts: 328
Joined: Mon Jul 16, 2007 10:14 am

Postby williamconley » Sat Apr 16, 2011 4:12 pm

Scratch install instructions still work. Install on top of the existing packages.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Kumba » Sat Apr 16, 2011 9:07 pm

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.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Postby DarknessBBB » Mon Apr 18, 2011 12:15 am

I love you :P
DarknessBBB
 
Posts: 328
Joined: Mon Jul 16, 2007 10:14 am

Postby williamconley » Mon Apr 18, 2011 8:13 am

LOL. Put THAT on your testimonials page. I dare ya
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby DarknessBBB » Mon Apr 18, 2011 1:53 pm

williamconley wrote:LOL. Put THAT on your testimonials page. I dare ya


Eh? I don't have such page!
DarknessBBB
 
Posts: 328
Joined: Mon Jul 16, 2007 10:14 am

Postby williamconley » Mon Apr 18, 2011 9:32 pm

Great first entry! Come on!
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 65 guests