Remove status_response callbacks where they are not needed.
[asterisk/asterisk.git] / main / adsistub.c
index d92e542..8f29082 100644 (file)
  * at the top of the source tree.
  */
 
-#include <unistd.h>
-#include <stdlib.h>
-
 #include "asterisk.h"
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include "asterisk/options.h"
 #include "asterisk/channel.h"
 #include "asterisk/adsi.h"
-#include "asterisk/logger.h"
 
 #ifdef SKREP
 #define build_stub(func_name,...) \
@@ -43,8 +38,7 @@ int (*func_name)(__VA_ARGS__) = \
 #define build_stub(func_name,...) \
 static int stub_##func_name(__VA_ARGS__) \
 { \
-       if (option_debug > 4) \
-               ast_log(LOG_DEBUG, "ADSI support not loaded!\n"); \
+       ast_debug(5, "ADSI support not loaded!\n"); \
         return -1; \
 } \
 \