<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Brush Script MT";
        panose-1:3 6 8 2 4 4 6 7 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>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!)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[default]<o:p></o:p></p>
<p class=MsoNormal>exten =>
_9999XXXXXXXXXX,1,Monitor(wav,/var/store/calls/PersonalLine-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(num)}-${EXTEN},mb)
<o:p></o:p></p>
<p class=MsoNormal>exten =>
_9999XXXXXXXXXX,2,dial(${bellbu}/${EXTEN:4},40,rM(screen)) ; without r it seems
to pass a second or two of audio first <o:p></o:p></p>
<p class=MsoNormal>exten => _9999XXXXXXXXXX,4,Hangup ; You can also
substitute this with a Voicemail destination or other alternative destination <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[macro-screen] <o:p></o:p></p>
<p class=MsoNormal>;exten => s,1,Wait(1) <o:p></o:p></p>
<p class=MsoNormal>;exten => s,n,Background(/var/lib/asterisk/sounds/press1)
; substitute a different playback file if you need to <o:p></o:p></p>
<p class=MsoNormal>;exten => s,n,WaitExten(5) ; the value is the Wait time
before we assume the call is not accepted <o:p></o:p></p>
<p class=MsoNormal>;exten => 1,1,NoOp(Caller accepted) ; Do not set
MACRO_RESULT to anything to connect the caller <o:p></o:p></p>
<p class=MsoNormal>;exten => i,1,Set(MACRO_RESULT=CONTINUE) <o:p></o:p></p>
<p class=MsoNormal>;exten => t,1,Set(MACRO_RESULT=CONTINUE) <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>exten => s,1,Wait(1) <o:p></o:p></p>
<p class=MsoNormal>exten =>
s,n,BackgroundDetect(/var/lib/asterisk/sounds/press1) <o:p></o:p></p>
<p class=MsoNormal>exten => s,n,WaitExten(10) ; the value is the Wait time
before we assume the call is not accepted <o:p></o:p></p>
<p class=MsoNormal>exten => 1,1,NoOp(Caller accepted) ; Do not set
MACRO_RESULT to anything to connect the caller <o:p></o:p></p>
<p class=MsoNormal>exten => i,1,Set(MACRO_RESULT=CONTINUE) <o:p></o:p></p>
<p class=MsoNormal>exten => t,1,Set(MACRO_RESULT=CONTINUE) <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>exten => talk,1,NoOp(Caller accepted)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[Inbound]<o:p></o:p></p>
<p class=MsoNormal>exten => 4095551212,1,NoOP() <o:p></o:p></p>
<p class=MsoNormal>exten =>
4095551212,n,Dial(LOCAL/99991112223333&LOCAL/99992223334444,40) <o:p></o:p></p>
<p class=MsoNormal>exten => 4095551212,n,Voicemail(1002@default)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:18.0pt;font-family:"Brush Script MT";
color:#1F497D'>James Shigley<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>