Merged revisions 104119 via svnmerge from
[asterisk/asterisk.git] / apps / app_voicemail.c
index 9bcb8f1..ec901ac 100644 (file)
@@ -2976,8 +2976,8 @@ static void run_externnotify(char *context, char *extension)
                else
                        ast_smdi_mwi_unset(smdi_iface, extension);
 
-               if ((mwi_msg = ast_smdi_mwi_message_wait(smdi_iface, SMDI_MWI_WAIT_TIMEOUT))) {
-                       ast_log(LOG_ERROR, "Error executing SMDI MWI change for %s on %s\n", extension, smdi_iface->name);
+               if ((mwi_msg = ast_smdi_mwi_message_wait_station(smdi_iface, SMDI_MWI_WAIT_TIMEOUT, extension))) {
+                       ast_log(LOG_ERROR, "Error executing SMDI MWI change for %s\n", extension);
                        if (!strncmp(mwi_msg->cause, "INV", 3))
                                ast_log(LOG_ERROR, "Invalid MWI extension: %s\n", mwi_msg->fwd_st);
                        else if (!strncmp(mwi_msg->cause, "BLK", 3))
@@ -2985,7 +2985,7 @@ static void run_externnotify(char *context, char *extension)
                        ast_log(LOG_WARNING, "The switch reported '%s'\n", mwi_msg->cause);
                        ASTOBJ_UNREF(mwi_msg, ast_smdi_mwi_message_destroy);
                } else {
-                       ast_debug(1, "Successfully executed SMDI MWI change for %s on %s\n", extension, smdi_iface->name);
+                       ast_debug(1, "Successfully executed SMDI MWI change for %s\n", extension);
                }
        }
 
@@ -8411,8 +8411,6 @@ static int load_config(int reload)
                        }
                        if (!smdi_iface) {
                                ast_log(LOG_ERROR, "No valid SMDI interface specfied, disabling SMDI voicemail notification\n");
-                       } else {
-                               ast_debug(1, "Using SMDI port %s\n", smdi_iface->name);
                        }
                }