Testing of presentation rules
Table of Contents
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
| Specification | Description |
|---|---|
|
The domain of the call source |
|
Call source sip-user login |
|
Domain of the called party |
|
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'"
]
}