<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 06/11/2013 04:39 PM, Richard Mudgett wrote:<br>
    <blockquote
cite="mid:CALD46g2xLH0tZp7z9JbR+EjKLhS-WHM7D-DM7P=hTf7PWcR=mA@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Tue, Jun 11, 2013 at 9:29 AM,
            Jonas Kellens <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:jonas.kellens@telenet.be" target="_blank">jonas.kellens@telenet.be</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div class="im"> On 06/11/2013 04:12 PM, Matthew J. Roth
                  wrote:<br>
                  <blockquote type="cite">
                    <pre>Jonas Kellens wrote:
</pre>
                    <blockquote type="cite">
                      <pre>I notice that it takes 4 to 6 seconds between someone pressing a cipher and
Asterisk continuing inside the dialplan. How come ???

...

Why doesn't Asterisk continue immediately inside the dialplan after having
</pre>
                    </blockquote>
                  </blockquote>
                </div>
              </div>
            </blockquote>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div class="im">
                  <blockquote type="cite">
                    <blockquote type="cite">
                      <pre>received the DTMF-input ?
</pre>
                    </blockquote>
                  </blockquote>
                </div>
              </div>
            </blockquote>
            <div>&lt;snip&gt; <br>
            </div>
            <div><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"><font
                  face="Helvetica, Arial, sans-serif"> Dialplan :<br>
                  <br>
                  exten =&gt; ivr,1,NoOp()<br>
                  exten =&gt;
ivr,n(restartprompt),Background(/var/lib/asterisk/sounds/vprompts/${KNUMMER}/${ASTPROMPT})<br>
                  exten =&gt; ivr,n,NoOp(${BACKGROUNDSTATUS})<br>
                  exten =&gt; ivr,n,WaitExten(15)<br>
                  exten =&gt; ivr,n,GoTo(restartprompt)<br>
                  <br>
                  exten =&gt; _X,1,Set(choice=${EXTEN})<br>
                  exten =&gt; _X,n,System(echo
                  "'${klantID}','IVR','${choice}','','${CHANNEL:4}','$(date
                  +%s)'" &gt;&gt;
                  /var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
                  exten =&gt; _X,n,other_stuff_I_do<br>
                  <br>
                  exten =&gt; _X.,1,Set(choice=${EXTEN})<br>
                  exten =&gt; _X.,n,System(echo
                  "'${klantID}','IVR','${keuzeID}','','${CHANNEL:4}','$(date
                  +%s)'" &gt;&gt;
                  /var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
                  exten =&gt; _X.,n,other_stuff_I_do</font></div>
            </blockquote>
            <div><br>
            </div>
            <div>It is waiting for more digits because you have asked it
              for a possible multi-digit exten and it needs to
              distinguish between the _X and _X. patterns.<br>
              <br>
            </div>
            <div>Richard<br>
            </div>
          </div>
        </div>
      </div>
      <br>
    </blockquote>
    <font face="Helvetica, Arial, sans-serif"><br>
      Ok thanks.<br>
      <br>
      Any idea how I can resolve this ?<br>
      <br>
      Even if there *can* be more than 1 digit, in case there is only 1
      digit it should go faster.<br>
      <br>
      <br>
      Could this dialplan logic be a good solution :<br>
      <br>
      [my-context]<br>
      exten =&gt; ivr,1,NoOp()<br>
      exten =&gt;
ivr,n(restartprompt),Background(/var/lib/asterisk/sounds/vprompts/${KNUMMER}/${ASTPROMPT})<br>
      exten =&gt; ivr,n,NoOp(${BACKGROUNDSTATUS})<br>
      exten =&gt; ivr,n,WaitExten(15)<br>
      exten =&gt; ivr,n,GoTo(restartprompt)<br>
      <br>
      exten =&gt; _X,1,Set(choice=${EXTEN})<br>
      exten =&gt; _X,n,System(echo
      "'${klantID}','IVR','${choice}','','${CHANNEL:4}','$(date +%s)'"
      &gt;&gt; /var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
      exten =&gt; _X,n,other_stuff_I_do<br>
      <br>
      exten =&gt; ivradvanced,1,NoOp()<br>
      exten =&gt; ivradvanced,n(restartprompt),Background(/var/lib/asterisk/sounds/vprompts/${KNUMMER}/${ASTPROMPT})<br>
      exten =&gt; ivradvanced,n,NoOp(${BACKGROUNDSTATUS})<br>
      exten =&gt; ivradvanced,n,WaitExten(15)<br>
      exten =&gt; ivradvanced,n,GoTo(restartprompt)<br>
      <br>
      exten =&gt; _X.,1,Set(choice=${EXTEN})<br>
      exten =&gt; _X.,n,System(echo
      "'${klantID}','IVR','${keuzeID}','','${CHANNEL:4}','$(date +%s)'"
      &gt;&gt; /var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
      exten =&gt; _X.,n,other_stuff_I_do<br>
      <br>
      [another-context]<br>
      ...<br>
      ...<br>
      <br>
      <br>
      <br>
      Kind regards,<br>
      <br>
      Jonas.<br>
      <br>
    </font><br>
  </body>
</html>