diff --git a/main/asterisk.c b/main/asterisk.c
index c9e3b59a5bdb21006c8675bf2d2a080212ca46aa..aaabf583f82f271cb2721bfe6d3d94864317963d 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -591,11 +591,6 @@ void ast_unregister_thread(void *id)
 	}
 }
 
-int ast_pbx_uuid_get(char *pbx_uuid, int length)
-{
-	return ast_db_get("pbx", "UUID", pbx_uuid, length);
-}
-
 /*! \brief Give an overview of core settings */
 static char *handle_show_settings(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
@@ -1040,6 +1035,11 @@ static char *handle_clear_profile(struct ast_cli_entry *e, int cmd, struct ast_c
 
 #endif /* ! LOW_MEMORY */
 
+int ast_pbx_uuid_get(char *pbx_uuid, int length)
+{
+	return ast_db_get("pbx", "UUID", pbx_uuid, length);
+}
+
 static void publish_fully_booted(void)
 {
 	RAII_VAR(struct ast_json *, json_object, NULL, ast_json_unref);