Hi,
I'd try to change somethings about my asterisk configuration.
I think, it's near OK !
AMD (Asterisk Machine detect) is right but it's detect if the caller is machine 
or not.
I'd like to detect the called. for example to detect if my called answers me or 
if it's his answering machine phone.
Here is my extensions.conf code :
[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/0682416304@ippi_outgoing2,40,m(Attente))
exten => 1,4,Voicemail(801@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()

In asterisk cli  :
If I'm calling mobile phone, I'm talking when it's ringing and AMD detects me 
like "MACHINE" OR Not sure. If I'm saying just one word, AMD detects me like 
human.
I'd like it doesn't detect me but my called.

Please help me !
Sorry for my bad english...

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

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

CONTACT
- E-mail : manuli...@manu-dpk.net
- Messenger (WLM) : m...@manu-dpk.net
- Skype : manu-dpk



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


  PS : Pour le respect de l'environnnement, n'imprimez ce mail qu'en cas de 
nécessité. 
----- Original Message ----- 
  From: Aurimas Skirgaila 
  To: Etann ; Asterisk Users Mailing List - Non-Commercial Discussion 
  Sent: Friday, February 03, 2012 8:36 AM
  Subject: Re: [asterisk-users] amd detect answering machine


  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 <manuli...@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@ippi_outgoing2,40,r)
    exten => 1,4,Voicemail(801@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 : manuli...@manu-dpk.net
    - Messenger (WLM) : m...@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
--
_____________________________________________________________________
-- 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

Reply via email to