<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
thank you Henning, I will replace the lines on the kamctl script and report back the results<br><br><div>
<div> </div></div><br><br><div>> From: henning.westerholt@1und1.de<br>> To: sr-users@lists.sip-router.org<br>> Subject: Re: [SR-Users] kamailio fails to start with kamctl start<br>> Date: Tue, 5 Jul 2011 18:19:10 +0200<br>> CC: fborot@hotmail.com<br>> <br>> On Monday 27 June 2011, Fabian Borot wrote:<br>> > I fixed the problem but I would like somebody to shed some light into this<br>> > issue.<br>> > <br>> > I noticed that when I run kamailio w/o telling where to load the<br>> > kamailio.cfg file is when it failed. So I went to the kamctl script and<br>> > notice that in the section where "kamctl start" happens the variable<br>> > $STARTOPTIONS was empty. I went to the etc/kamailio/kamctlrc, un-commented<br>> > the line with $STARTOPTIONS and made it like this:<br>> > <br>> > <br>> > STARTOPTIONS=" -f /usr/local/kamailio-3.1/etc/kamailio/kamailio.cfg" -><br>> > this points to the config file which is in a custom path<br>> > <br>> > So, it seems that when one installs kamailio in a directory other than the<br>> > default path with the prefix option ['make prefix="new path here" all' and<br>> > 'make prefix="new path here" install'] you have to explicitly tell it<br>> > somehow to load the config file from somewhere else. Or I did not do it<br>> > correctly. Can somebody please confirm?. I thought that the initialization<br>> > scripts would also take care of that. I have installed kamailio 1.4.3 <br>> > 1.5.0, 1.5.2 using the prefix option at 'make' time several times and<br>> > never had this issue.<br>> <br>> Hi Fabian,<br>> <br>> I've just tested it in master branch and could reproduce it. It seems the <br>> kamctl command misses a variable inclusion in the start cmd. Not sure why it <br>> worked in 1.5 and earlier, did not tried it.<br>> <br>> Can you please try the attached patch for the kamctl in your checkout? If you <br>> don't want to compile and install again, you could also do the changes in the <br>> installed version manually.<br>> <br>> Best regards,<br>> <br>> Henning<br></div>                                            </div></body>
</html>