<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
</div>
<blockquote cite="mid:55C48CCC.6060306@telenet.be" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="Helvetica, Arial, sans-serif"><br>
I have 2 strange errors when using the Background()-application
and DTMF-input that is received.<br>
<br>
First of all, my first 2 lines are not being executed. The first
line being executed is the Set() application, thus line 3.<br>
<br>
Secondly, the received digits (911) is not the same as the EXTEN
(which is set to 91).<br>
<br>
<br>
<br>
exten => ivr,n,Set(TIMEOUT(digit)=2)<br>
exten =>
ivr,n,Background(/var/lib/asterisk/sounds/${ASTPROMPT})<br>
<br>
exten => _X.,1,NoOp()<br>
exten => _X.,n,NoOp(input=${EXTEN})<br>
exten => _X.,n,Set(choice=${EXTEN})<br>
<br>
<br>
<br>
[Aug 7 12:31:26] -- Executing [ivr@pbx-routing:7]
Set("SIP/SipAgenT-00000626", "TIMEOUT(digit)=2") in new stack<br>
[Aug 7 12:31:26] -- Digit timeout set to 2.000<br>
[Aug 7 12:31:26] -- Executing [ivr@pbx-routing:8]
BackGround("SIP/SipAgenT-00000626",
"/var/lib/asterisk/sounds/5003") in new stack<br>
[Aug 7 12:31:26] -- <SIP/SipAgenT-00000626> Playing
'/var/lib/asterisk/sounds/5003.slin'<br>
<br>
[Aug 7 12:31:41] NOTICE[3886]: ast_expr2.y:763
compose_func_args: argbuf allocated 4 bytes;<br>
[Aug 7 12:31:41] NOTICE[3886]: ast_expr2.y:782
compose_func_args: argbuf uses 3 bytes;<br>
[Aug 7 12:31:41] -- Executing [911@pbx-routing:1]
Set("SIP/SipAgenT-00000626", "choice=91") in new stack<br>
<br>
<br>
<br>
I have reloaded the dialplan several times, but the first 2
lines never get executed. In stead they generate the error : </font><font
face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">ast_expr2.y:763 compose_func_args: argbuf
allocated 4 bytes;</font><br>
<br>
<br>
Anyone know what is going on here ?</font><br>
</blockquote>
<font face="Helvetica, Arial, sans-serif">Can you post the complete
output with "set verbose = 3"? I think you didn't show all the
code that got executed. Also, Asterisk might not get what was
dialed. If you have a phone with dial plan settings and there is a
regex which submits immediately after 2 digits for certain
patterns, you'll never get the complete number.<br>
<br>
Given the code, there is no reason to execute the ivr extensions.<br>
<br>
jg<br>
</font>
</body>
</html>