diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index 7cacdb22896c53ee8803e468a93392e1dff44d85..e2ef0f20362d53f6e85922cf922987684a9058b6 100755
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -67,6 +67,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/causes.h"
 #include "asterisk/astdb.h"
 #include "asterisk/devicestate.h"
+#include "asterisk/monitor.h"
 
 static const char desc[] = "Agent Proxy Channel";
 static const char channeltype[] = "Agent";
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index fe48f841f346a2df72cef4f6c08af8da943b5aff..61a8a29d757df6916bd47730cae30b740a3a0919 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -112,7 +112,6 @@ extern "C" {
 #include "asterisk/config.h"
 #include "asterisk/lock.h"
 #include "asterisk/cdr.h"
-#include "asterisk/monitor.h"
 #include "asterisk/utils.h"
 #include "asterisk/linkedlists.h"
 
diff --git a/res/res_features.c b/res/res_features.c
index 5ac3cdac0974e5e5402aae0186c5dd83b3045314..92137a65f4c5515e909e348149d450b13f22f888 100755
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -55,6 +55,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/manager.h"
 #include "asterisk/utils.h"
 #include "asterisk/adsi.h"
+#include "asterisk/monitor.h"
 
 #ifdef __AST_DEBUG_MALLOC
 static void FREE(void *ptr)