[Asterisk-Users] AGI ?
Jon Scottorn
jscottorn at possibilityforge.com
Wed May 24 09:43:06 MST 2006
On Wed, 2006-05-24 at 00:04 +0200, Freddi Hansen wrote:
> >
> > From:
> > Jon Scottorn <jscottorn at possibilityforge.com>
> > Date:
> > Tue, 23 May 2006 12:52:02 -0600
> >
> > To:
> > Asterisk Users Mailing List - Non-Commercial Discussion
> > <asterisk-users at lists.digium.com>
> >
> >
> > On Tue, 2006-05-23 at 19:44 +0100, Thomas Kenyon wrote:
> >> Jon Scottorn wrote:
> >> > Hi All,
> >> >
> >> > I have been attempting to get an AGI LCRdialout script to work.
> >> > Basically what I need to have happen is when someone dials out a
> >> > number the script check to see if it is local if so, go out the ZAP
> >> > channel. If the ZAP channel is busy, go out the IAX channels, if IAX
> >> > is all busy, go out the SIP channels. Here is a sample of what I have
> >> > in my script.
> >> Why can't this be handled directly with the dialplan?
> >>
> >>
> > 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.
> > Is this not true?
> > Here are the ways I have been trying but with no success.
> >
> > $AGI->get_variable(DIALSTATUS);
> > $AGI->get_variable('DIALSTATUS');
> > $AGI->get_variable("DIALSTATUS");
> > $AGI->get_variable(${DIALSTATUS});
>
> try:
>
> my $dialstat = $AGI->get_variable('DIALSTATUS');
>
Hi,
I have tried that as well.
Thanks for the suggestion.
Any other thoughts.
Thanks,
Jon
> Freddi
> >
> > Any other thoughts anyone might have.
> >
> > Thanks for the help and input.
> > */Jon Scottorn/*
> >
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
Jon Scottorn
Systems Administrator
The Possibility Forge, Inc.
http://www.possibilityforge.com
435.635.0591 x.1004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060524/f3e97fd4/attachment.htm
More information about the asterisk-users
mailing list