[Asterisk-Users] AGI ?
Jon Scottorn
jscottorn at possibilityforge.com
Wed May 24 10:31:42 MST 2006
On Wed, 2006-05-24 at 11:45 -0500, Eric "ManxPower" Wieling wrote:
> >>
> >> my $dialstat = $AGI->get_variable('DIALSTATUS');
> >>
> >
> > Hi,
> >
> > I have tried that as well.
> > Thanks for the suggestion.
> >
> > Any other thoughts.
>
> 1) What version of Asterisk are you using?
>
I am running from debian package version 1.2.7.1.dfsg-2
> 2) Can you get any other dialplan variables?
>
I have tried getting other variables and no I do not get any results.
> 3) Are you running the Dial app inside your AGI or before you run your AGI?
>
here is what my dialplan looks like within extensions.conf
exten => _5NXXXXXX,1,AGI,LCRdialout.agi.test|${EXTEN}
exten => _51NXXNXXXXXX,1,AGI,LCRdialout.agi.test|${EXTEN}
Here are the two lines that I run from within the AGI script
$AGI->exec("DIAL Zap/g2/$number|25|TW");
$callStatus = $AGI->get_variable('DIALSTATUS');
$AGI->exec("DIAL IAX2/$iaxUser\:$iaxPass\@$iaxHost/$one$areaCode$number|
25|TW");
$callStatus = $AGI->get_variable('DIALSTATUS');
Thanks,
Jon Scottorn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060524/746ca25c/attachment.htm
More information about the asterisk-users
mailing list