AnounceMents assign directly to request.TalkText

wo_translateinfo
jiyoungcheon 2 weeks ago
parent 144931542c
commit 98b9860369

@ -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 {

Loading…
Cancel
Save