<div dir="ltr"><div>I'm trying to write an application for using after an agent has decided the person on the other end is an answering machine and would like to drop in a message automaticly. When I'm testing this using my own voice as an aswering machine, WaitForSilence works correctly and returns only after a decent delay. But when I hit my real cell phone's voice mail and transfer the call to the auto-message system, WaitForSilence returns after the given delay without waiting for it to finish. I'm thinking this has something to do with the audio level and it not being enough for WaitForSilence to register. But that really makes no sense.</div>
<div> </div>
<div> -- Executing [360445792@dropin:1] Wait("SIP/vitelity-09e4f7c8", "1") in new stack<br> -- AGI Script Executing Application: (PLAYBACK) Options: (beep)<br> -- <SIP/vitelity-09e4b8c8> Playing 'beep' (language 'en')<br>
-- Executing [360445792@dropin:2] WaitForSilence("SIP/vitelity-09e4f7c8", "2500") in new stack<br> -- Waiting 1 time(s) for 2500 ms silence with 0 timeout<br> -- AGI Script Executing Application: (PLAYBACK) Options: (beep)<br>
-- <SIP/vitelity-09e4b8c8> Playing 'beep' (language 'en')<br> -- Exiting with 2500ms silence >= 2500ms required<br> -- Executing [360445792@dropin:3] Playback("SIP/vitelity-09e4f7c8", "recordings/360445792") in new stack<br>
-- <SIP/vitelity-09e4f7c8> Playing 'recordings/360445792' (language 'en')<br> -- AGI Script Executing Application: (PLAYBACK) Options: (beep)<br> -- <SIP/vitelity-09e4b8c8> Playing 'beep' (language 'en')<br>
-- Executing [360445792@dropin:4] Hangup("SIP/vitelity-09e4f7c8", "") in new stack<br></div>
<div> </div>[dropin]<br>exten => _X.,1,Answer()<br>exten => _X.,n,Wait(1)<br>exten => _X.,n,WaitForSilence(2500)<br>exten => _X.,n,Playback(recordings/${EXTEN})<br>exten => _X.,n,Hangup()<br>
<div> </div>
<div>I added the Wait(1) and Answer() just as an added thing, but they shouldn't be needed. Anyone have a suggestion?<br clear="all"><br>-- <br>Nicholas Blasgen<br><a href="mailto:nicholas@blasgen.com">nicholas@blasgen.com</a><br>
408.497.9796 (c) </div></div>