<!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>
<BR>
<BR>
On Wed, 2006-05-24 at 00:04 +0200, Freddi Hansen wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> From:</FONT>
<FONT COLOR="#000000">> Jon Scottorn <<A HREF="mailto:jscottorn@possibilityforge.com">jscottorn@possibilityforge.com</A>></FONT>
<FONT COLOR="#000000">> Date:</FONT>
<FONT COLOR="#000000">> Tue, 23 May 2006 12:52:02 -0600</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> To:</FONT>
<FONT COLOR="#000000">> Asterisk Users Mailing List - Non-Commercial Discussion </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</A>></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> On Tue, 2006-05-23 at 19:44 +0100, Thomas Kenyon wrote:</FONT>
<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>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> </FONT>
<FONT COLOR="#000000">> It probably can be but I thought It would be quicker and easier with </FONT>
<FONT COLOR="#000000">> AGI. I thought I was supposed to be able to get the variable </FONT>
<FONT COLOR="#000000">> DIALSTATUS from asterisk.</FONT>
<FONT COLOR="#000000">> Is this not true?</FONT>
<FONT COLOR="#000000">> Here are the ways I have been trying but with no success.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> $AGI->get_variable(DIALSTATUS);</FONT>
<FONT COLOR="#000000">> $AGI->get_variable('DIALSTATUS');</FONT>
<FONT COLOR="#000000">> $AGI->get_variable("DIALSTATUS");</FONT>
<FONT COLOR="#000000">> $AGI->get_variable(${DIALSTATUS});</FONT>
<FONT COLOR="#000000">try:</FONT>
<FONT COLOR="#000000">my $dialstat = $AGI->get_variable('DIALSTATUS');</FONT>
</PRE>
</BLOCKQUOTE>
Hi,<BR>
<BR>
I have tried that as well.<BR>
Thanks for the suggestion.<BR>
<BR>
Any other thoughts.<BR>
<BR>
Thanks,<BR>
<BR>
Jon
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Freddi</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Any other thoughts anyone might have.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Thanks for the help and input.</FONT>
<FONT COLOR="#000000">> */Jon Scottorn/*</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">--Bandwidth and Colocation provided by Easynews.com --</FONT>
<FONT COLOR="#000000">Asterisk-Users mailing list</FONT>
<FONT COLOR="#000000">To UNSUBSCRIBE or update options visit:</FONT>
<FONT COLOR="#000000"> <A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-use</FONT>rs</A>
</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>