Hello,
I compiled and installed Kamailio 4.0.3 like usual on a new test machine, but changed the CFGFILE variable in /etc/init.d/kamailio to /usr/local/etc/kamailio/kamailio.cfg. Kamailio started normally.
When I reset CFGFILE to CFGFILE=/etc/kamailio/kamailio.cfg and start Kamailio again, I'm getting an error saying it can't find the file at /usr/local/etc/kamailio/kamailio.cfg. I renamed the config file at /usr/local/etc/kamailio/ to make sure it's not using that one, but it still is.
Why is the change not being accepted?
Regards,
Grant
Hello,
what operating system are you using? How do you start/stop kamailio?
Also, provide the logs here with the errors.
Cheers, Daniel
On 9/19/13 9:24 AM, Grant Bagdasarian wrote:
Hello,
I compiled and installed Kamailio 4.0.3 like usual on a new test machine, but changed the CFGFILE variable in /etc/init.d/kamailio to /usr/local/etc/kamailio/kamailio.cfg. Kamailio started normally.
When I reset CFGFILE to CFGFILE=/etc/kamailio/kamailio.cfg and start Kamailio again, I'm getting an error saying it can't find the file at /usr/local/etc/kamailio/kamailio.cfg.
I renamed the config file at /usr/local/etc/kamailio/ to make sure it's not using that one, but it still is.
Why is the change not being accepted?
Regards,
Grant
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
Using Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-29-generic x86_64)
root@host01:~# service kamailio start Not starting Kamailio: invalid configuration file! -e ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory root@host01:~# root@host01:~# /etc/init.d/kamailio start Not starting Kamailio: invalid configuration file! -e ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory root@host01:~#
output of /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 CFGFILE=/etc/kamailio/kamailio.cfg RUN_KAMAILIO=yes
Regards,
Grant
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Thursday, September 19, 2013 10:24 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Modifying path to kamailio.cfg
Hello,
what operating system are you using? How do you start/stop kamailio?
Also, provide the logs here with the errors.
Cheers, Daniel On 9/19/13 9:24 AM, Grant Bagdasarian wrote: Hello,
I compiled and installed Kamailio 4.0.3 like usual on a new test machine, but changed the CFGFILE variable in /etc/init.d/kamailio to /usr/local/etc/kamailio/kamailio.cfg. Kamailio started normally.
When I reset CFGFILE to CFGFILE=/etc/kamailio/kamailio.cfg and start Kamailio again, I'm getting an error saying it can't find the file at /usr/local/etc/kamailio/kamailio.cfg. I renamed the config file at /usr/local/etc/kamailio/ to make sure it's not using that one, but it still is.
Why is the change not being accepted?
Regards,
Grant
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013
- more details about Kamailio trainings at http://www.asipto.com -
Hello,
the init.d script is doing a check for errors in kamailio.cfg with 'kamailio -c', but the config file is not passed there as parameter -f.
You have to look for:
check_kamailio_config () { # Check if kamailio configuration is valid before starting the server. set +e out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
and change last line to:
out=$($DAEMON -M $PKG_MEMORY -f $CFGFILE -c 2>&1 > /dev/null)
Cheers, Daniel
On 9/19/13 10:42 AM, Grant Bagdasarian wrote:
Hello,
Using Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-29-generic x86_64)
root@host01:~# service kamailio start
Not starting Kamailio: invalid configuration file!
-e
ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory
root@host01:~#
root@host01:~# /etc/init.d/kamailio start
Not starting Kamailio: invalid configuration file!
-e
ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory
root@host01:~#
output of /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
CFGFILE=/etc/kamailio/kamailio.cfg
RUN_KAMAILIO=yes
Regards,
Grant
*From:*sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of *Daniel-Constantin Mierla *Sent:* Thursday, September 19, 2013 10:24 AM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] Modifying path to kamailio.cfg
Hello,
what operating system are you using? How do you start/stop kamailio?
Also, provide the logs here with the errors.
Cheers, Daniel
On 9/19/13 9:24 AM, Grant Bagdasarian wrote:
Hello, I compiled and installed Kamailio 4.0.3 like usual on a new test machine, but changed the CFGFILE variable in /etc/init.d/kamailio to /usr/local/etc/kamailio/kamailio.cfg. Kamailio started normally. When I reset CFGFILE to CFGFILE=/etc/kamailio/kamailio.cfg and start Kamailio again, I'm getting an error saying it can't find the file at /usr/local/etc/kamailio/kamailio.cfg. I renamed the config file at /usr/local/etc/kamailio/ to make sure it's not using that one, but it still is. Why is the change not being accepted? Regards, Grant _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -http://www.asipto.com http://twitter.com/#!/miconda http://twitter.com/#%21/miconda -http://www.linkedin.com/in/miconda Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013
- more details about Kamailio trainings athttp://www.asipto.com -
Hello,
Yes, that worked. Thanks!
Will this be pushed into the next (minor) release of Kamailio?
Regards,
Grant
From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Sent: Thursday, September 19, 2013 11:57 AM To: Grant Bagdasarian; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Modifying path to kamailio.cfg
Hello,
the init.d script is doing a check for errors in kamailio.cfg with 'kamailio -c', but the config file is not passed there as parameter -f.
You have to look for:
check_kamailio_config () { # Check if kamailio configuration is valid before starting the server. set +e out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
and change last line to:
out=$($DAEMON -M $PKG_MEMORY -f $CFGFILE -c 2>&1 > /dev/null)
Cheers, Daniel On 9/19/13 10:42 AM, Grant Bagdasarian wrote: Hello,
Using Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-29-generic x86_64)
root@host01:~# service kamailio start Not starting Kamailio: invalid configuration file! -e ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory root@host01:~# root@host01:~# /etc/init.d/kamailio start Not starting Kamailio: invalid configuration file! -e ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory root@host01:~#
output of /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 CFGFILE=/etc/kamailio/kamailio.cfg RUN_KAMAILIO=yes
Regards,
Grant
From: sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Thursday, September 19, 2013 10:24 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Modifying path to kamailio.cfg
Hello,
what operating system are you using? How do you start/stop kamailio?
Also, provide the logs here with the errors.
Cheers, Daniel On 9/19/13 9:24 AM, Grant Bagdasarian wrote: Hello,
I compiled and installed Kamailio 4.0.3 like usual on a new test machine, but changed the CFGFILE variable in /etc/init.d/kamailio to /usr/local/etc/kamailio/kamailio.cfg. Kamailio started normally.
When I reset CFGFILE to CFGFILE=/etc/kamailio/kamailio.cfg and start Kamailio again, I'm getting an error saying it can't find the file at /usr/local/etc/kamailio/kamailio.cfg. I renamed the config file at /usr/local/etc/kamailio/ to make sure it's not using that one, but it still is.
Why is the change not being accepted?
Regards,
Grant
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/micondahttp://twitter.com/#%21/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013
- more details about Kamailio trainings at http://www.asipto.com -
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013
- more details about Kamailio trainings at http://www.asipto.com -
Hello,
On 9/19/13 12:11 PM, Grant Bagdasarian wrote:
Hello,
Yes, that worked. Thanks!
Will this be pushed into the next (minor) release of Kamailio?
yes, next 4.0.x will have it - I commit a patch for it to development and 4.0 branches.
Cheers, Daniel
Regards,
Grant
*From:*Daniel-Constantin Mierla [mailto:miconda@gmail.com] *Sent:* Thursday, September 19, 2013 11:57 AM *To:* Grant Bagdasarian; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] Modifying path to kamailio.cfg
Hello,
the init.d script is doing a check for errors in kamailio.cfg with 'kamailio -c', but the config file is not passed there as parameter -f.
You have to look for:
check_kamailio_config () { # Check if kamailio configuration is valid before starting the server. set +e out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
and change last line to:
out=$($DAEMON -M $PKG_MEMORY -f $CFGFILE -c 2>&1 > /dev/null)
Cheers, Daniel
On 9/19/13 10:42 AM, Grant Bagdasarian wrote:
Hello, Using Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-29-generic x86_64) root@host01:~# service kamailio start Not starting Kamailio: invalid configuration file! -e ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory root@host01:~# root@host01:~# /etc/init.d/kamailio start Not starting Kamailio: invalid configuration file! -e ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No such file or directory root@host01:~# output of /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 CFGFILE=/etc/kamailio/kamailio.cfg RUN_KAMAILIO=yes Regards, Grant *From:*sr-users-bounces@lists.sip-router.org <mailto:sr-users-bounces@lists.sip-router.org> [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of *Daniel-Constantin Mierla *Sent:* Thursday, September 19, 2013 10:24 AM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] Modifying path to kamailio.cfg Hello, what operating system are you using? How do you start/stop kamailio? Also, provide the logs here with the errors. Cheers, Daniel On 9/19/13 9:24 AM, Grant Bagdasarian wrote: Hello, I compiled and installed Kamailio 4.0.3 like usual on a new test machine, but changed the CFGFILE variable in /etc/init.d/kamailio to /usr/local/etc/kamailio/kamailio.cfg. Kamailio started normally. When I reset CFGFILE to CFGFILE=/etc/kamailio/kamailio.cfg and start Kamailio again, I'm getting an error saying it can't find the file at /usr/local/etc/kamailio/kamailio.cfg. I renamed the config file at /usr/local/etc/kamailio/ to make sure it's not using that one, but it still is. Why is the change not being accepted? Regards, Grant _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -http://www.asipto.com http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -http://www.linkedin.com/in/miconda Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013 - more details about Kamailio trainings athttp://www.asipto.com -
-- Daniel-Constantin Mierla -http://www.asipto.com http://twitter.com/#!/miconda http://twitter.com/#%21/miconda -http://www.linkedin.com/in/miconda Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013
- more details about Kamailio trainings athttp://www.asipto.com -