Hi,
do noop(${AMDCAUSE}) after exten => 1,1,AMD() , run some test calls and
find out why the call was detected as Answering Machine and adjust amd.conf
accordingly. if I recall correctly, you can also see the AMD flow in
Asterisk in verbose mode.
I'd suspect low silence_threshold . I usually set it 384, but it's
very dependent on carrier.
On Thu, Feb 2, 2012 at 5:51 PM, Etann <manuliste at manu-dpk.net> wrote:
> **
> 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) <http://www.manu-dpk.net/>
> Ecoutez Radio DPK <http://webradio.manu-dpk.net/?page=Radio>
>
> 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?.
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Mvh,
Aurimas Skirgaila
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20120203/8e8ca6f8/attachment.htm>