Ok so a while back I found an example for having a number dial multiple numbers and then whoever answers and confirms gets the call. (don't recall who the example was from, but thank you!) But Now today I've been playing with TTS and STT and came across the BackgroundDetect command. Now If I use this allow it works fine. But when I try and use it with this it never actually detects me talking - or if it does it doesn't connect the caller so that the Wait time expires and it goes on. So my question is how can I make this work to where you can talk and it will connect you to the caller or press 1. Not now where you just press 1. Which a lot of the time I can't get my phone out of my pocket, unlocked, and press 1 before it is sent to VM [default] exten => _9999XXXXXXXXXX,1,Monitor(wav,/var/store/calls/PersonalLine-${STRFTIME($ {EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(num)}-${EXTEN},mb) exten => _9999XXXXXXXXXX,2,dial(${bellbu}/${EXTEN:4},40,rM(screen)) ; without r it seems to pass a second or two of audio first exten => _9999XXXXXXXXXX,4,Hangup ; You can also substitute this with a Voicemail destination or other alternative destination [macro-screen] ;exten => s,1,Wait(1) ;exten => s,n,Background(/var/lib/asterisk/sounds/press1) ; substitute a different playback file if you need to ;exten => s,n,WaitExten(5) ; the value is the Wait time before we assume the call is not accepted ;exten => 1,1,NoOp(Caller accepted) ; Do not set MACRO_RESULT to anything to connect the caller ;exten => i,1,Set(MACRO_RESULT=CONTINUE) ;exten => t,1,Set(MACRO_RESULT=CONTINUE) exten => s,1,Wait(1) exten => s,n,BackgroundDetect(/var/lib/asterisk/sounds/press1) exten => s,n,WaitExten(10) ; the value is the Wait time before we assume the call is not accepted exten => 1,1,NoOp(Caller accepted) ; Do not set MACRO_RESULT to anything to connect the caller exten => i,1,Set(MACRO_RESULT=CONTINUE) exten => t,1,Set(MACRO_RESULT=CONTINUE) exten => talk,1,NoOp(Caller accepted) [Inbound] exten => 4095551212,1,NoOP() exten => 4095551212,n,Dial(LOCAL/99991112223333&LOCAL/99992223334444,40) exten => 4095551212,n,Voicemail(1002 at default) James Shigley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100224/dd81102a/attachment.htm