Hi, I think there is a little error on this guide about 4.0 version install:
http://www.kamailio.org/wiki/install/4.0.x/git

First it is said this:

"8. Edit configuration file
To fit your requirements for the VoIP platform, you have to edit the configuration file.
 /usr/local/etc/kamailio/kamailio.cfg"

At the end it is said that only this line of  init.d script have to be changed:
DAEMON=/usr/local/sbin/kamailio

I would add this one too:
CFGFILE=/usr/local/etc/kamailio/kamailio.cfg

Another option would be to work directly with "/etc/kamailio/kamailio.cfg"

Anyway, I take this oportunity to thank you for your great job and to notice that this version 4.0 seems to work stil better with our QoffeSIP Javascript SIP stack. :)

-- 
Jesús Pérez
VoIP Engineer at Quobis

Fixed: +34 902 999 465
Site: http://www.quobis.com