It sounds like you may want to use the READ command instead.  This lets you hard-set the number of digits to expect and then sets a variable which you can use later in the dialplan.  Generally you use the background command to let them dial an extension or automated attendant option.  Playback plays without the option to interrupt it.<div>
<br></div><div><br><div class="gmail_quote">On Mon, Nov 21, 2011 at 10:50 AM, Edward de Jong <span dir="ltr">&lt;<a href="mailto:edward.dejong@voicecarrier.com">edward.dejong@voicecarrier.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
In the dial plan language of asterisk, what is the difference between prompting the user with a Playback() command vs. a Background() command? I want in a part of my dial plan to ask the user a prompt, and wait for 4 digits to be typed in. I don&#39;t want the user to have to end the string with a pound or something, just wait 2 seconds after they stop typing. ANd I do want the prompt to be interruptible if the user is fast and knows already what to do…<br>

<br>
I need to do some tests on the number they entered. If i use background(), and say the prompt, and then follow with a WAIT command, how do i reference the number they just typed in? does asterisk set the ${EXTEN} variable when the user types something?<br>

<br>
What I find maddening about the asterisk documentation is a lack of clarity on the sequence of things, and what variables get set when?<br>
<font color="#888888"><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Carlos Alvarez</div><div>TelEvolve</div><div>602-889-3003</div><div><br></div><br>
</div>