AMI Commands List

AMI es la interface que tiene disponible Asterisk para permitir la integración con sistemas externos.

En esta ocasión te dejo el listado completo en Asterisk 18 de comandos disponibles para interactuar con tu PBX

AbsoluteTimeout Set absolute timeout.
AGI Add an AGI command to execute by
AOCMessage Generate an Advice of Charge mess
Atxfer Attended transfer.
BlindTransfer Blind transfer channel(s) to the
Bridge Bridge two channels already in th
BridgeDestroy Destroy a bridge.
BridgeInfo Get information about a bridge.
BridgeKick Kick a channel from a bridge.
BridgeList Get a list of bridges in the syst
BridgeTechnologyList List available bridging technolog
BridgeTechnologySuspend Suspend a bridging technology.
BridgeTechnologyUnsuspend Unsuspend a bridging technology.
CancelAtxfer Cancel an attended transfer.
Challenge Generate Challenge for MD5 Auth.
ChangeMonitor Change monitoring filename of a c
Command Execute Asterisk CLI Command.
ConfbridgeKick Kick a Confbridge user.
ConfbridgeList List participants in a conference
ConfbridgeListRooms List active conferences.
ConfbridgeLock Lock a Confbridge conference.
ConfbridgeMute Mute a Confbridge user.
ConfbridgeSetSingleVideoSrc Set a conference user as the sing
ConfbridgeStartRecord Start recording a Confbridge conf
ConfbridgeStopRecord Stop recording a Confbridge confe
ConfbridgeUnlock Unlock a Confbridge conference.
ConfbridgeUnmute Unmute a Confbridge user.
ControlPlayback Control the playback of a file be
CoreSettings Show PBX core settings (version e
CoreShowChannels List currently active channels.
CoreStatus Show PBX core status variables.
CreateConfig Creates an empty file in the conf
DAHDIDialOffhook Dial over DAHDI channel while off
DAHDIDNDoff Toggle DAHDI channel Do Not Distu
DAHDIDNDon Toggle DAHDI channel Do Not Distu
DAHDIHangup Hangup DAHDI Channel.
DAHDIRestart Fully Restart DAHDI channels (ter
DAHDIShowChannels Show status of DAHDI channels.
DAHDITransfer Transfer DAHDI Channel.
DBDel Delete DB entry.
DBDelTree Delete DB Tree.
DBGet Get DB Entry.
DBGetTree Get DB entries, optionally at a p
DBPut Put DB entry.
DeviceStateList List the current known device sta
DialplanExtensionAdd Add an extension to the dialplan
DialplanExtensionRemove Remove an extension from the dial
Events Control Event Flow.
ExtensionState Check Extension Status.
ExtensionStateList List the current known extension
FAXSession Responds with a detailed descript
FAXSessions Lists active FAX sessions
FAXStats Responds with fax statistics
Filter Dynamically add filters for the c
G729LicenseList G.729 License List
G729LicenseStatus G.729 License Status
GetConfig Retrieve configuration.
GetConfigJSON Retrieve configuration (JSON form
Getvar Gets a channel variable or functi
Hangup Hangup channel.
IAXnetstats Show IAX Netstats.
IAXpeerlist List IAX Peers.
IAXpeers List IAX peers.
IAXregistry Show IAX registrations.
ListCategories List categories in configuration
ListCommands List available manager commands.
LocalOptimizeAway Optimize away a local channel whe
LoggerRotate Reload and rotate the Asterisk lo
Login Login Manager.
Logoff Logoff Manager.
MailboxCount Check Mailbox Message Count.
MailboxStatus Check mailbox.
MeetmeList List participants in a conference
MeetmeListRooms List active conferences.
MeetmeMute Mute a Meetme user.
MeetmeUnmute Unmute a Meetme user.
MessageSend Send an out of call message to an
MessageSendInfo
MixMonitor Record a call and mix the audio d
MixMonitorMute Mute / unMute a Mixmonitor record
ModuleCheck Check if module is loaded.
ModuleLoad Module management.
Monitor Monitor a channel.
MuteAudio Mute an audio stream.
Originate Originate a call.
Park Park a channel.
ParkedCalls List parked calls.
Parkinglots Get a list of parking lots
PauseMonitor Pause monitoring of a channel.
Ping Keepalive command.
PJSIPCallIDToChannel
PJSIPNotify Send a NOTIFY to either an endpoi
PJSIPQualify Qualify a chan_pjsip endpoint.
PJSIPRegister Register an outbound registration
PJSIPShowAors Lists PJSIP AORs.
PJSIPShowAuths Lists PJSIP Auths.
PJSIPShowContacts Lists PJSIP Contacts.
PJSIPShowEndpoint Detail listing of an endpoint and
PJSIPShowEndpoints Lists PJSIP endpoints.
PJSIPShowRegistrationInboundContactStatuses Lists ContactStatuses for PJSIP i
PJSIPShowRegistrationsInbound Lists PJSIP inbound registrations
PJSIPShowRegistrationsOutbound Lists PJSIP outbound registration
PJSIPShowResourceLists Displays settings for configured
PJSIPShowSubscriptionsInbound Lists subscriptions.
PJSIPShowSubscriptionsOutbound Lists subscriptions.
PJSIPUnregister Unregister an outbound registrati
PlayDTMF Play DTMF signal on a specific ch
PlayMF Play MF digit on a specific chann
PresenceState Check Presence State
PresenceStateList List the current known presence s
PRIDebugFileSet Set the file used for PRI debug m
PRIDebugFileUnset Disables file output for PRI debu
PRIDebugSet Set PRI debug levels for a span
PRIShowSpans Show status of PRI spans.
QueueAdd Add interface to queue.
QueueChangePriorityCaller Change priority of a caller on qu
QueueLog Adds custom entry in queue_log.
QueueMemberRingInUse Set the ringinuse value for a que
QueuePause Makes a queue member temporarily
QueuePenalty Set the penalty for a queue membe
QueueReload Reload a queue, queues, or any su
QueueRemove Remove interface from queue.
QueueReset Reset queue statistics.
QueueRule Queue Rules.
QueueStatus Show queue status.
QueueSummary Show queue summary.
QueueWithdrawCaller Request to withdraw a caller from
Redirect Redirect (transfer) a call.
Reload Send a reload event.
SendText Sends a text message to channel.
Setvar Sets a channel variable or functi
ShowDialPlan Show dialplan contexts and extens
SorceryMemoryCacheExpire Expire (remove) ALL objects from
SorceryMemoryCacheExpireObject Expire (remove) an object from a
SorceryMemoryCachePopulate Expire all objects from a memory
SorceryMemoryCacheStale Marks ALL objects in a sorcery me
SorceryMemoryCacheStaleObject Mark an object in a sorcery memor
Status List channel status.
StopMixMonitor Stop recording a call through Mix
StopMonitor Stop monitoring a channel.
UnpauseMonitor Unpause monitoring of a channel.
UpdateConfig Update basic configuration.
UserEvent Send an arbitrary event.
VoicemailRefresh Tell Asterisk to poll mailboxes f
VoicemailUsersList List All Voicemail User Informati
VoicemailUserStatus Show the status of given voicemai
WaitEvent Wait for an event to occur.

mover tu wsl a otro disco

Desde que apareció WSL en Windows ya no tuve la necesidad de tener que tener una VM con alguna distro de Linux.

Si no sabes lo que es WSL (Windows Subsystem for linux) aquí te dejo la documentación oficial Instalación de WSL | Microsoft Learn

Pero en pocas palabras es la capacidad que tiene Windows (desde win 10) de exponer el acceso al procesador a través de una capa controlada, pudiendo tener otro mini sistema operativo corriendo a la par. A diferencia de la emulación, aquí lo que se intenta es que ambas sistemas operativos puedan acceder al procesado, y ahorrar recursos sobre todo.

En mi caso, para acceder a servidores y programar, suele tener dos distros:

  • Ubuntu 22.04 (WSL 2)
  • Debian (WSL)

Ambos con dos versiones diferentes de WSL. Esto es debido a que el performance del disco en la versión 2 de WSL, se vio afectada, y por otro lado hay problemas de compatibilidad, aún con la versión dos.

El espacio destinado a cada una es de unas 10gigas, y aveces resulta cómodo tenerlas en algún disco diferente. Por ello hoy veremos el proceso para mover las mismas a otra ubicación.

Listar las distro instaladas:

wsl --list -v

Con este simple comando podrás ver que distro tienes disponibles y que versión son.

Detener la distro a mover.

En mi caso la de Debian

wsl -t Debian

Exportar la distro

wsl --export Debian "D:\WSL\debian.tar"

Esta parte demora unos minutos dependiende del tamaña de tu distro. En mi caso la voy a mover al disco D:, a una carpeta denominada WSL

Desregistrar la distro

wsl --unregister Debian

Actualizamos el registro, eliminando distro actual, y luego volviendo a crear pero con la nueva ubicación

Importar la distro

wsl --import Debian "D:\WSL\Debian" "D:\WSL\debian.tar"

Ya estamos llegando a su fin. Aquí solamente le decimos que queremos importar nuestro distro, indicando el nombre de la misma, la ubicación en donde va a quedar, y el donde en donde esta el backup.

Vale aclarar que con este proceso no pierdes nada de lo que tengas en tu distro, como así también el perfil que tengas en tu terminal ya configurado.

Espero que te sea útil. En mi caso no demoró mas de 5 min todo el proceso.