<!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 "ManxPower" Wieling wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> my $dialstat = $AGI->get_variable('DIALSTATUS');</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Hi,</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> I have tried that as well.</FONT>
<FONT COLOR="#000000">> Thanks for the suggestion.</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> 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 => _5NXXXXXX,1,AGI,LCRdialout.agi.test|${EXTEN}<BR>
exten => _51NXXNXXXXXX,1,AGI,LCRdialout.agi.test|${EXTEN}<BR>
<BR>
Here are the two lines that I run from within the AGI script<BR>
$AGI->exec("DIAL Zap/g2/$number|25|TW");<BR>
$callStatus = $AGI->get_variable('DIALSTATUS');<BR>
<BR>
$AGI->exec("DIAL IAX2/$iaxUser\:$iaxPass\@$iaxHost/$one$areaCode$number|25|TW");<BR>
$callStatus = $AGI->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>