unispeech / asterisk-unimrcp

UniMRCP modules for Asterisk
http://www.unimrcp.org/asterisk
GNU General Public License v2.0
48 stars 36 forks source link

Fix hanging bargeable audio in SynthAndRecog #36

Closed sfgeorge closed 5 years ago

sfgeorge commented 5 years ago

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.