POST api/Dialer/AddSipAndLine

Request Information

URI Parameters

None.

Body Parameters

SipPost
NameDescriptionTypeAdditional information
dialerID

integer

None.

sipID

integer

None.

line_key

string

None.

registrationRequired

boolean

None.

displayName

string

None.

userName

string

None.

authenticationId

string

None.

registerPassword

string

None.

domainHost

string

None.

domainPort

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "dialerID": 1,
  "sipID": 2,
  "line_key": "sample string 3",
  "registrationRequired": true,
  "displayName": "sample string 5",
  "userName": "sample string 6",
  "authenticationId": "sample string 7",
  "registerPassword": "sample string 8",
  "domainHost": "sample string 9",
  "domainPort": 10
}

application/xml, text/xml

Sample:
<SipPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DialerAPI.Models.Sip">
  <authenticationId>sample string 7</authenticationId>
  <dialerID>1</dialerID>
  <displayName>sample string 5</displayName>
  <domainHost>sample string 9</domainHost>
  <domainPort>10</domainPort>
  <line_key>sample string 3</line_key>
  <registerPassword>sample string 8</registerPassword>
  <registrationRequired>true</registrationRequired>
  <sipID>2</sipID>
  <userName>sample string 6</userName>
</SipPost>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SipPost'.

Response Information

Resource Description

DefaultResultModel
NameDescriptionTypeAdditional information
success

boolean

None.

error

DefaultResultErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": {
    "message": "sample string 1",
    "stacktrace": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<DefaultResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DialerAPI.Models">
  <error>
    <message>sample string 1</message>
    <stacktrace>sample string 2</stacktrace>
  </error>
  <success>true</success>
</DefaultResultModel>