init일때 bot action STT로

wo_translateinfo
jiyoungcheon 2 weeks ago
parent 0398e7d078
commit c1db8b0981

@ -226,25 +226,25 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) {
} else {
switch request.Method {
case "INIT":
l.Printf(icslog.LOG_LEVEL_INFO, -1, "INIT..scnarioConf[dnis][1].AnounceMents: %s", scnarioConf[dnis][0].AnounceMents)
l.Printf(icslog.LOG_LEVEL_INFO, -1, "INIT..scnarioConf[dnis][1].AnounceMents: %s", scnarioConf[dnis][1].AnounceMents)
token := createToken(request.CallId)
response.ResultCode = 200
response.Token = token
response.Action = scnarioConf[dnis][0].Action
response.AnounceMents = scnarioConf[dnis][0].AnounceMents
response.Data.Speed = scnarioConf[dnis][0].Speed
response.Data.VoiceName = scnarioConf[dnis][0].VoiceName
response.Data.Volume = scnarioConf[dnis][0].Volume
response.Data.Pitch = scnarioConf[dnis][0].Pitch
response.Data.MaxWaitTime = scnarioConf[dnis][0].MaxWaitTime
response.Data.BargeIn = scnarioConf[dnis][0].BargeIn
response.Data.SttMaxTime = scnarioConf[dnis][0].SttMaxTime
response.Data.MaxDigit = scnarioConf[dnis][0].MaxDigit
response.Data.EndCharacter = []string{scnarioConf[dnis][0].EndCharacter}
response.Data.DigitTerm = scnarioConf[dnis][0].DigitTerm
response.AnnounceFilePath = scnarioConf[dnis][0].AudioFilePath
response.Action = scnarioConf[dnis][1].Action
response.AnounceMents = scnarioConf[dnis][1].AnounceMents
response.Data.Speed = scnarioConf[dnis][1].Speed
response.Data.VoiceName = scnarioConf[dnis][1].VoiceName
response.Data.Volume = scnarioConf[dnis][1].Volume
response.Data.Pitch = scnarioConf[dnis][1].Pitch
response.Data.MaxWaitTime = scnarioConf[dnis][1].MaxWaitTime
response.Data.BargeIn = scnarioConf[dnis][1].BargeIn
response.Data.SttMaxTime = scnarioConf[dnis][1].SttMaxTime
response.Data.MaxDigit = scnarioConf[dnis][1].MaxDigit
response.Data.EndCharacter = []string{scnarioConf[dnis][1].EndCharacter}
response.Data.DigitTerm = scnarioConf[dnis][1].DigitTerm
response.AnnounceFilePath = scnarioConf[dnis][1].AudioFilePath
response.Data.RecodingFile = "Y"
s.session[token] = ResStatus{Count: 1, Status: scnarioConf[dnis][0].Action, NotUnderstand: 0, PreEventNum: 1}
s.session[token] = ResStatus{Count: 1, Status: scnarioConf[dnis][1].Action, NotUnderstand: 0, PreEventNum: 1}
}
response.Data.UUI = json.RawMessage{}

Loading…
Cancel
Save