root@Asterisk-PBX:~# asterisk -x " core show help " | less
! Execute a shell command
ael reload Reload AEL configuration
ael set debug {read|tokens|mac Enable AEL debugging flags
agent logoff Sets an agent offline
agent show Show status of agents
agent show online Show all online agents
agi dump html Dumps a list of AGI commands in HTML format
agi exec Add AGI command to a channel in Async AGI
agi set debug [on|off] Enable/Disable AGI debugging
agi show commands [topic] List AGI commands or specific help
aoc set debug enable cli debugging of AOC messages
:q
(Nos muestra la lista de comando disponibles en Asterisk, si queremos salir solo digitamos la letra q también podemos presionar CTRL+Z).
Si estamos buscando por un comando especifico o una funcion especifica, por ejemplo dahdi. Escribimos "
root@Asterisk-PBX:~# asterisk -x " core show help " | less | grep -i dahdi
dahdi show channel Show information on a channel
dahdi show status Show all DAHDI cards status
dahdi show version Show the DAHDI version in use
transcoder show Display DAHDI transcoder utilization.
root@Asterisk-PBX:~# clear
root@Asterisk-PBX:~# asterisk -x " core show help " | less | grep -i dahdi
dahdi destroy channel Destroy a channel
dahdi restart Fully restart DAHDI channels
dahdi set dnd Sets/resets DND (Do Not Disturb) mode on a channel
dahdi set hwgain Set hardware gain on a channel
dahdi set swgain Set software gain on a channel
dahdi show cadences List cadences
dahdi show channels [group|con Show active DAHDI channels
dahdi show channel Show information on a channel
dahdi show status Show all DAHDI cards status
dahdi show version Show the DAHDI version in use
transcoder show Display DAHDI transcoder utilization.
También desde la consola de Asterisk podemos ejecutar comandos de linux desde la consola de Asterisk:
Asterisk-PBX*CLI> ! asterisk -x " sip show peers" | more
Asterisk-PBX*CLI> ! asterisk -x " sip show peers" | more
Nos muestra todos los comandos disponible para dahdi
Para ver la cantida de llamadas en nuestra central
root@Asterisk-PBX:~# asterisk -x "core show channels" | grep -i "active calls"
2 active calls
Para ver la cantida de llamadas en nuestra central
root@Asterisk-PBX:~# asterisk -x "core show channels" | grep -i "active calls"
2 active calls
Nota estos comandos debemos ejecutarlos desde la consola de Administrador de Linux. no desde la consola de Asterisk
No hay comentarios:
Publicar un comentario