When SynthAndRecog() is invoked with an audio file and barge-in enabled on Asterisk >= 11, then START-INPUT-TIMERS is never sent out.
Side-effects
As long as the caller is mute / does not provide input,
It never advances past the 1st sound file because end_of_prompt is never true (similar symptom to #14).
A no-input timeout can never occur because START-INPUT-TIMERS won't trigger until we have finished prompt_processing (which never gets set as complete as we are stuck with end_of_prompt == 0).
Cause & Resolution
When a single audio file is complete, we were only setting end_of_prompt = 1; for Asterisk < 11. This change simply applies that setting to the Asterisk >= 11 case as well.
Issue
When SynthAndRecog() is invoked with an audio file and barge-in enabled on Asterisk >= 11, then START-INPUT-TIMERS is never sent out.
Side-effects
As long as the caller is mute / does not provide input,
Cause & Resolution
When a single audio file is complete, we were only setting
end_of_prompt = 1;
for Asterisk < 11. This change simply applies that setting to the Asterisk >= 11 case as well.