diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 77e676c26e..cea216a7e4 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -648,7 +648,7 @@ SWITCH_DECLARE(int) switch_number_cmp(const char *exp, int val); \return 1 if successfull \note Extended formats protocol:user@domain:port (Example: sip:toto@example.org) */ -int switch_split_user_domain(char *in, char **user, char **domain); +SWITCH_DECLARE(int) switch_split_user_domain(char *in, char **user, char **domain); /* malloc or DIE macros */ #ifdef NDEBUG diff --git a/src/switch_utils.c b/src/switch_utils.c index fa30b714a7..123d8aa162 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -2349,7 +2349,7 @@ SWITCH_DECLARE(int) switch_number_cmp(const char *exp, int val) } -int switch_split_user_domain(char *in, char **user, char **domain) +SWITCH_DECLARE(int) switch_split_user_domain(char *in, char **user, char **domain) { char *p = NULL, *h = NULL, *u = in;