From 4845e9ee5f8fcaecb31450e6aa490ac49f98d315 Mon Sep 17 00:00:00 2001 From: jiyoungcheon Date: Fri, 10 Jan 2025 03:37:07 -0500 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- icshttp/handler.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/icshttp/handler.go b/icshttp/handler.go index 31c9a66..4a0c088 100644 --- a/icshttp/handler.go +++ b/icshttp/handler.go @@ -151,7 +151,7 @@ func TTSFunc2(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "TTS func 2", r) } -//post +// post func TTSFunc3(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "TTS func 3", r) body := make([]byte, r.ContentLength) @@ -163,13 +163,13 @@ func TTSFunc3(w http.ResponseWriter, r *http.Request) { fmt.Println(string(body)) } -//post +// post func TTSFunc4(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "TTS func 4", r) } -///////////////////////////////////////////// -//BOT +// /////////////////////////////////////////// +// BOT func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { // get scenario config l := icslog.GetIcsLog() @@ -258,6 +258,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { response.Data.RecodingFile = "" response.Data.SttMaxTime = 10 } else if request.Method != "INIT" && request.TalkText == "" { + l.Println(icslog.LOG_LEVEL_INFO, -1, "여기는 INIT 아닐 때") if request.TalkText == "" { request.TalkText = "잘못된 값 입력 " } @@ -383,6 +384,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { s.session[token] = ResStatus{Count: 1, Status: scnarioConf[dnis][0].Action, NotUnderstand: 0, PreEventNum: 1} // s.m.Unlock() case "STT", "DTMF", "BOTH", "MEMO", "NONE": + l.Println(icslog.LOG_LEVEL_INFO, -1, "여기는 언제 타는거지지") response.ResultCode = 200 response.Token = request.Token if dnis == "9013" || dnis == "9014" {