I just pushed a patch to allow vars in sleep() and usleep() -- try with latest master branch and if there are problems, open an issue on tracker.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/259#issuecomment-123289153