mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 13:35:00 +00:00
FS-11785 [mod_voicemail] fix a couple other places- unused code
This commit is contained in:
parent
17b88eb688
commit
1a90bc20a9
@ -3377,7 +3377,6 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
|||||||
switch_caller_profile_t *caller_profile = switch_channel_get_caller_profile(channel);
|
switch_caller_profile_t *caller_profile = switch_channel_get_caller_profile(channel);
|
||||||
switch_file_handle_t fh = { 0 };
|
switch_file_handle_t fh = { 0 };
|
||||||
switch_input_args_t args = { 0 };
|
switch_input_args_t args = { 0 };
|
||||||
char *vm_email = NULL;
|
|
||||||
switch_cc_t cc = { 0 };
|
switch_cc_t cc = { 0 };
|
||||||
char *read_flags = NORMAL_FLAG_STRING;
|
char *read_flags = NORMAL_FLAG_STRING;
|
||||||
const char *operator_ext = switch_channel_get_variable(channel, "vm_operator_extension");
|
const char *operator_ext = switch_channel_get_variable(channel, "vm_operator_extension");
|
||||||
@ -3414,7 +3413,6 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
|||||||
if (id) {
|
if (id) {
|
||||||
int ok = 1;
|
int ok = 1;
|
||||||
switch_event_t *locate_params = NULL;
|
switch_event_t *locate_params = NULL;
|
||||||
const char *email_addr = NULL;
|
|
||||||
|
|
||||||
switch_event_create(&locate_params, SWITCH_EVENT_REQUEST_PARAMS);
|
switch_event_create(&locate_params, SWITCH_EVENT_REQUEST_PARAMS);
|
||||||
switch_assert(locate_params);
|
switch_assert(locate_params);
|
||||||
@ -3429,12 +3427,8 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
|||||||
const char *var = switch_xml_attr_soft(x_param, "name");
|
const char *var = switch_xml_attr_soft(x_param, "name");
|
||||||
const char *val = switch_xml_attr_soft(x_param, "value");
|
const char *val = switch_xml_attr_soft(x_param, "value");
|
||||||
|
|
||||||
if (!strcasecmp(var, "vm-mailto")) {
|
if (!strcasecmp(var, "vm-skip-instructions")) {
|
||||||
vm_email = switch_core_session_strdup(session, val);
|
|
||||||
} else if (!strcasecmp(var, "vm-skip-instructions")) {
|
|
||||||
skip_instructions = switch_true(val);
|
skip_instructions = switch_true(val);
|
||||||
} else if (!strcasecmp(var, "email-addr")) {
|
|
||||||
email_addr = switch_core_session_strdup(session, val);
|
|
||||||
} else if (!strcasecmp(var, "vm-storage-dir")) {
|
} else if (!strcasecmp(var, "vm-storage-dir")) {
|
||||||
vm_storage_dir = switch_core_session_strdup(session, val);
|
vm_storage_dir = switch_core_session_strdup(session, val);
|
||||||
} else if (!strcasecmp(var, "vm-domain-storage-dir")) {
|
} else if (!strcasecmp(var, "vm-domain-storage-dir")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user