EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ VoIP ]

"Installation of PTLIB, OPAL, and SimpleOPAL" - Metin KAYA - (2008-01-16 21:54:00)   [8896]

OPAL (Open Phone Abstraction Library) ve PTLIB (Portable Tools Libary) paketlerini rpm, yum, apt-get veya deb gibi araclarla rahatlikla kurabilirsiniz. Ancak bir VoIP yazilimi gelistirecekseniz OPAL ve PWLIB 'i bahsi gecen yontemlerle kurmak yazilimci acisindan cok fazla esneklik saglamaz. Bu nedenle bu paketleri kaynak kodundan kurmak gerekecektir. Asagidaki adimlar normalde cok mesakkatli olan bu isi kolaylastiracaktir:
OPAL (Open Phone Abstraction Library) and PTLIB (Portable Tools Libary) packages can be installed via rpm, yum, apt-get or deb easily. On the other hand, if you are develoing a VoIP software these methods do not provide flexibility for software developer. Thus OPAL and PTLIB should be installed by using their source code. The steps shown below will make this installation simple:

1- Uninstall OPAL and PTLIB if they were installed.

2- Download "compatible" OPAL and PTLIB from sourceforge.net. "compatible" means OPAL and PTLB must be in the same group in sourceforge.net.

3- Firstly, install PTLIB:

[metin@enderunix ~]# ./configure && make && make install
[metin@enderunix ~]# export OPALDIR=/home/mk/opal_3.1.2/ (OPALDIR shows the place of OPAL source code)
[metin@enderunix ~]# cp -a /usr/local/lib/libpt* /home/mk/opal_v3_0_1/lib/ (copy the libraries which created after installation of PTLIB to the OPAL 's "/lib" directory)

4- Then install OPAL:

[metin@enderunix ~]# ./configure && make && make install
[metin@enderunix ~]# export LD_LIBRARY_PATH=/home/mk/opal_3.1.2/lib/:$LD_LIBRARY_PATH

Now SimpleOPAL can be installed via these commands:

[metin@enderunix ~]# cd /home/mk/opal_3.1.2/samples/simple/
[metin@enderunix ~]# make && make opt

To run SimpleOPAL go to the "/home/mk/opal_3.1.2/samples/simple/obj_linux_x86_r/" directory and use "simpleopal" binary.

Mail to My Friend , Home Page