C'est trolldi !
Très technique, mais sujet ayant tendance à attirer les trolls :-D

Mon Lenny n'enregistre plus. Il marche, détecte bien le silence et parle quand 
l'interlocuteur s'arrête de parler.
Le fichier est bien créé dans /tmp/Lenny avec une taille de 44 octets, mais pas 
de voix. Ni celle de Lenny ni celle de la personne.

A la fin de l'appel apparemment il referme bien aussi.
Ca à marché dans le passé, il y a quelqu'un qui a une idée ?

Merci,
Michel.


    -- Goto (ext-miscdests,2,1)
    -- Executing [2@ext-miscdests:1] NoOp("SIP/4958-00000c4a", "MiscDest: 
Lenny") in new stack
    -- Executing [2@ext-miscdests:2] Goto("SIP/4958-00000c4a", 
"from-internal,53669,1") in new stack
    -- Goto (from-internal,53669,1)
    -- Executing [53669@from-internal:1] Answer("SIP/4958-00000c4a", "") in new 
stack
    -- Executing [53669@from-internal:2] Set("SIP/4958-00000c4a", 
"TIMEOUT(absolute)=600") in new stack
    -- Channel will hangup at 2017-02-23 15:13:35.686 PST.
    -- Executing [53669@from-internal:3] Set("SIP/4958-00000c4a", "MACHINE=0") 
in new stack
    -- Executing [53669@from-internal:4] Set("SIP/4958-00000c4a", "OPTION=5") 
in new stack
    -- Executing [53669@from-internal:5] Set("SIP/4958-00000c4a", 
"TALK_DETECTED=0") in new stack
    -- Executing [53669@from-internal:6] Set("SIP/4958-00000c4a", 
"RECORDING=1487891011.152550") in new stack

    -- Executing [53669@from-internal:7] MixMonitor("SIP/4958-00000c4a", 
"/tmp/Lenny/1487891011.152550.wav") in new stack
    -- Executing [53669@from-internal:8] NoOp("SIP/4958-00000c4a", "Recording 
will be available: /tmp/Lenny/1487891011.152550.wav") in new stack

    -- Executing [53669@from-internal:9] Wait("SIP/4958-00000c4a", "3") in new 
stack
  == Begin MixMonitor Recording SIP/4958-00000c4a
    -- Executing [53669@from-internal:10] Playback("SIP/4958-00000c4a", 
"en/privacy-please-stay-on-line-to-be-connected") in new stack
    -- <SIP/4958-00000c4a> Playing 
'en/privacy-please-stay-on-line-to-be-connected.gsm' (language 'en')
    -- Executing [53669@from-internal:11] Wait("SIP/4958-00000c4a", "3") in new 
stack
    -- Executing [53669@from-internal:12] Playback("SIP/4958-00000c4a", 
"en/beep") in new stack
    -- <SIP/4958-00000c4a> Playing 'en/beep.gsm' (language 'en')
    -- Executing [53669@from-internal:13] Playback("SIP/4958-00000c4a", 
"en/this-call-may-be-monitored-or-recorded") in new stack
    -- <SIP/4958-00000c4a> Playing 
'en/this-call-may-be-monitored-or-recorded.gsm' (language 'en')
    -- Executing [53669@from-internal:14] Playback("SIP/4958-00000c4a", 
"en/for-qc-and-training-purposes") in new stack
    -- <SIP/4958-00000c4a> Playing 'en/for-qc-and-training-purposes.gsm' 
(language 'en')
    -- Executing [53669@from-internal:15] Wait("SIP/4958-00000c4a", "1") in new 
stack
    -- Executing [53669@from-internal:16] PlayTones("SIP/4958-00000c4a", 
"ring") in new stack
    -- Executing [53669@from-internal:17] Wait("SIP/4958-00000c4a", "10") in 
new stack
    -- Executing [53669@from-internal:18] StopPlayTones("SIP/4958-00000c4a", 
"") in new stack
    -- Executing [53669@from-internal:19] Gosub("SIP/4958-00000c4a", 
"playit(Lenny01)") in new stack


  == Spawn extension (from-internal, 53669, 46) exited non-zero on 
'SIP/4958-00000c4a'
    -- Executing [h@from-internal:1] Hangup("SIP/4958-00000c4a", "") in new 
stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 
'SIP/4958-00000c4a'
  == MixMonitor close filestream (mixed)
  == End MixMonitor Recording SIP/4958-00000c4a




/etc/asterisk/extensions_custom.conf

;# // BEGIN Lenny Remake
; version 0.3.2 copyright: none claimed. Enjoy!
exten => 53669,1,Answer
exten => 53669,n,Set(TIMEOUT(absolute)=600)
exten => 53669,n,Set(MACHINE=0)
exten => 53669,n,Set(OPTION=5)
exten => 53669,n,Set(TALK_DETECTED=0)
exten => 53669,n,Set(RECORDING=${UNIQUEID})

exten => 53669,n,MixMonitor(/tmp/Lenny/${RECORDING}.wav)
exten => 53669,n,NoOp(Recording will be available: /tmp/Lenny/${RECORDING}.wav)

exten => 53669,n,Wait(3)
exten => 53669,n,Playback(en/privacy-please-stay-on-line-to-be-connected)
exten => 53669,n,Wait(3)
exten => 53669,n,Playback(en/beep)
exten => 53669,n,Playback(en/this-call-may-be-monitored-or-recorded)
exten => 53669,n,Playback(en/for-qc-and-training-purposes)
exten => 53669,n,Wait(1)
exten => 53669,n,PlayTones(ring)
exten => 53669,n,Wait(10)
exten => 53669,n,StopPlayTones

exten => 53669,n,Gosub(playit(Lenny01))
exten => 53669,n,Gosub(playit(Lenny02))
exten => 53669,n,Gosub(playitonce(Lenny03))
exten => 53669,n,Gosub(playitonce(Lenny04))
exten => 53669,n,Gosub(playitonce(Lenny05))
exten => 53669,n,Gosub(playitonce(Lenny06))
exten => 53669,n,Gosub(playitonce(Lenny07))
exten => 53669,n,Gosub(playitonce(Lenny08))
exten => 53669,n,Gosub(playitonce(Lenny09))
exten => 53669,n,Gosub(playitonce(Lenny10))
exten => 53669,n,Gosub(playitonce(Lenny11))
exten => 53669,n,Gosub(playitonce(Lenny12))
exten => 53669,n,Gosub(playitonce(Lenny13))
exten => 53669,n,Gosub(playitonce(Lenny14))
exten => 53669,n,Gosub(playitonce(Lenny15))
exten => 53669,n,Gosub(playitonce(Lenny02))
exten => 53669,n,Gosub(playitonce(Lenny03))
exten => 53669,n,Gosub(playitonce(Lenny06))
exten => 53669,n,Gosub(playitonce(Lenny08))
exten => 53669,n,Gosub(playitonce(Lenny09))
exten => 53669,n,Gosub(playitonce(Lenny10))
exten => 53669,n,Gosub(playitonce(Lenny14))
exten => 53669,n,Playback(en/tt-monkeys)
exten => 53669,n,Hangup

exten => 53669,n(playit),NoOp(Lenny speaks and repeats until reponse)
exten => 53669,n,Set(LOCAL(lennyclip)=${ARG1})
exten => 53669,n(oncemo),Set(TALK_DETECTED=0)
exten => 53669,n,Background(lenny/${lennyclip})
exten => 53669,n,AMD(2500,1500,800,5000,100,50,3,256)
exten => 53669,n,NoOp(${AMDCAUSE})
exten => 53669,n,GotoIf($["${AMDCAUSE:0:17}"="INITIALSILENCE-25"]?reststop)
exten => 53669,n(mach),WaitForSilence(700,3)
exten => 53669,n,Goto(humn)
exten => 53669,n(reststop),WaitForSilence(800,2)
exten => 53669,n,Goto(oncemo)
exten => 53669,n(humn),Return

exten => 53669,n(playitonce),NoOp(Lenny speaks once)
exten => 53669,n,Set(LOCAL(lennyclip)=${ARG1})
exten => 53669,n(noresponse),Background(lenny/${lennyclip})
exten => 53669,n,AMD(2500,1500,800,5000,100,50,3,256)
exten => 53669,n,NoOp(${AMDCAUSE})
;exten => 53669,n,GotoIf($["${AMDCAUSE}"="INITIALSILENCE-2500-2500"]?noresponse)
;exten => 53669,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn2:mach2)
exten => 53669,n(mach2),WaitForSilence(2000,1)
exten => 53669,n(humn2),Return

exten => 536691,1,NoOp(Rerouting inbound call...)
;exten => 536691,n,Flite("After the beep, enter extension or press pound for 
Lenny.")
;exten => 536691,n,Read(SENDTO,beep,7)
;exten => 536691,n,GotoIf($["foo${SENDTO}" = "foo"]?5:6)
exten => 536691,n,Set(SENDTO=53669)
exten => 536691,n,System(echo "Channel: local/${SENDTO}@from-internal" > 
/tmp/lenny.call)
exten => 536691,n,System(echo "MaxRetries: 0" >> /tmp/lenny.call)
exten => 536691,n,System(echo "RetryTime: 3" >> /tmp/lenny.call)
exten => 536691,n,System(echo "WaitTime: 30" >> /tmp/lenny.call)
exten => 536691,n,System(echo "Context: bridgit" >> /tmp/lenny.call)
exten => 536691,n,System(echo "Extension: 4" >> /tmp/lenny.call)
exten => 536691,n,System(echo "Priority: 1" >> /tmp/lenny.call)
exten => 536691,n,System(mv /tmp/lenny.call /var/spool/asterisk/outgoing)
;# // END Lenny Remake


[bridgit]
exten => 4,1,Pickup(701@from-internal)
exten => 4,2,Pickup(777@from-internal)

TSI Disclaimer:  This message and any files or text attached to it are intended 
only for the recipients named above and contain information that may be 
confidential or privileged. If you are not the intended recipient, you must not 
forward, copy, use or otherwise disclose this communication or the information 
contained herein. In the event you have received this message in error, please 
notify the sender immediately by replying to this message, and then delete all 
copies of it from your system. Thank you!...


---------------------------
Liste de diffusion du FRnOG
http://www.frnog.org/

Répondre à