Hi, All
Yesterday I install Kamailio(3.1.x) by myself under a new Ubuntu server
10.04 environment.
I got it from
http://www.kamailio.org/pub/kamailio/3.1.2/bin/
kamailio-3.1.2_linux_i386.tar.gz
<http://www.kamailio.org/pub/kamailio/3.1.2/bin/kamailio-3.1.2_linux_i38
6.tar.gz>
I put all stuff under corresponding directory:
/usr/local/sbin with bin file
/usr/local/etc/kamailio with .cfg file
/usr/local/lib/kamailio with lib file
Based on
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-gi
t
I create /etc/init.d/kamailio
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/sbin/kamailio
NAME=kamailio
DESC=kamailio
HOMEDIR=/var/run/kamailio
PIDFILE=$HOMEDIR/$NAME.pid
DEFAULTS=/etc/default/kamailio
RUN_KAMAILIO=no
Also I create /etc/default/ kamailio
I find a problem after when I run /etc/init.d/kamailio start, it says:
root@aastra:/etc/init.d# /etc/init.d/kamailio start
Not starting kamailio: invalid configuration file!
-e
/etc/init.d/kamailio: 168: /usr/local/sbin/kamailio: not found
But the file is there:
root@aastra:/etc/init.d# ls -l /usr/local/sbin/kamailio
-rwxr-xr-x 1 root root 4103257 2010-07-01 12:16 /usr/local/sbin/kamailio
root@aastra:/etc/init.d# /usr/local/sbin/kamailio
bash: /usr/local/sbin/kamailio: No such file or directory
I wonder if this /usr/local/sbin/kamailio is not for Ubuntu server 10.04
and cannot be run
Thanks for help
Derrick