summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-07 18:28:29 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-07 18:28:29 +0000
commit739385e761c11cc18503efbe2f131e56e482de28 (patch)
tree905b93e1ae5249362759c3d99da1a0bbcc95e9cc /apps/app_voicemail.c
parent66dca5e37859a4517200bbe82d1e67ff5c6b300e (diff)
remove the WITH_SMDI define
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index f472e3030..cb5d6d7d8 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -75,10 +75,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/stringfields.h"
-#ifdef WITH_SMDI
#include "asterisk/smdi.h"
#define SMDI_MWI_WAIT_TIMEOUT 1000 /* 1 second */
-#endif
#ifdef USE_ODBC_STORAGE
#include "asterisk/res_odbc.h"
#endif
@@ -408,9 +406,7 @@ static int silencethreshold = 128;
static char serveremail[80];
static char mailcmd[160]; /* Configurable mail cmd */
static char externnotify[160];
-#ifdef WITH_SMDI
static struct ast_smdi_interface *smdi_iface = NULL;
-#endif
static char vmfmts[80];
static int vmminmessage;
static int vmmaxmessage;
@@ -2348,16 +2344,13 @@ static void run_externnotify(char *context, char *extension)
char arguments[255];
char ext_context[256] = "";
int newvoicemails = 0, oldvoicemails = 0;
-#ifdef WITH_SMDI
struct ast_smdi_mwi_message *mwi_msg;
-#endif
if (!ast_strlen_zero(context))
snprintf(ext_context, sizeof(ext_context), "%s@%s", extension, context);
else
ast_copy_string(ext_context, extension, sizeof(ext_context));
-#ifdef WITH_SMDI
if (!strcasecmp(externnotify, "smdi")) {
if (ast_app_has_voicemail(ext_context, NULL))
ast_smdi_mwi_set(smdi_iface, extension);
@@ -2376,9 +2369,6 @@ static void run_externnotify(char *context, char *extension)
ast_log(LOG_DEBUG, "Successfully executed SMDI MWI change for %s on %s\n", extension, smdi_iface->name);
}
} else if (!ast_strlen_zero(externnotify)) {
-#else
- if (!ast_strlen_zero(externnotify)) {
-#endif
if (inboxcount(ext_context, &newvoicemails, &oldvoicemails)) {
ast_log(LOG_ERROR, "Problem in calculating number of voicemail messages available for extension %s\n", extension);
} else {
@@ -6136,9 +6126,7 @@ static int load_config(void)
char *cat;
struct ast_variable *var;
char *notifystr = NULL;
-#ifdef WITH_SMDI
char *smdistr = NULL;
-#endif
char *astattach;
char *astsearch;
char *astsaycid;
@@ -6245,7 +6233,6 @@ static int load_config(void)
if ((notifystr = ast_variable_retrieve(cfg, "general", "externnotify"))) {
ast_copy_string(externnotify, notifystr, sizeof(externnotify));
ast_log(LOG_DEBUG, "found externnotify: %s\n", externnotify);
-#ifdef WITH_SMDI
if (!strcasecmp(externnotify, "smdi")) {
ast_log(LOG_DEBUG, "Using SMDI for external voicemail notification\n");
if ((smdistr = ast_variable_retrieve(cfg, "general", "smdiport"))) {
@@ -6262,7 +6249,6 @@ static int load_config(void)
ast_log(LOG_DEBUG, "Using SMDI port %s\n", smdi_iface->name);
}
}
-#endif
} else {
externnotify[0] = '\0';
}