Updated APIs Opts

This commit is contained in:
Trial97
2020-04-24 17:33:09 +03:00
committed by Dan Christian Bogos
parent 1d1f0cf2df
commit 13b7ca5d28
27 changed files with 329 additions and 262 deletions

View File

@@ -10,7 +10,7 @@
"flags": ["*initiate", "*accounts"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIkey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid"},
@@ -38,7 +38,7 @@
"flags": ["*update", "*accounts","*continue"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIkey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "InitialOriginID", "path": "*cgreq.InitialOriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed",
@@ -71,7 +71,7 @@
"flags": ["*update", "*accounts"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIkey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "InitialOriginID", "path": "*cgreq.InitialOriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed",
@@ -104,7 +104,7 @@
"flags": ["*terminate", "*accounts"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIkey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "OriginIDPrefix", "path": "*cgreq.OriginIDPrefix", "type": "*variable",

View File

@@ -8,7 +8,7 @@
"flags": ["*dryrun","*continue"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"},
{"tag": "Val2", "path": "*cgreq.Val2", "type": "*constant", "value": "2"},
{"tag": "Val3", "path": "*cgreq.Val3", "type": "*constant", "value": "3"},
@@ -43,7 +43,7 @@
"flags": ["*dryrun"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"},
{"tag": "Val2", "path": "*cgreq.Val2", "type": "*constant", "value": "2"},
{"tag": "Val3", "path": "*cgreq.Val3", "type": "*constant", "value": "3"},

View File

@@ -10,7 +10,7 @@
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "sms"},

View File

@@ -18,8 +18,8 @@
"type": "*constant",
"value": "*mms"
},
{ "tag": "*api_key",
"path": "*cgreq.*api_key",
{ "tag": "APIKey",
"path": "*opts.APIKey",
"type": "*constant",
"value": "ses12345"
},

View File

@@ -10,7 +10,7 @@
"flags": ["*message", "*accounts", "*log"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*generic"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid"},

View File

@@ -10,7 +10,7 @@
"flags": ["*initiate", "*accounts","*attributes"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "OriginHost", "path": "*cgreq.OriginHost", "type": "*variable",

View File

@@ -109,7 +109,7 @@
"flags": ["*initiate", "*accounts", "*attributes"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "OriginHost", "path": "*cgreq.OriginHost", "type": "*remote_host",
@@ -141,7 +141,7 @@
"flags": ["*update", "*accounts", "*attributes"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "OriginHost", "path": "*cgreq.OriginHost", "type": "*remote_host",
@@ -175,7 +175,7 @@
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice"},
{"tag": "*api_key", "path": "*cgreq.*api_key", "type": "*constant", "value": "ses12345"},
{"tag": "APIKey", "path": "*opts.APIKey", "type": "*constant", "value": "ses12345"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "OriginHost", "path": "*cgreq.OriginHost", "type": "*remote_host",