Configuration change - http_failed_dir -> failed_requests_dir

This commit is contained in:
DanB
2017-01-29 20:53:11 +01:00
parent d429b9404e
commit 55980e0536
15 changed files with 467 additions and 437 deletions

View File

@@ -218,6 +218,7 @@ const (
META_FILLER = "*filler"
META_HANDLER = "*handler"
META_HTTP_POST = "*http_post"
MetaHTTPjson = "*http_json"
MetaHTTPjsonCDR = "*http_json_cdr"
META_HTTP_JSONRPC = "*http_jsonrpc"
MetaHTTPjsonMap = "*http_json_map"

View File

@@ -45,7 +45,7 @@ func NewFallbackFileNameFronString(fileName string) (ffn *FallbackFileName, err
return nil, fmt.Errorf("unsupported module: %s", ffn.Module)
}
fileNameWithoutModule := fileName[moduleIdx+1:]
for _, trspt := range []string{MetaHTTPjsonCDR, MetaHTTPjsonMap, META_HTTP_POST} {
for _, trspt := range []string{MetaHTTPjsonCDR, MetaHTTPjsonMap, MetaHTTPjson, META_HTTP_POST} {
if strings.HasPrefix(fileNameWithoutModule, trspt) {
ffn.Transport = trspt
break