I guess it is correlated to other parts of the configuration file you use, because it works fine for me with a config based on kamailio-basic.cfg.
Can you send a stripped down (or full) version of kamailio.cfg that can be used to reproduce the issue?