|
|
|
@ -173,10 +173,39 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
fmt.Printf(">>>>>> DATA INFO - method [%s], agent [%s], token [%s]\n", request.Method, agent, request.Token)
|
|
|
|
|
l.Printf(icslog.LOG_LEVEL_INFO, -1, ">>>>>> DATA INFO - method [%s], agent [%s], token [%s] ", request.Method, agent, request.Token)
|
|
|
|
|
|
|
|
|
|
response := new(Response)
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////
|
|
|
|
|
///////////// EXCEPT ///////////////
|
|
|
|
|
////////////////////////////////////
|
|
|
|
|
if conf.ExceptTest.TestInfo.Value {
|
|
|
|
|
// eType := conf.ExceptTest.TestInfo.Type
|
|
|
|
|
|
|
|
|
|
response.ResultCode = conf.ExceptTest.TestInfo.ResultCode
|
|
|
|
|
response.Token = conf.ExceptTest.TestInfo.Token
|
|
|
|
|
response.Action = conf.ExceptTest.TestInfo.Action
|
|
|
|
|
response.AnounceMents = conf.ExceptTest.TestInfo.Announcement
|
|
|
|
|
response.Data.BargeIn = conf.ExceptTest.TestInfo.Bargein
|
|
|
|
|
response.Data.RecodingFile = conf.ExceptTest.TestInfo.Recodingfile
|
|
|
|
|
response.Data.SttMaxTime = conf.ExceptTest.TestInfo.Sttmaxtime
|
|
|
|
|
// switch eType {
|
|
|
|
|
// case "sizeup":
|
|
|
|
|
// response.ResultCode = 200
|
|
|
|
|
// response.Token = request.Token + "000000000000000000000000000000"
|
|
|
|
|
// response.Action = ""
|
|
|
|
|
// response.AnounceMents = ""
|
|
|
|
|
// response.Data.BargeIn = ""
|
|
|
|
|
// response.Data.RecodingFile = ""
|
|
|
|
|
// response.Data.SttMaxTime = 10
|
|
|
|
|
// case "sizedown":
|
|
|
|
|
// case "space":
|
|
|
|
|
// case "null":
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////
|
|
|
|
|
//////// SCENARIO MAPPING///////////
|
|
|
|
|
////////////////////////////////////
|
|
|
|
|
response := new(Response)
|
|
|
|
|
|
|
|
|
|
// 현재 들어온 method로 분기
|
|
|
|
|
// next 시나리오로 넘겨주기
|
|
|
|
|