[AsteriskBrasil] Problema AMD

Roberto Carlos Batatinha batatinharc em gmail.com
Terça Março 3 17:38:54 BRT 2015


Pessoal, boa tarde!

Estou tentando configurar o AMD, porém sem sucesso... recebo sempre MACHINE.

Tenho dois ambientes, a mesma configuração, porém dois resultados
diferentes:

O teste eu faço ligando para 0800 e digo Alô.

Ambiente 1:
Recedo mesmo falando Alô:
ANSWERING MACHINE: silenceDuration:3500 initialSilence:3500

Ambiente 2:
Recebo:
Word detected. iWordsCount:1
Detected Talk, previous silence duration: 80
ANSWERING MACHINE: voiceDuration:1500 greeting:1500


amd.conf
[general]
initial_silence = 3500          ; Maximum silence duration before the
greeting.
                                ; If exceeded then MACHINE.
greeting = 1500                ; 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 = 5000     ; Maximum time allowed for the algorithm to
decide
                                ; on a HUMAN or MACHINE
min_word_length = 100           ; Minimum duration of Voice to considered
as a word
between_words_silence = 50     ; 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
silence_threshold = 256

Teste:
  0800 => {
    Answer;
    AMD;
    Verbose(1, AMDSTATUS: ${AMDSTATUS});
    Verbose(1, AMDCAUSE: ${AMDCAUSE});

    GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach);

    mach:
    WaitForSilence(2500,2,16);
    Verbose(1,Machine identificado: ${WAITSTATUS} );
    HangUp();

    humn:
    WaitForSilence(500,2,16);
    Verbose(1,Humano identificado: ${WAITSTATUS} );
    HangUp();
  }
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20150303/257a0c6d/attachment.html>


Mais detalhes sobre a lista de discussão AsteriskBrasil