1. Home
  2. Docs
  3. Protegido: Integração Red...
  4. ezWSI 2.0
  5. Método: channelsGet

Método: channelsGet

Método: channelsGet

Método: POST

 Função: Requisita todas as informações dos canais ativos.

 Dados: Este método não possui parâmetros a serem informados.

Status de retorno

CódigoDescrição
200OK
1Erro de aplicação

Objeto de retorno

Tipo: Objeto:

Exemplo:

{
        "Local/1060@INBOUND-00000017;1": {
            "Privilege": "Call",
            "Channel": "Local/1060@INBOUND-00000017;1",
            "ChannelState": "6",
            "ChannelStateDesc": "UP",
            "CallerIDNum": "<unknown>",
            "CallerIDName": "<unknown>",
            "ConnectedLineNum": "<unknown>",
            "ConnectedLineName": "<unknown>",
            "Language": "br",
            "AccountCode": "",
            "Context": "INBOUND",
            "Exten": "1060",
            "Priority": "1",
            "Uniqueid": "1664547114.74450",
            "Linkedid": "1664547114.74450",
            "Type": "Local",
            "DNID": "",
            "EffectiveConnectedLineNum": "<unknown>",
            "EffectiveConnectedLineName": "<unknown>",
            "TimeToHangup": "0",
            "BridgeID": "",
            "Application": "MusicOnHold",
            "Data": "Jean",
            "Nativeformats": "(slin)",
            "Readformat": "slin",
            "Readtrans": "",
            "Writeformat": "slin",
            "Writetrans": "",
            "Callgroup": "0",
            "Pickupgroup": "0",
            "Seconds": "39",
            "Variables": {
                "CDR(duration)": "39",
                "CDR(calltype)": "",
                "CDR(linkedid)": "1664547114.74450",
                "CDR(callrec)": "",
                "CDR(callfile)": "",
                "CDR(userfield)": "",
                "QEHOLDTIME": "(null)",
                "BRIDGEPEER": "(null)",
                "queueName": "(null)",
                "inboundDID": "(null)"
            }
        }

How can we help?