Skip to content

extension_detail

Definición

Devuelve los datos de una extensión en concreto

Parámetros de Entrada

  • domain_uuid : UUID del dominio del que se quiere sacar el listado, si no se pasa lo hace con el propietario de la key.
  • extension_uuid (opcional): UUID de la extensión de la que queremos los datos (si se pasa este no hace falta pasar extension)
  • extension (opcional): Número de la extensión de la que queremos los datos (si se pasa este no hace falta pasar extension_uuid)

Ejemplo de petición

https://pbx.centralita.com/app/api/extension_detail.php?key=xxxxxxxxxxxxxxxx&domain_uuid=xxxxxx&extension=1001

Ejemplo de respuesta

{
{
  "extension_data": [
    {
      "extension_uuid": "cf4633bd-9e04-4139-ae80-95eeff1b072f",
      "domain_uuid": "1448ddb1-89df-48e8-bdfb-6c9ffb69e296",
      "extension": "1001",
      "number_alias": "",
      "password": "ZoT.561w0k",
      "accountcode": "pruebas.pbx.aingeru.com",
      "effective_caller_id_name": "Usuario 1001",
      "effective_caller_id_number": "1001",
      "outbound_caller_id_name": "Empresa Ficticia",
      "outbound_caller_id_number": "944209456",
      "emergency_caller_id_name": "",
      "emergency_caller_id_number": "",
      "directory_full_name": "",
      "directory_visible": "",
      "directory_exten_visible": "",
      "limit_max": "",
      "limit_destination": "",
      "missed_call_app": "",
      "missed_call_data": "",
      "user_context": "pruebas.pbx.aingeru.com",
      "toll_allow": "",
      "call_timeout": null,
      "call_group": "almacen",
      "call_screen_enabled": "",
      "user_record": "",
      "hold_music": "",
      "auth_acl": "",
      "cidr": "",
      "sip_force_contact": "",
      "nibble_account": null,
      "sip_force_expires": null,
      "mwi_account": null,
      "sip_bypass_media": "",
      "unique_id": null,
      "dial_string": "{fail_on_single_reject=USER_BUSY,instant_ringback=true,ignore_early_media=true,domain_uuid=1448ddb1-89df-48e8-bdfb-6c9ffb69e296,sip_invite_domain=pruebas.pbx.aingeru.com,domain_name=pruebas.pbx.aingeru.com,domain=pruebas.pbx.aingeru.com,extension_uuid=cf4633bd-9e04-4139-ae80-95eeff1b072f,group_confirm_key=exec,group_confirm_file=lua confirm.lua,sip_h_X-accountcode=pruebas.pbx.aingeru.com,accountcode=pruebas.pbx.aingeru.com}[anyvar=,origination_caller_id_number=${cond(${from_user_exists} == true ? ${outbound_caller_id_number} : ${origination_caller_id_number})},effective_caller_id_number=${cond(${from_user_exists} == true ? ${outbound_caller_id_number} : ${effective_caller_id_number})},origination_caller_id_name=${cond(${from_user_exists} == true ? ${outbound_caller_id_name} : ${origination_caller_id_name})},effective_caller_id_name=${cond(${from_user_exists} == true ? ${outbound_caller_id_name} : ${effective_caller_id_name})},presence_id=1001@pruebas.pbx.aingeru.com,leg_delay_start=0,leg_timeout=15]sofia\/gateway\/27108111-afcf-4b2d-b04a-ee6225ea7568\/696723867,[presence_id=1001@pruebas.pbx.aingeru.com,leg_delay_start=0,leg_timeout=30]${sofia_contact(1001@pruebas.pbx.aingeru.com)}",
      "dial_user": null,
      "dial_domain": "pruebas.pbx.aingeru.com",
      "do_not_disturb": "false",
      "forward_all_destination": null,
      "forward_all_enabled": "false",
      "forward_busy_destination": "",
      "forward_busy_enabled": "false",
      "forward_no_answer_destination": "",
      "forward_no_answer_enabled": "false",
      "forward_user_not_registered_destination": "",
      "forward_user_not_registered_enabled": "false",
      "follow_me_uuid": "fc083641-ce33-4616-9886-7e08ef558016",
      "enabled": "true",
      "description": "Usuario 1001",
      "forward_caller_id_uuid": null,
      "absolute_codec_string": "",
      "force_ping": "",
      "follow_me": {
        "domain_uuid": "1448ddb1-89df-48e8-bdfb-6c9ffb69e296",
        "follow_me_uuid": "fc083641-ce33-4616-9886-7e08ef558016",
        "cid_name_prefix": "",
        "cid_number_prefix": "",
        "call_prompt": null,
        "dial_string": "{fail_on_single_reject=USER_BUSY,instant_ringback=true,ignore_early_media=true,domain_uuid=1448ddb1-89df-48e8-bdfb-6c9ffb69e296,sip_invite_domain=pruebas.pbx.aingeru.com,domain_name=pruebas.pbx.aingeru.com,domain=pruebas.pbx.aingeru.com,extension_uuid=cf4633bd-9e04-4139-ae80-95eeff1b072f,group_confirm_key=exec,group_confirm_file=lua confirm.lua,sip_h_X-accountcode=pruebas.pbx.aingeru.com,accountcode=pruebas.pbx.aingeru.com}[anyvar=,origination_caller_id_number=${cond(${from_user_exists} == true ? ${outbound_caller_id_number} : ${origination_caller_id_number})},effective_caller_id_number=${cond(${from_user_exists} == true ? ${outbound_caller_id_number} : ${effective_caller_id_number})},origination_caller_id_name=${cond(${from_user_exists} == true ? ${outbound_caller_id_name} : ${origination_caller_id_name})},effective_caller_id_name=${cond(${from_user_exists} == true ? ${outbound_caller_id_name} : ${effective_caller_id_name})},presence_id=1001@pruebas.pbx.aingeru.com,leg_delay_start=0,leg_timeout=15]sofia\/gateway\/27108111-afcf-4b2d-b04a-ee6225ea7568\/696723867,[presence_id=1001@pruebas.pbx.aingeru.com,leg_delay_start=0,leg_timeout=30]${sofia_contact(1001@pruebas.pbx.aingeru.com)}",
        "follow_me_enabled": "true",
        "follow_me_caller_id_uuid": null,
        "follow_me_ignore_busy": "false"
      },
      "follow_me_destinations": [
        {
          "domain_uuid": "1448ddb1-89df-48e8-bdfb-6c9ffb69e296",
          "follow_me_uuid": "fc083641-ce33-4616-9886-7e08ef558016",
          "follow_me_destination_uuid": "a5a2e83e-b6c8-4731-8e55-d55e97955bbc",
          "follow_me_destination": "696723867",
          "follow_me_delay": "0",
          "follow_me_timeout": "15",
          "follow_me_prompt": "",
          "follow_me_order": "1"
        },
        {
          "domain_uuid": "1448ddb1-89df-48e8-bdfb-6c9ffb69e296",
          "follow_me_uuid": "fc083641-ce33-4616-9886-7e08ef558016",
          "follow_me_destination_uuid": "0566f59e-01d3-4ecd-8ec1-650794fc6487",
          "follow_me_destination": "1001",
          "follow_me_delay": "0",
          "follow_me_timeout": "30",
          "follow_me_prompt": "",
          "follow_me_order": "2"
        }
      ]
    }
  ],
  "total": 1
}
{
  "extension_data": [
    {
      "extension_uuid": "8ad982db-9761-4b1b-a995-5df0a82683ad",
      "domain_uuid": "1448ddb1-89df-48e8-bdfb-6c9ffb69e296",
      "extension": "1002",
      "number_alias": "",
      "password": "NmJ!Zhf4Uy",
      "accountcode": "pruebas.pbx.aingeru.com",
      "effective_caller_id_name": "Usuario 1002",
      "effective_caller_id_number": "1002",
      "outbound_caller_id_name": "Empresa Ficticia",
      "outbound_caller_id_number": "944209456",
      "emergency_caller_id_name": "",
      "emergency_caller_id_number": "",
      "directory_full_name": "",
      "directory_visible": "",
      "directory_exten_visible": "",
      "limit_max": "",
      "limit_destination": "",
      "missed_call_app": "",
      "missed_call_data": "",
      "user_context": "pruebas.pbx.aingeru.com",
      "toll_allow": "",
      "call_timeout": null,
      "call_group": "cafetera",
      "call_screen_enabled": "",
      "user_record": "",
      "hold_music": "",
      "auth_acl": "",
      "cidr": "",
      "sip_force_contact": "",
      "nibble_account": null,
      "sip_force_expires": null,
      "mwi_account": null,
      "sip_bypass_media": "",
      "unique_id": null,
      "dial_string": "",
      "dial_user": null,
      "dial_domain": null,
      "do_not_disturb": null,
      "forward_all_destination": null,
      "forward_all_enabled": null,
      "forward_busy_destination": null,
      "forward_busy_enabled": null,
      "forward_no_answer_destination": null,
      "forward_no_answer_enabled": null,
      "forward_user_not_registered_destination": null,
      "forward_user_not_registered_enabled": null,
      "follow_me_uuid": null,
      "enabled": "true",
      "description": "Usuario 1002",
      "forward_caller_id_uuid": null,
      "absolute_codec_string": "",
      "force_ping": "",
      "follow_me": [],
      "follow_me_destinations": []
    }
  ],
  "total": 1
}