ListActiveCalls command
The ListActiveCalls command lists all the calls in progress in the system. The list of active calls also contains numerous information about each call like the Source, Destination, the duration of the talk, etc.
Request parameters
Parameter name | Example value | Description | Mandatory |
Username | admin | The username of the account. The username and password parameters are used to authenticate the user. | yes |
Password | abc123 | Specifies the password. The username and password parameters are used to authenticate the user. | yes |
Response parameters
Parameter name | Example value | Description | Mandatory |
Code | 200 | Returns the status code of the response. | yes |
Message | Command successfully executed | Returns the description of the response code. | yes |
ActiveCalls | It contains <Call> nodes. In these nodes the details of a call is shown. There are as many pair of nodes as many active calls in progress. The parameters of these nodes are: CallId, Source, CallerId, Destination, CallerDialed, CelleeDialed, StartTime, RingDuration, TalkDuration and CallState. | yes | |
NotificationName | CallConnected | Name of the notification request type. | no |
Example request and response
URL request
http://127.0.0.1:9509/api?command=ListActiveCalls&Username=HTTP_User_1&Password=qwe123
Response
<?xml version="1.0"?> <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Code>200</Code> <Message>Command successfully executed</Message> <ActiveCalls> <Call> <CallId>1vQHKd</CallId> <Source>103</Source> <CallerId>103</CallerId> <Destination>101</Destination> <CallerDialed>101</CallerDialed> <CalleeDialed>101</CalleeDialed> <StartTime>2019-04-09 10:34:07</StartTime> <RingDuration>0.749</RingDuration> <TalkDuration>0.000</TalkDuration> <CallState>Ringing</CallState> </Call> <Call> <CallId>1zS1b3</CallId> <Source>104</Source> <CallerId>104</CallerId> <Destination>105</Destination> <CallerDialed>105</CallerDialed> <CalleeDialed>105</CalleeDialed> <StartTime>2019-04-09 10:35:32</StartTime> <RingDuration>2.351</RingDuration> <TalkDuration>3.056</TalkDuration> <CallState>InCall</CallState> </Call> </ActiveCalls> </Response>
More information
- Comando de transferencia asistida
- Comando de transferencia ciega
- Comando de llamada
- Comando de reenvío de llamada
- Comando para listar historial de llamadas
- Comando para colgar
- Comando para poner en espera
- Comando para listar llamadas activas
- Comando para listar extensiones
- Comando para listar tipos de extensión
- Comando para reproducir
- Comando para grabar
- Comando de solicitud
- Comando para enviar DTMF
- Hablar
- Comando para quitar de espera
- Comando para recibir mensaje
- Comando para enviar correo
- Comando para enviar mensaje
- Comando para enviar SMS
- Comando de arreglo
- Comando para emitir tono
- Comando para retraso
- Comando para eliminar archivo
- Comando para cada
- Comando para ir a
- Comando para mover archivo
- Comando para rechazar
- Comando para enrutar
- Comando para enviar notificación de alarma
- Comando para enviar mensaje
- Comando para entrada de usuario
- Comando para variable
- Comando para esperar mensaje
- Comando para configuración de llamada
- Comando para salir
- Listar contactos de agenda
- Comando para listar nombres de agenda
- Recibir notificación de alarma