From d48db7c979c0f113721fb9e7771bfaca80839a3a Mon Sep 17 00:00:00 2001
From: Seven Du <dujinfang@x-y-t.cn>
Date: Mon, 9 Apr 2018 21:31:39 +0800
Subject: [PATCH] FS-11110 #resolve resume detect on next detect

---
 src/switch_ivr_async.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c
index 866601b356..bb574ee828 100644
--- a/src/switch_ivr_async.c
+++ b/src/switch_ivr_async.c
@@ -4901,6 +4901,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech(switch_core_session_t *
 		if (!(sth = switch_channel_get_private(channel, SWITCH_SPEECH_KEY))) {
 			return SWITCH_STATUS_NOT_INITALIZED;
 		}
+
+		switch_ivr_resume_detect_speech(session);
 	}
 
 	if (switch_core_asr_load_grammar(sth->ah, grammar, name) != SWITCH_STATUS_SUCCESS) {