<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.1">
</HEAD>
<BODY>
On Wed, 2006-05-24 at 11:45 -0500, Eric &quot;ManxPower&quot; Wieling wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; my $dialstat = $AGI-&gt;get_variable('DIALSTATUS');</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;    I have tried that as well.</FONT>
<FONT COLOR="#000000">&gt; Thanks for the suggestion.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Any other thoughts.</FONT>

<FONT COLOR="#000000">1) What version of Asterisk are you using?</FONT>

</PRE>
</BLOCKQUOTE>
I am running from debian package version 1.2.7.1.dfsg-2
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">2) Can you get any other dialplan variables?</FONT>

</PRE>
</BLOCKQUOTE>
I have tried getting other variables and no I do not get any results.
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">3) Are you running the Dial app inside your AGI or before you run your AGI?</FONT>

</PRE>
</BLOCKQUOTE>
here is what my dialplan looks like within extensions.conf<BR>
exten =&gt; _5NXXXXXX,1,AGI,LCRdialout.agi.test|${EXTEN}<BR>
exten =&gt; _51NXXNXXXXXX,1,AGI,LCRdialout.agi.test|${EXTEN}<BR>
<BR>
Here are the two lines that I run from within the AGI script<BR>
$AGI-&gt;exec(&quot;DIAL Zap/g2/$number|25|TW&quot;);<BR>
$callStatus = $AGI-&gt;get_variable('DIALSTATUS');<BR>
<BR>
$AGI-&gt;exec(&quot;DIAL IAX2/$iaxUser\:$iaxPass\@$iaxHost/$one$areaCode$number|25|TW&quot;);<BR>
$callStatus = $AGI-&gt;get_variable('DIALSTATUS');<BR>
<BR>
<BR>
Thanks,<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<B><I><FONT SIZE="4"><FONT COLOR="#000080">Jon Scottorn</FONT></FONT></I></B>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>