<!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>
I'm sure it could be but taking the agi route I think would be simpler.<BR>
<BR>
I thought I should be able to get the variable DIALSTATUS from Asterisk. Is this not true.<BR>
<BR>
I have tried these different ways to get it but none have worked yet.<BR>
<BR>
$AGI->get_variable(DIALSTATUS);<BR>
$AGI->get_variable(DIALSTATUS);<BR>
$AGI->get_variable(DIALSTATUS);<BR>
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>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<B><I><FONT SIZE="4"><FONT COLOR="#000080">Jon Scottorn</FONT></FONT></I></B><BR>
<I><FONT COLOR="#000080">Systems Administrator</FONT></I><BR>
<I><FONT COLOR="#000080">The Possibility Forge, Inc.</FONT></I><BR>
<I><FONT COLOR="#000080">http://www.possibilityforge.com</FONT></I><BR>
<I><FONT COLOR="#000080">435.635.0591 x.1004</FONT></I>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>