Skip to main content

Create/Update call forward rule

  • 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 with POST /device/sip/settings and POST /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] or sip:[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 example sip:192.168.1.2
    • ^laskomex:\d+$ - for devices with hybrid adapter, for example, laskomex:10
    • ^vizit:\d+$ - another number format for devices with hybrid adapter, for example, vizit:10
Path Parameters
  • forwardUid int64 required

    Possible values: >= 1

    Forward number for forward scheme

Request Body required
  • forward_entity_list string[]
Responses

OK

Loading...