mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 19:52:35 +00:00
FS-3080 --resolve only allow when not playing message
This commit is contained in:
parent
c8c94f051b
commit
d2daa44d8c
@ -1568,9 +1568,11 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t
|
|||||||
*cc.buf = '\0';
|
*cc.buf = '\0';
|
||||||
memset(&fh, 0, sizeof(fh));
|
memset(&fh, 0, sizeof(fh));
|
||||||
cc.fh = &fh;
|
cc.fh = &fh;
|
||||||
|
cc.noexit = 1;
|
||||||
if (switch_file_exists(cbt->file_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {
|
if (switch_file_exists(cbt->file_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {
|
||||||
TRY_CODE(switch_ivr_play_file(session, &fh, cbt->file_path, &args));
|
TRY_CODE(switch_ivr_play_file(session, &fh, cbt->file_path, &args));
|
||||||
}
|
}
|
||||||
|
cc.noexit = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!*cc.buf && (profile->play_date_announcement == VM_DATE_LAST)) {
|
if (!*cc.buf && (profile->play_date_announcement == VM_DATE_LAST)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user