In order to get Asterisk working you have to compile these three packages - libpri, zaptel and asterisk.
Important! - the order has to be: libpri, zaptel, asterisk.
We suppose that the source codes are in the /usr/src/asterisk directory.
So first compile libpri. Follow the commands below:
# cd /usr/src/asterisk/libpri
# make clean
# make
# make install
Then it is time for the zaptel package.
# cd /usr/src/asterisk/zaptel
# make clean
# make linux26 - if you using kernel version 2.6. otherwise run only make
# make install
And Finally it is time for the Asterisk package.
# cd /usr/src/asterisk/asterisk
# make clean - It's a good idea to run '# make clean' before recompiling. You can also use it to clean up after installing.
for compatibility with VIA motherboards/processors edit the Makefile and uncomment line #PROC=i586
# make mpg123 - it is needed in order to be able to play mp3 files for music on hold (if you want)
* install only the package that come with Asterisk (ver. 0.59r)
# make
# make install
# make samples - this will put the configuration files in the /etc/asterisk/ directory. If there is already such files they will be overwritten and the old ones will be put in a backup directory. If you prefer your own files, edit the Makefile - change OVERWRITE=y to OVERWRITE=n or just not execute this make :-)
4) Idefisk
Idefisk is a graphic application. You need a working X server with some window manager installed. For example Gnome or KDE.
Idefisk depends on the GTK (GTK 2.6 or later) and expat libraries. So you have to install them by using YaST:
# yast -i gtk2 expat
1. Download and Install
In order to get the Idefisk version that you prefer, please follow this link.
For the installation use a directory, where you have the rights to write!.
Create a subdirectory inside. For example we will use the home directory of a regular Linux user.
$ cd ~
$ mkdir idefisk - put the Idefisk arhive inside
$ tar zxvf idefisk.tar.gz
$ sudo cp libiaxclient.so /usr/lib
or
$ su < type your root password >
# cp libiaxclient.so /usr/lib - you may copy libiaxclient.so in /usr/local/lib if you prefer
# ldconfig
# exit
$ ./idefisk
2. Possible errors and solutions
1) If you get an error like:
"libexpat.so.1: No such file or directory"
First search for the libexpat in the /usr/lib directory
If you don't have libexpat.so.<some version> try to install "again" the expat.
Next, create symlink named libexpat.so.1 which to point to libexpat.so.0.5.0 (version numbers may be different). To do this use:
# cd /usr/lib
# ln -s libexpat.so.0.5.0 libexpat.so.1
2) Audio devices error
To check permissions use ls -l <device name>, /dev/dsp or /dev/mixer
To set permissions of you sound devices use:
# chmod 660 /dev/dsp
or
# chmod 666 /dev/dsp for mixer device replace /dev/dsp with /dev/mixer
EllElulky (ellColi at daff dot pw) 13 September 2019 10:05:07 Use Propecia Once A Day <a href=http://realviaonline.com>canadian pharmacy cialis 20mg</a> Difference Entre Viagra Et Levitra
lesouvage (info at tripple-o dot nl) 03 May 2008 00:11:24 You need the gcc-c++ package too with Suze Enterprise to have the sources build properly.
Juan Ramon (jramon1324 at hotmail dot com) 27 January 2008 05:18:19 It's mmore interty this web
Rashtradeep Pachauri (deep_rashtra at yahoo dot com) 30 November 2007 07:53:01 I have problem when i run make samples commond this error will arives.
:/usr/src/asterisk/asterisk-1.4.14 # make samples
mkdir -p /asterisk
for x in configs/*.adsi; do
if [ ! -f /asterisk/$x ]; then
-m 644 $x /asterisk/` $x` ;
fi ;
done
/bin/sh: configs/asterisk.adsi: Permission denied
/bin/sh: -m: command not found
/bin/sh: configs/telcordia-1.adsi: Permission denied
/bin/sh: -m: command not found
make: *** [adsi] Error 127
Rashtradeep Pachauri (deep_rashtra at yahoo dot com) 30 November 2007 07:19:15 I have problem when i run make samples commond this error will arives.
:/usr/src/asterisk/asterisk-1.4.14 # make samples
mkdir -p /asterisk
for x in configs/*.adsi; do
if [ ! -f /asterisk/$x ]; then
-m 644 $x /asterisk/` $x` ;
fi ;
done
/bin/sh: configs/asterisk.adsi: Permission denied
/bin/sh: -m: command not found
/bin/sh: configs/telcordia-1.adsi: Permission denied
/bin/sh: -m: command not found
make: *** [adsi] Error 127
Rashtradeep Pachauri (deep_rashtra at yahoo dot com) 30 November 2007 07:17:14 :/usr/src/asterisk/asterisk-1.4.14 # make samples
mkdir -p /asterisk
for x in configs/*.adsi; do
if [ ! -f /asterisk/$x ]; then
-m 644 $x /asterisk/` $x` ;
fi ;
done
/bin/sh: configs/asterisk.adsi: Permission denied
/bin/sh: -m: command not found
/bin/sh: configs/telcordia-1.adsi: Permission denied
/bin/sh: -m: command not found
make: *** [adsi] Error 127
brandon (BrandonRush at verizonmail dot com) 11 January 2007 04:48:48 not sure if this works, I am running asterisk on linux, but :
http://www.asteriskwin32.com/
Enrique Leon (enrique dot leon dot acedo at gmail dot com) 05 December 2006 20:31:52 Is anyone aware of problems installing *?. I have tried several times to install it following this tutorial, using svn and the tarballs but what I get is the following: ....
[pbx_ael.so] => (Aste risk Extension Language Compiler)
Dec 5 15:08:56 WARNING[22160]: pbx_ael.c:1172 ast_ael_compile: Unable to open '/etc/asterisk/extensions.ael': No such file or directory
Dec 5 15:08:56 WARNING[22160]: pbx.c:3761 ast_merge_contexts_and_delete: Requested contexts didn't get merged
[pbx_spool.so] => (Outgoing Spool Support)
[pbx_loopback.so] => (Loopback Switch)
[pbx_config.so] => (Text Extension Configuration)
Dec 5 15:08:56 WARNING[22160]: pbx.c:3761 ast_merge_contexts_and_delete: Requested contexts didn't get merged
[pbx_realtime.so] => (Realtime Switch)
[chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
Dec 5 15:08:56 NOTICE[22160]: chan_mgcp.c:4094 reload_config: Unable to load config mgcp.conf, MGCP disabled
== Registered channel type 'MGCP' (Media Gateway Control Protocol (MGCP))
[chan_zap.so] => (Zapata Telephony w/PRI)
Dec 5 15:08:56 ERROR[22160]: chan_zap.c:10147 setup_zap: Unable to load config zapata.conf
Dec 5 15:08:56 WARNING[22160]: loader.c:414 __load_resource: chan_zap.so: load_module failed, returning -1
Dec 5 15:08:56 WARNING[22160]: loader.c:554 load_modules: Loading module chan_zap.so failed!................................. Afer those messages, Linux returns to the prompt without been able to run asterisk................I have successsfully installed asterisk before though, but this time something is wrong ..................any ideas anyone?
torrezm (torrezm at gmail dot com) 20 November 2006 15:18:31 Suse 10.1 Asterisk 1.4.0 beta3
" The configure Script must be executed before running "make"
Andreas Kaiser (aka at nurfuerspam dot de) 06 September 2006 23:32:50 Thanks for this excellent installation tutorial.
Dieno (sohail_y at msn dot com) 22 August 2006 02:45:24 hey
can n e plz wat this is stands for i am newbie on linux
i am also recieving this type of eror in redhat also plz help
Javor (support at asteriskguru dot com) 09 August 2006 10:40:56 TonyPhan: If you did "make samples" when compiling asterisk, the .conf files must be in /etc/asterisk. It's a good idea to run this make when there is no previously asterisk installations.
TonyPhan (pminht2000 at yahoo dot com) 09 August 2006 03:45:18 i installed Asterisk-1.2.2, Zaptel-1.2.2, Libpri-1.2.2 but do not run it and edit file *.conf. Where is it?
Juan Carlos Arango (jcarango98 at gamil dot com) 04 August 2006 17:51:56 Thanks, is a good site.
I would more information on graphic asterisk administration.
Juan K.
patrick M (bj dot blackowitz at gmx dot net) 20 July 2006 18:27:54 Compiling on suse10.0 with kernel26 of zaptel fails
Sunil (sunil_pradhan2003 at yahoo dot co dot in) 19 July 2006 17:15:38 Is it necessary to install libpri & zaptel? I only want to make a call from SJphone to asterisk (I don't need the fixed phone functionalities).
marcel bos (m8114 at ing-steen dot se) 18 July 2006 06:06:05
I need the IDEFISK to use the line in port instead of the microphone port can that be fixed?
Arun (arunkumar dot bhi at gmail dot com) 25 June 2006 07:04:45 Hi,
As per your document there is no device in suse /dev/dsp or /dev/mixer, so to get over this error you have to restart your alsasound.
thanks
../Arun
Love (love at indo dot net dot id) 23 June 2006 06:28:05 Where i can download tutorial for install asterisk in Fedora Core OS..?
TiA
ilia (admin at etherealtalk dot com) 19 April 2006 19:29:48 Idefisk is for pussies, real men do everything by good old CLI :)
Eric (kappa_101 at hotmail dot com) 23 March 2006 07:22:18 Excellent Instructions.. Very Simple .. Step by Step.. Great work .. Greatly Appreciated.
Asterisk is the future of VOIP.
Marvin (mbartchlett at fiortechnologies dot com) 15 March 2006 04:04:54 You could try using the VMPlayer from VMWARE. It's a free player for pre-packaged Virtual Machines that will let you run Linux instances under Windoze. There a couple "Astrisk Based" virtual machines on their site.
Lacho (support at asteriskguru dot com) 07 March 2006 12:14:48 Hi devang patel,
Please, in future time, ask your questions on our forum. As for the Asterisk and Windows there is a way, but considering that you are new to Linux you may find it difficult. However, you could find info following this link
http://www.digium.com/index.php?menu=astwind
If you would like to try the Linux version of Asterisk, you will need basic knowledges on linux. The most common commands - how to execute commands, how to edit text files, how to download and install additional packages. Of course you need to know how to install your Linux distribution.
If you know these things, then just follow our tutorial and soon you will have your own working Asteris
Regards
Lacho
devang patel (devangetcom at gmail dot com) 06 March 2006 14:41:36 hello,
I am new to linux as well as asterisk...is there any version available for asterisk for window family...if yes then give me link form where i can download it and if no then please tell me howmuch knowladge of linux require to run asterisk for the VOIP please help me ....
regards
Devang