[asterisk-users] amd detect answering machine

Etann manuliste at manu-dpk.net
Thu Feb 2 09:51:07 CST 2012


Hi,
I have IVR and when I press 1, asterisk calls my mobile phone.
If my mobile phone is offline, asterisk transfers to asterisk voicemail.
I'd like asterisk detects my mobile voicemail and if my mobile voicemail answers, asterisk transfers to asterisk voicemail.
For that, I used AMD.
So I have problems ! Asterisk detects answering machine everytime!
How do I do please ?


extensions.conf
[ServeurPro]
exten => s,1,Ringing() 
exten => s,2,Wait(2)
exten => s,3,Answer()  
exten => s,4,Set(NbInvalide=0)
exten => s,5,Set(NbEssai=0)
exten => s,6,background(${ChmAudio}/ServeurProBienvenu)
exten => s,7,WaitExten(2)

exten => 1,1,AMD()
exten => 1,2,GotoIf($["${AMDSTATUS}"="MACHINE"]?1,4)
exten => 1,3,Dial(SIP/xxxxxxxx at ippi_outgoing2,40,r)
exten => 1,4,Voicemail(801 at FloriePro,us)
exten => i,1,Set(NbInvalide=$[${NbInvalide}+1]})
exten => i,2,Gotoif($["${NbInvalide}" < "3"]?:6)
exten => i,3,Playback(${ChmAudio}/ErreurSaisie) 
exten => i,4,Playback(${ChmAudio}/RetourMenu) 
exten => i,5,Goto(s,6)
exten => i,6,Playback(${ChmAudio}/ErreurSaisie)
exten => i,7,Playback(${ChmAudio}/Aurevoir)
exten => i,8,Hangup()
exten => t,1,Set(NbEssai=$[${NbEssai}+1])
exten => t,2,Gotoif($["${NbEssai}" < "3"]?:5)
exten => t,3,Playback(${ChmAudio}/DemandeIncomprise) 
exten => t,4,Goto(s,6)
exten => t,5,PlayBack(${ChmAudio}/Aurevoir)
exten => t,6,Hangup()
exten => h,1,noOp("Statut AMD : "${AMDSTATUS})


amd.conf
[general]
initial_silence = 2500  ; Maximum silence duration before the greeting.
    ; If exceeded then MACHINE.
greeting = 1500   ; Maximum length of a greeting. If exceeded then MACHINE.
after_greeting_silence = 500 ; 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 = 120  ; 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

Thank you for your reply and for help!

--------------------------------------------------------------------------------
 
AMICALEMENT
Manu

SITES WEBS
Mon site web Officiel (Manu-dpk.net)
Ecoutez Radio DPK

CONTACT
- E-mail : manuliste at manu-dpk.net
- Messenger (WLM) : msn at manu-dpk.net
- Skype : manu-dpk



--------------------------------------------------------------------------------


  PS : Pour le respect de l'environnnement, n'imprimez ce mail qu'en cas de nécessité. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120202/704dd8be/attachment.htm>


More information about the asterisk-users mailing list