diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 27d6dc68b6..85fc978a6f 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -1306,7 +1306,7 @@ SWITCH_DECLARE(bool) email(char *to, char *from, char *headers, char *body, char return false; } -SWITCH_DECLARE(void) msleep(unsigned ms) +SWITCH_DECLARE(void) switch_msleep(unsigned ms) { switch_sleep(ms * 1000); return; diff --git a/swig_common.i b/swig_common.i index 617b97551a..d64642027a 100644 --- a/swig_common.i +++ b/swig_common.i @@ -1,2 +1,7 @@ %typemap(newfree) char * "free($1);"; %newobject getGlobalVariable; +%rename(msleep) switch_msleep; + + + +