• News
  • Idefisk
  • Tools
  • Tutorials
  • Forum
  • Reviews
  • VoIP Providers
  • Archives
  • Gallery
ZOIPER SIP softphone
Back to Tutorials

1.6. Installation on SuSE

1) Required Packages

You will need to have some packages installed before compile the Asterisk:

* subversion - if you want Up-to-day source code
* kernel-source - depend on your running kernel
* gcc
* make
* ncurses
* ncurses-devel
* openssl
* openssl-devel
* zlib
* zlib-devel

Maybe some of these packages you have already installed. To install the rest of them, use YaST:

#yast
how to use YaST

 


2) How to get the source of Asterisk

Needful packages are: libpri,zaptel and Asterisk

Latest Asterisk version is 1.2.2 (New from 18.01.2006)

The tarballs could be downloaded from the links below:

Asterisk-1.2.2
Zaptel-1.2.2
Libpri-1.2.2

Then decompress the archive with the following command:
# tar zxvf package_name-version.tar.gz


The sources could be obtained also from the SVN repository. Below are the steps you have to follow:

# mkdir /usr/src/asterisk
# cd /usr/src/asterisk - put all SVN packages in one place.


For the stable version 1.2 use the following commands:

# svn checkout http://svn.digium.com/svn/libpri/branches/1.2 libpri-1.2
# svn checkout http://svn.digium.com/svn/zaptel/branches/1.2 zaptel-1.2
# svn checkout http://svn.digium.com/svn/asterisk/branches/1.2 asterisk-1.2

For the latest SVN Head version use:

# svn checkout http://svn.digium.com/svn/libpri/trunk libpri
# svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel
# svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk


For more information please read our tutorial for basic installation information.

 


3) Compiling

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

# cd /usr/lib
# ls -l libexpat*

You must see something like this:

-rw-r--r-- 1 root root 160636 2005-09-09 18:58 libexpat.a
-rw-r--r-- 1 root root 706 2005-09-09 18:58 libexpat.la
lrwxrwxrwx 1 root root 17 2006-01-13 12:26 libexpat.so -> libexpat.so.0.5.0
lrwxrwxrwx 1 root root 17 2006-01-13 12:26 libexpat.so.0 -> libexpat.so.0.5.0
-rwxr-xr-x 1 root root 127428 2005-09-09 18:58 libexpat.so.0.5.0

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
idefisk_dsp_permissions_error.png
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


 



5) References

Asterisk configuration files

The Linux version of Idefisk
Tutorial about the Idefisk Softphone
The official Asterisk page

 

 
User Comments
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.

see: http://www.novell.com/products/linuxpackages/server10/i386/gcc-c++.html
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

rm -f *.o *.so *.lo *.so.1 *.so.1.0
rm -f testpri testprilib libpri.a libpri.so.1.0
rm -f pritest pridump
rm -f .depend
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.

http://www.vmware.com/vmtn/appliances/community.html
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
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53
  • Grandstream GXP-2020
    added 15/Oct/2007 18:17

Latest Comments:

  • It happened that a Dog <a href="http://w...
    section: voip hardware
  • It happened that a Dog <a href="http://w...
    section: voip hardware
  • thinks i installation <A href=\"http:...
    tutorial: Installation on CentOS
  • uh, why not just use the asterisk packag...
    tutorial: Installation on Debian
  • <br /> <p><a href="http://www.7be.com">...
    section: voip software
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™