diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 9bcb8f159..ec901ac03 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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); } } |