API Version: 6.5
System-Admin
or Company-Admin
access.default
company are effectively treated as system wide, all-company rules.inbound
scope or value which evaluates to a true
value is specified in the operation./rest/dialplan/create/
6.3.23{
"type": "barred"
"values": {
"prefix": "a prefix or exact match pattern",
"company": "required - company to apply rule to",
"passcode": "optional 0 to 8 digit numeric pin"
}
}
{
"type": "barred"
"values": {
"inbound": true,
"prefix": "a prefix or exact match pattern",
"company": "required - company to apply rule to",
"ddi": "optional inbound DDI for rule to apply to",
"redir": "optional 0 to 8 digit redirect target (extension)",
"qprio": "optional queue priority bump"
}
}
{
"result": "success",
"numrows": rows-created
}
/rest/dialplan/read/
6.3.22{
"type": "barred"
"scope": {
"inbound": "optional - if true, query inbound rules, else outbound",
"prefix": "optional - a prefix or exact match pattern, or a list of several",
"company": "optional - filter results to specific companies",
"ddi": "optional - matches ddi",
"passcode": "optional - matches either redir (inbound) or passcode (outbound)",
"qprio": "optional - queue priority bump (inbound only)"
}
}
{
"result": "success",
"values": {
"company": [
{
"prefix": "prefix"
},
{
"prefix": "prefix",
"ddi": "ddi",
"redir": "redirext target",
"qprio": q-prio-bump
},
... more rules
],
... other companies
}
numrows: number-of-rows
}
/rest/dialplan/update/
6.3.23{
"type": "barred"
"scope": {
"company": "required - a single company",
"inbound": "optional - if true, query inbound rules, else outbound",
"prefix": "optional - a prefix or exact match pattern, or a list of several",
"ddi": "optional - matches ddi (inbound only)",
"redir": "optional - matches redir (inbound only)",
"qprio": "optional - matches qprio (inbound only)",
"passcode": "optional - matches passcode (outbound only)"
},
"values": {
"ddi": "optional - ddi (inbound only)",
"redir": "optional - redir (inbound only)",
"qprio": "optional - qprio (inbound only)",
"passcode": "optional - passcode (outbound only)"
}
}
{
"result": "success",
"numrows": rows-updated
}
/rest/dialplan/update/
6.3.23{
"type": "barred"
"scope": {
"company": "required - a single company",
"inbound": "optional - if true, query inbound rules, else outbound",
"prefix": "optional - a prefix or exact match pattern, or a list of several",
"ddi": "optional - matches ddi (inbound only)",
"redir": "optional - matches redir (inbound only)",
"qprio": "optional - matches qprio (inbound only)",
"passcode": "optional - matches passcode (outbound only)"
}
}
{
"result": "success",
"numrows": rows-deleted
}