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, 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".


exten => s,1,NoOp(## ISAAC ASIMOV'S LAWS DO NOT APPLY ##)
exten => s,n,Answer()
exten => s,n,AMD() 
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:

Posts: 66

No hay comentarios:

Publicar un comentario