Found the reason for the cleaning loop. It was caused by local renaming of kamcmd command. I need to do the rename, since I can have several kamailios running on the same host and each needs its own kamcmd command. It would be nice if $(MAIN_NAME) would also have effect on the name of kamcmd command. -- Juha