Hi, All

 

L. No one answer me.

I find there are several links that show installation or store directory of Kamailio. But this link works:

 

http://www.kamailio.org/dokuwiki/doku.php/packages:debs

 

However it’s not complete.

The last step is: #apt-get install kamailio

 

Now I have another question. I need support stun

When I set stun_allow_stun=1

It says: stun feature is not compile in. Does that mean I need compile src to get this function work?

 

Your help is appreciated.

 

Derrick

 


From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Derrick Ding
Sent: Tuesday, March 15, 2011 12:01 PM
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] Installation Problem: : /usr/local/sbin/kamailio:notfound

 

Hi, All

 

Moreover, I tried all bin files under /usr/local/kamailio

 

Kamctl and kamdbctl could be run

Kamailio and sercmd could not be run; it always says: No such file or directory

 

Is there any one can help me?

 

Thanks for reply

 

Derrick

 

 


From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Derrick Ding
Sent: Tuesday, March 15, 2011 11:46 AM
To: sr-users@lists.sip-router.org
Subject: [SR-Users] Installation Problem: : /usr/local/sbin/kamailio: notfound

 

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

 

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-git

 

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