Testing of presentation rules

Requests

HTTP verb Endpoint Description

GET

/api/test/v1/representative/apply

Test routing construction

Test routing construction

Domain Type: any

Test construction of a representation rule. Available in the master domain, or in the working domain if the fromtd parameter matches the current domain. Executes a request to role b2b on the current site.

Request

Table 1. Request parameters
Specification Description

Name: fromtd
Type: str

The domain of the call source

Name: fromuser
Type: str

Call source sip-user login

Name: totd
Type: str

Domain of the called party

Name: touser
Type: str

Caller login

Request example
GET /api/test/v1/representative/apply?fromtd=test.x.ru&fromuser=sip1&totd=ak.x.ru&touser=sip3 HTTP/1.1

Response

Response example
HTTP/1.1 200 OK

{
  "resultcode": 0,
  "resultmsg": "OK",
  "data": [
    "1. Start: from='sip1' in 'test.x.ru', to='sip3' in 'ak.x.ru'",
    "2. DC start as 'cross' in 'ak.x.ru'",
    "3. DC start as 'inner' in 'test.x.ru'",
    "4. DC 'test.ceceron.ru' rule=(priority=100, id='494407be-016e-a232-7f75-e0d55e0cd13e'): match ok ({'*','sipX','*'}, {'*','*','*'})",
    "5. Result: 'rpr_11'"
  ]
}