Create/Update call forward rule
Create/Update call forward rule
Path Parameters
- forwardUid int64 required
Possible values:
>= 1
Forward number for forward scheme
- application/json
Request Body required
- Create/Update forward rule. Forward incoming call from logic number (
apartment_id
) to SIP numbers at once or sequentially. Forwarding will work if SIP is configured and enabled withPOST /device/sip/settings
andPOST /device/sip/enable
. - If there is already forward rule with same
forward_number
it will be updated - Available forward number patterns:
\d+
- digits only, for example,101
^sip:([0-9A-Za-z+\-_]*@)((\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?(?:\:\d{1,5})?)(\.|$)){4}\b)|([0-9]*[A-Za-z+\-_]+[0-9]*)((\.([0-9]*[A-Za-z+\-_]+[0-9]*))+\b))$
- full SIP URI, for example,sip:[email protected]
orsip:[email protected]
^sip:(\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?(?:\:\d{1,5})?)(\.|$)){4}\b)$
- SIP URI without name and host, for examplesip:192.168.1.2
- forward_entity_list string[]
Responses
- 200
- 400
- 401
OK
Wrong JSON body
- application/json
- Schema
- Example (from schema)
- Example
Schema
- error string
{
"error": "Wrong JSON body"
}
{
"error": "Wrong JSON body"
}
Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
- error string
{
"error": "Log In"
}
{
"error": "Log In"
}
Loading...