Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

lunes, 29 de junio de 2015

how to diagnose the retrieve conf failed error freepbx

retrieve conf failed error freepbx

cd /var/lib/asterisk/bin


./retrieve_conf

Reset Elastix Web Interface Admin Password


The commands in this article can be used to reset the admin password for the Elastix web interface. This requires that you can log into the server at the console, or via SSH. If you dont have the login details to log into the console, or ssh in, you will need to reset the root password. This requires that you boot up the Linux system in single user mode.
Once you are logged in, or have booted into single user mode, one of the following commands can be used to reset the admin account password for the Elastix web interface.
sqlite3 /var/www/db/acl.db "UPDATE acl_user SET md5_password='`echo -n newpassword|md5sum|cut -d' ' -f1`' WHERE name='admin'"
Replace newpassword with the password you want to use for the admin login.
or to reset the password to “password” you can use the following command:
sqlite3 /var/www/db/acl.db "UPDATE acl_user SET md5_password='5f4dcc3b5aa765d61d8327deb882cf99' WHERE name='admin'"
You should now be able to log into the Elastix web interface using the new password.
For more information on the Elastix Unified Communications server, you can visit the following links:

lunes, 22 de junio de 2015

Hang up if telemarketing music at the start of call

My company is being harassed by telemarketers and I want to block those calls but this company calls from different numbers almost everytime which prevents me from using a 'blacklist'. The only thing in common with all the calls is that a music ad is played as soon as the're picked up.

Postby meneses » Mon Jun 22, 2015 5:02 am

After a while I ended up figuring out something that worked, although with a different approach.

I used the AMD aplication to analyse the audio pattern and determine if it's a machine or a human instead of comparing the start of a call with a pre-recorded sample. 

The following script checks the AMDCAUSE variable set by AMD app and then hangs up if the values are "LONGGREETING-1500-1500" or "MAXWORDS-3-3".

CODE: SELECT ALL

[machine-killer]
exten => s,1,NoOp(## ISAAC ASIMOV'S LAWS DO NOT APPLY ##)
exten => s,n,Answer()
exten => s,n,AMD() 
exten => s,n,NoOp(AMDSTATUS=${AMDSTATUS}${AMDKSTATUS})
exten => s,n,NoOp(AMDCAUSE=${AMDCAUSE})
exten => s,n,ExecIf($["${AMDCAUSE}" == "LONGGREETING-1500-1500" || "${AMDCAUSE}" == "MAXWORDS-3-3"]?HangUp())
exten => s,n,Return()


I realise this script can be improved, so do it if you need 8) 

This blog post had the solution for my need, hope it can useful to someone else: 
https://tatianno.wordpress.com/2014/11/26/bloqueando-chamadas-a-cobrar-em-gateways-sip-fxo/
meneses
Oldsterisk

Posts: 66

lunes, 15 de junio de 2015

Online Dialer






Check IP address

exten => *764,1,Verbose(2, Run CURL to get IP address from whatismyip.org)
    same => n,Answer()
    same => n,Set(MyIPAddressIs=${CURL(http://ifconfig.me/)})
    same => n,SayAlpha(${MyIPAddressIs})
    same => n,Hangup()

sábado, 13 de junio de 2015

Asterisk channels useful command



linux-56xh*CLI> sip show channels
Peer             User/ANR         Call ID          Format           Hold     Last Message    Expiry     Peer
200.42.253.79    100              MzlmZjJlYWIxNWI  0x4 (ulaw)       Yes      Rx: ACK                    100
200.42.253.79    6666             30e0c6d843ebcfd  0x4 (ulaw)       No       Tx: ACK                    6666

domingo, 7 de junio de 2015

Kicking all user from a confbrige Asterisk 13

Usage: confbridge kick <conference> <channel>
       Kicks a channel out of the conference bridge.
             (all to kick everyone, participants to kick non-admins).



Kick all user from a conference named 1010 including admins

asterisk -x "confbridge kick 1010 all "






             (Kick participants to kick non-admins).


asterisk -x "confbridge kick 1010 participants "


 Kicks a channel out of the conference bridge. on Asterisk 11

 asterisk -x "confbridge kick 1111 SIP/101-0000006a"

lunes, 1 de junio de 2015

Vicibox Installation on a VPS vultr

Custom ISO and mount the  ISO through the  download URL

Download link  VICIbox v.6.0 Standard

  http://download.vicidial.com/iso/vicibox/server/Vicibox_v.6.0.x86_64-6.0.3.iso

osi-nstall (custom expert, make Primary Partitions)

vicibox-express (local address=public ipaddress)

restart the server