Welcome! Log In Create A New Profile

Advanced

YATE

Posted by Annanon 
Annanon
YATE
April 11, 2011 01:01AM
Did anyone get YATE working on dockstar? How would you compare it to Asterisk?
Kerberos
Re: YATE
April 26, 2011 12:29AM
Maybe I can help you. I tryed to intall Yate, but I wasnt really happy with it. I have no experience with Asterisk too, so im not the best one to juge about it. I prefered to install it together with FreeSentral, Lighttpd and PostgreSQL. The install script for FreeSentral is made for Apache and MySQL, maybe it could you save some trouble if you choose these.

If you want to install it, here are my notes:

Lighttpd and stuff...
apt-get install lighttpd php5 php5-pgsql php5-cli php5-cgi

cp /etc/php5/cgi/php.ini /etc/php5/cgi/php.ini.orig
echo 'cgi.fix_pathinfo = 1' >> /etc/php5/cgi/php.ini

cd /etc/lighttpd
openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes 

lighttpd-enable-mod fastcgi
lighttpd-enable-mod fastcgi-php
lighttpd-enable-mod ssl


nano /etc/lighttpd/lighttpd.conf


$SERVER["socket"] == ":80" {
  $HTTP["host"] =~ "192.168.1.100" {
    url.redirect = ( "^/(.*)" => "https://192.168.1.100/$1"; )
    server.name                 = "192.168.1.100"
  }
}

echo '<?PHP phpinfo (); ?>' > /var/www/index.php
/etc/init.d/lighttpd restart

PostgreSQL
apt-get install postgresql postgresql-client
su postgres
psql
\password postgres
\q
exit

Yate3
apt-get install subversion sox autoconf checkinstall
mkdir /root/src && mkdir /root/src/yate
cd /root/src/yate
svn checkout http://voip.null.ro/svn/yate/trunk yate
cd /root/src/yate/yate

you need to complie the nasty thing:

apt-get install pkg-config libssl-dev libasound2-dev libpq-dev libh323plus-dev libspandsp-dev libspeex-dev libgsm1-dev libamrnb-dev libamrnb3 doxygen

my next step:

./autogen.sh
./configure
...
...
checking for gethostbyname_r... yes
checking for pthread_kill_other_threads_np declaration... no
checking whether to use inline functions... auto
checking for resolver library... yes -lresolv
checking whether to use the internal regexp library... no
checking for regcomp... yes
checking for Postgress SQL in /usr... yes
checking for MySQL using mysql_config... no 
checking for Dahdi generic headers... no
checking for Zaptel generic headers... no
checking for Zaptel linux headers... no
checking for Wanpipe generic headers... no
checking for Wanpipe linux headers... no
checking for sound card headers... yes
checking for ALSA headers... yes
checking for gsm.h in /usr/include... yes
checking for iLBC in libs... yes
checking for speex.h in /usr/include/speex... yes
checking for AMR-NB in /usr... yes
checking for usable spandsp in /usr/include... yes
checking for Pwlib in /usr... installed 2.4.5 RTTI: none
checking for OpenH323 in /usr... installed 1.21.0
checking for OpenSSL using pkg-config... 0.9.8o
checking for zlib in /usr... yes
checking for Qt4 >= 4.3.0 using pkg-config... no
checking for Qt4 >= 4.3.0 using qmake... no
checking for coredumper.h in /usr/local... no
checking whether to enable RTTI support... none
checking for doxygen version... 1.7.1
checking for kdoc version... no
configure: creating ./config.status
...
...
make clean && make
checkinstall --pkgname=yate-local --pkgversion "3.0.1+svn`date +%Y%m%d`" --backup=no --default

now you have to fix a shared lib problem

echo '/usr/local/lib' > /etc/ld.so.conf.d/yate.conf
ldconfig

You should now be able to start yate with yate for debugging or with yate -d permanent.

FreeSentral:

mkdir /root/src/freesentral
cd /root/src/freesentral
svn checkout http://voip.null.ro/svn/freesentral/trunk freesentral
cd /root/src/freesentral/freesentral
./install.sh

if asked set apache to www-data (because of the lighttpd)

There are more Freesentral setup intructions on the offical webside. Would be great, if you can make some usefull out of this. I cant say that this all will work flawlessly, but it shows you the right direction.
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: