From 98b986036924733bec6cd319f8be0724266f2829 Mon Sep 17 00:00:00 2001 From: jiyoungcheon Date: Mon, 13 Jan 2025 00:41:19 -0500 Subject: [PATCH] AnounceMents assign directly to request.TalkText --- icshttp/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icshttp/handler.go b/icshttp/handler.go index 9938f34..41537ea 100644 --- a/icshttp/handler.go +++ b/icshttp/handler.go @@ -208,7 +208,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { response.Token = request.Token response.Action = scnarioConf[dnis][s.session[request.Token].Count].Action // response.AnounceMents = scnarioConf[dnis][s.session[request.Token].Count].AnounceMents - response.AnounceMents = strings.ReplaceAll(response.AnounceMents, "$", request.TalkText) + response.AnounceMents = request.TalkText response.Data.Speed = scnarioConf[dnis][s.session[request.Token].Count].Speed response.Data.VoiceName = scnarioConf[dnis][s.session[request.Token].Count].VoiceName response.Data.Volume = scnarioConf[dnis][s.session[request.Token].Count].Volume @@ -222,7 +222,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { response.Data.RecodingFile = "Y" s.session[request.Token] = ResStatus{Count: s.session[request.Token].Count, Status: scnarioConf[dnis][s.session[request.Token].Count].Action} - l.Printf(icslog.LOG_LEVEL_INFO, -1, "response.Data: %+v", response.Data) + l.Printf(icslog.LOG_LEVEL_INFO, -1, "response: %+v", response) } else { switch request.Method {