mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
FS-5799 extra channel variables when leaving a message
This commit is contained in:
parent
aa7800690d
commit
e2d7bb417b
@ -3698,8 +3698,11 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
||||
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user