mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
check for vm caller id info later so if its transfered it gets the updated details
This commit is contained in:
parent
b084ba9955
commit
3e4fb4b0a2
@ -3271,14 +3271,6 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
||||
switch_channel_set_variable(channel, "skip_greeting", NULL);
|
||||
switch_channel_set_variable(channel, "skip_instructions", NULL);
|
||||
|
||||
if (!(caller_id_name = switch_channel_get_variable(channel, "effective_caller_id_name"))) {
|
||||
caller_id_name = caller_profile->caller_id_name;
|
||||
}
|
||||
|
||||
if (!(caller_id_number = switch_channel_get_variable(channel, "effective_caller_id_number"))) {
|
||||
caller_id_number = caller_profile->caller_id_number;
|
||||
}
|
||||
|
||||
memset(&cbt, 0, sizeof(cbt));
|
||||
|
||||
if (id) {
|
||||
@ -3505,6 +3497,14 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
||||
cc.noexit = 1;
|
||||
args.buf = &cc;
|
||||
|
||||
if (!(caller_id_name = switch_channel_get_variable(channel, "effective_caller_id_name"))) {
|
||||
caller_id_name = caller_profile->caller_id_name;
|
||||
}
|
||||
|
||||
if (!(caller_id_number = switch_channel_get_variable(channel, "effective_caller_id_number"))) {
|
||||
caller_id_number = caller_profile->caller_id_number;
|
||||
}
|
||||
|
||||
switch_channel_set_variable_printf(channel, "RECORD_ARTIST", "%s (%s)", caller_id_name, caller_id_number);
|
||||
|
||||
switch_time_exp_lt(&tm, ts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user