json: Add conditionals to avoid locking if Jansson is thread safe.
[asterisk/asterisk.git] / main / privacy.c
index e52327f..c0cc31a 100644 (file)
  *
  * \brief Privacy Routines
  *
- * \author Mark Spencer <markster@digium.com> 
+ * \author Mark Spencer <markster@digium.com>
  */
 
-#include "asterisk.h"
+/*** MODULEINFO
+       <support_level>core</support_level>
+ ***/
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk.h"
 
 #include <sys/time.h>
 #include <signal.h>
-#include <errno.h>
 #include <dirent.h>
 
 #include "asterisk/channel.h"
 #include "asterisk/file.h"
 #include "asterisk/app.h"
 #include "asterisk/dsp.h"
-#include "asterisk/logger.h"
-#include "asterisk/options.h"
 #include "asterisk/astdb.h"
 #include "asterisk/callerid.h"
 #include "asterisk/privacy.h"
@@ -99,7 +98,7 @@ int ast_privacy_set(char *dest, char *cid, int status)
                return 0;
        }
        snprintf(key, sizeof(key), "%s/%s", dest, trimcid);
-       if (status == AST_PRIVACY_UNKNOWN) 
+       if (status == AST_PRIVACY_UNKNOWN)
                res = ast_db_del("privacy", key);
        else if (status == AST_PRIVACY_ALLOW)
                res = ast_db_put("privacy", key, "allow");