[AsteriskBrasil] Problemas com amd.conf

Renato Mello rmello007 em gmail.com
Sábado Setembro 17 10:48:54 BRT 2016


Bom dia!

Estou com um problema na configuração do amd.conf.
preciso bloquear as mensagens de saldo da operadora claro, tenho uma
configuração que funciona só que estou perdendo muitas chamadas mais de 50%.

segue meus modelos.

  extensions.conf

exten => _XX.,1,Progress()
exten => _XX.,n,Noop(CHAMADA CLARO)
exten => _XX.,n,Noop(NUMERO DISCADO: ${EXTEN})
exten => _XX.,n,Dial(DGV/g4/021${EXTEN:6},60,M(atende,${CHANNEL})S(900))
exten => _XX.,n,noop(STATUS ${HANGUPCAUSE},${DIALSTATUS})
exten => _XX.,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?nao_atende:)
exten => _XX.,n,HangUp(34)
exten => _XX.,n(nao_atende),Hangup(19)
;--------------------------------------------------------------------------
;Regra que desliga a chamada se for atendimento de maquina
exten => _100,1,Hangup(19)
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[macro-atende]
exten =>
s,1,MixMonitor(${CALLERID(num)}_${STRFTIME(${EPOCH},,%d%m%Y_%H:%M:%S$
exten => s,1,AMD
exten => s,n,Noop(STATUS: ${AMDSTATUS} / NUM_B: ${CALLERID(num)})
exten => s,n,GoToIf($["${AMDSTATUS}" = "HUMAN"]?macro-atende,s,10)
exten => s,n,GoToIf($["${AMDSTATUS}" = "NOTSURE"]?macro-atende,s,10)
exten => s,n,ChannelRedirect(${ARG1},from-pstn,100,1)

amd.conf

; Answering Machine Detection Configuration
;

[general]
initial_silence = 3000          ; Maximum silence duration before the
greeting.
                                ; If exceeded then MACHINE.
greeting = 750                  ; Maximum length of a greeting. If exceeded
then MACHINE.
after_greeting_silence = 1000   ; Silence after detecting a greeting.
                                ; If exceeded then HUMAN
total_analysis_time = 3000      ; Maximum time allowed for the algorithm to
decide
                                ; on a HUMAN or MACHINE
min_word_length = 210           ; Minimum duration of Voice to considered
as a word
between_words_silence = 30      ; Minimum duration of silence after a word
to consider
                                ; the audio what follows as a new word
maximum_number_of_words = 3     ; Maximum number of words in the greeting.
                                ; If exceeded then MACHINE
maximum_word_length = 3000  ; Maximum duration of a single Voice utterance
allowed.
silence_threshold = 256

Obrigado pela atenção de todos!
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20160917/6d36d055/attachment.html>


Mais detalhes sobre a lista de discussão AsteriskBrasil