<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"><<a moz-do-not-send="true"
href="mailto:jonas.kellens@telenet.be" target="_blank">jonas.kellens@telenet.be</a>></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><snip> <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 => ivr,1,NoOp()<br>
exten =>
ivr,n(restartprompt),Background(/var/lib/asterisk/sounds/vprompts/${KNUMMER}/${ASTPROMPT})<br>
exten => ivr,n,NoOp(${BACKGROUNDSTATUS})<br>
exten => ivr,n,WaitExten(15)<br>
exten => ivr,n,GoTo(restartprompt)<br>
<br>
exten => _X,1,Set(choice=${EXTEN})<br>
exten => _X,n,System(echo
"'${klantID}','IVR','${choice}','','${CHANNEL:4}','$(date
+%s)'" >>
/var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
exten => _X,n,other_stuff_I_do<br>
<br>
exten => _X.,1,Set(choice=${EXTEN})<br>
exten => _X.,n,System(echo
"'${klantID}','IVR','${keuzeID}','','${CHANNEL:4}','$(date
+%s)'" >>
/var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
exten => _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 => ivr,1,NoOp()<br>
exten =>
ivr,n(restartprompt),Background(/var/lib/asterisk/sounds/vprompts/${KNUMMER}/${ASTPROMPT})<br>
exten => ivr,n,NoOp(${BACKGROUNDSTATUS})<br>
exten => ivr,n,WaitExten(15)<br>
exten => ivr,n,GoTo(restartprompt)<br>
<br>
exten => _X,1,Set(choice=${EXTEN})<br>
exten => _X,n,System(echo
"'${klantID}','IVR','${choice}','','${CHANNEL:4}','$(date +%s)'"
>> /var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
exten => _X,n,other_stuff_I_do<br>
<br>
exten => ivradvanced,1,NoOp()<br>
exten => ivradvanced,n(restartprompt),Background(/var/lib/asterisk/sounds/vprompts/${KNUMMER}/${ASTPROMPT})<br>
exten => ivradvanced,n,NoOp(${BACKGROUNDSTATUS})<br>
exten => ivradvanced,n,WaitExten(15)<br>
exten => ivradvanced,n,GoTo(restartprompt)<br>
<br>
exten => _X.,1,Set(choice=${EXTEN})<br>
exten => _X.,n,System(echo
"'${klantID}','IVR','${keuzeID}','','${CHANNEL:4}','$(date +%s)'"
>> /var/log/asterisk/loggingAST/${CHANNEL:4}.csv)<br>
exten => _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>