提交 a296bb57 authored 作者: Anthony Minessale's avatar Anthony Minessale

add voicemail_alternate_greet_id var

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9785 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 abc7e041
......@@ -2666,8 +2666,12 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons
TRY_CODE(switch_ivr_play_file(session, NULL, cbt.name_path, &args));
}
if (*buf == '\0') {
const char *read_id;
if (!(read_id = switch_channel_get_variable(channel, "voicemail_alternate_greet_id"))) {
read_id = id;
}
memset(buf, 0, sizeof(buf));
TRY_CODE(switch_ivr_phrase_macro(session, VM_PLAY_GREETING_MACRO, id, NULL, &args));
TRY_CODE(switch_ivr_phrase_macro(session, VM_PLAY_GREETING_MACRO, read_id, NULL, &args));
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论