get_sipaccount_details

Description

Get the details of a SIP Account

Parameters 

username

Request 

curl -X POST \-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{
"username":"6122038694g2l0db"
}' \
-k https://your.domain.com/api/users/get_sipaccount_details

Successful Response

{
  "status": "success",
  "results": {
    "username": "herve333",
    "password": "tomtom1234",
    "client_account_code": "1828213528",
    "custom_sip_headers": null,
    "voicemail_password": null,
    "voicemail": true,
    "register": false,
    "enabled": true,
    "pass_thru_caller_id": false,
    "caller_id_name": "Errol Samuels",
    "sip_force_contact": "NDLB-connectile-dysfunction",
    "bypass_media": "bypass_media",
    "codecs": [
      "G729",
      "PCMA",
      "PCMU"
    ],
    "sip_force_expires": 360,
    "caller_id_number": "19173001321",
    "cli_debug": false,
    "ip_address": null,
    "port": 5060
  }
}

Failed Response

{
  "status": "failed",
  "results": [
    {
      "msg": "SipAccount matching query does not exist."
    }
  ]