<!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 Tue, 2006-05-23 at 19:44 +0100, Thomas Kenyon wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Jon Scottorn wrote:</FONT>
<FONT COLOR="#000000">> Hi All,</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> I have been attempting to get an AGI LCRdialout script to work. </FONT>
<FONT COLOR="#000000">> Basically what I need to have happen is when someone dials out a</FONT>
<FONT COLOR="#000000">> number the script check to see if it is local if so, go out the ZAP</FONT>
<FONT COLOR="#000000">> channel. If the ZAP channel is busy, go out the IAX channels, if IAX</FONT>
<FONT COLOR="#000000">> is all busy, go out the SIP channels. Here is a sample of what I have</FONT>
<FONT COLOR="#000000">> in my script. </FONT>
<FONT COLOR="#000000">Why can't this be handled directly with the dialplan?</FONT>
</PRE>
</BLOCKQUOTE>
It probably can be but I thought It would be quicker and easier with AGI. I thought I was supposed to be able to get the variable DIALSTATUS from asterisk.<BR>
Is this not true?<BR>
Here are the ways I have been trying but with no success.<BR>
<BR>
$AGI->get_variable(DIALSTATUS);<BR>
$AGI->get_variable('DIALSTATUS');<BR>
$AGI->get_variable("DIALSTATUS");<BR>
$AGI->get_variable(${DIALSTATUS});<BR>
<BR>
Any other thoughts anyone might have.<BR>
<BR>
Thanks for the help and input.
<BLOCKQUOTE TYPE=CITE>
<PRE>
</PRE>
</BLOCKQUOTE>
<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>