Entradas

Mostrando las entradas de febrero, 2015

Mover las llamadas de forma automatica

Para ordenar las llamadas de forma automática cada día se requieren los siguientes scripts: #!/bin/bash #crear carpeta mensual, archivo crear_carpeta_mes.sh _mes=$(date +"%B") _carpeta="/var/spool/asterisk/monitor/2015/$_mes" mkdir "$_carpeta" Luego se crea la carpeta diaria: #mover grabaciones diarias, archivo: mover_diario.sh #!/bin/bash _mes=$(date +"%B") _mesc=$(date +"%m") _hoy=$(date +"%d") _carpeta="/var/spool/asterisk/monitor/2015/$_mes/$_hoy" mkdir "$_carpeta" mv /var/spool/asterisk/monitor/q????-2015$_mesc$_hoy*.gsm $_carpeta mv /var/spool/asterisk/monitor/OUT????-2015$_mesc$_hoy*.gsm $_carpeta mv /var/spool/asterisk/monitor/IN????-2015$_mesc$_hoy*.gsm $_carpeta luego se modifica el archivo cron: crontab -e #Se agregan: 29 22 1 * * usuario /carpeta/destino/crear_carpeta_mes.sh 30 22 * * * usuario /carpeta/destino/mover_diario.sh y listo, para ver todas las tareas se usa: "crontab -l"

Error 0xc0000006 al reactivar una maquina virtual (VMWare)

Para solucionar el error: VMWare Workstation unrecoverable error: (vmx) Exception 0xc0000006 (disk error while paging) has occurred. This virtual machine appears to be in use. If this virtual machine is not in use, press the "Take Ownership" button to obtain ownership of it. Otherwise press the "Cancel" button to avoid damaging it. Se tiene que elimiar los archivos .lck y .vmss de la carpeta donde se encuentran los archivos de la VM normalmente en el usuario\Documents\virtual Machines\Nombre dela VM\ Referencia: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2032746

Comandos Asterisk CLI 1.6

he Asterisk command line interface (CLI) is reached by using the Linux shell command asterisk -r If you want debugging output, add one or many v_:s asterisk -vvvvvr The Asterisk server has to be running in the background for the CLI to start. If you want to run a CLI command in a shell script, use the x option asterisk -rx "logger reload" For help in the CLI mode, use the core show help {command} command. To get help on various applications you can use in the extensions.conf config file, use the show applications command. This list current as of build 1.6.2.19: General/Misc Commands !<command> : Execute a shell command ael reload : Reload AEL configuration ael set debug {read|tokens|mac} : Enable AEL debugging flags 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 cdr show s...

Colgar llamadas desde CLI (asterisk)

para colgar una llamada desde el CLI, primero debemos identificar el canal a colgar con core show channels despues con el comando: core request hangup SIP/1111-00000046b o para colgar todas las llamadas: channel request hangup all