[Asterisk-Dev] Getting priority within AGI

Eric Wieling eric at fnords.org
Mon Jun 30 16:03:34 MST 2003


While you're at it, you want to make app_dial return 1 when it gets a
busy, currently it returns 0 on no-answer or busy and -1 on error or
hangup. 8-)

On Mon, 2003-06-30 at 14:15, James Golovich wrote:
> It should be pretty easy to make pbx_builtin_getvar_helper call
> pbx_substitute_variables_temp.  If I get a chance sometime tonight I'll
> see what I can come up wiht
> 
> James
> 
> On Mon, 30 Jun 2003, Martin Pycko wrote:
> 
> > I guess that has to be changed ....
> > 
> > Martin
> > 
> > On Mon, 30 Jun 2003, James Golovich wrote:
> > 
> > > If your talking about trying to access the 'PRIORITY' channel variable
> > > then it won't work, since those special vars are substituted in during
> > > pbx_extension_helper by pbx_substitute variables.  Those special vars only
> > > work from extensions.conf
> > >
> > > James
> > >
> > > On Mon, 30 Jun 2003, Martin Pycko wrote:
> > >
> > > > If the app is giving back execution to your script you should be able
> > > > to retrieve the value of PRIORITY local variable.
> > > >
> > > > Martin
> > > >
> > > > On 30 Jun 2003, Eric Wieling wrote:
> > > >
> > > > > Is there any way to GET the current priority within an AGI script.  I
> > > > > know I can get that info when the AGI script starts, but if an
> > > > > application that I EXEC changes the priority, I don't know how to get
> > > > > the new priority.
> > >
> > > _______________________________________________
> > > Asterisk-Dev mailing list
> > > Asterisk-Dev at lists.digium.com
> > > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > >
> > 
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
-- 
BTEL Consulting
850-484-4535 x2111 (Office)
504-595-3916 x2111 (Experimental)
877-552-0838 (Backup Phone)




More information about the asterisk-dev mailing list