Method create.sip_lines
Description Creating a SIP line
Available to Partner, Client

Request parameters

Title Type Required Accepted values ​​ Description
access_token string yes Authentication session key
user_id number no Unique user identifier of the client agent on behalf of which the request is made
Is required for the agent
To obtain a list of client users, you must use the method "get.customer_users"
employee_id number yes Unique employee identifier, see method "get.employees"
virtual_phone_number string yes E164 format. Starts with 7 Virtual number displayed on outgoing calls.
If the virtual number is not transmitted, then the SIP line type will be only “incoming connection”; if transmitted, then it will be “incoming and outgoing”

Response parameters

Title Type Description
phone_number string SIP line phone number
password string Password for registration
server string FQDN and server port for registration
id number Unique SIP line identifier

JSON request structure```json

{ "jsonrpc": "2.0", "id": "number", "method": "create.sip_lines", "params": { "access_token": "string", "user_id": "number", "employee_id": "number", "virtual_phone_number": "string" } }

### JSON response structure```json
{
  "jsonrpc": "2.0",
  "id": "number",
  "result": {
    "phone_number": "string",
    "password": "string",
    "server": "string",
    "id": "number"
  }
}

List of returned errors

See the section "List of errors for methods with the create verb"