switch_snprintf(duration_str, sizeof(duration_str), "%.2u:%.2u:%.2u", duration.hr, duration.min, duration.sec);
+ switch_channel_set_variable(channel, "voicemail_account", id);
+ switch_channel_set_variable(channel, "voicemail_domain", domain_name);
+ switch_channel_set_variable(channel, "voicemail_file_path", file_path);
+ switch_channel_set_variable(channel, "voicemail_read_flags", read_flags);
switch_channel_set_variable(channel, "voicemail_message_len", duration_str);
-
} else {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Failed to deliver message\n");
TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "deleted", NULL, NULL));