[Asterisk-Dev] Getting priority within AGI
Martin Pycko
martinp at digium.com
Mon Jun 30 12:16:06 MST 2003
Does that help ?
Martin
On 30 Jun 2003, Eric Wieling wrote:
> Didn't seem to work for me. As far as I can determine the info in
> README.variables only applies to extensions.conf and are not available
> to AGI scripts.
>
> --Eric
>
> On Mon, 2003-06-30 at 12:59, 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.
>
> --
> BTEL Consulting
> 850-484-4535 x2111 (Office)
> 504-595-3916 x2111 (Experimental)
> 877-552-0838 (Backup Phone)
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.26
diff -u -r1.26 pbx.c
--- pbx.c 11 Jun 2003 12:24:13 -0000 1.26
+++ pbx.c 30 Jun 2003 19:35:56 -0000
@@ -4175,6 +4175,11 @@
}
char *pbx_builtin_getvar_helper(struct ast_channel *chan, char *name) {
+ char workspace[256];
+ char *ret;
+ pbx_substitute_variables_temp(c,name,&ret, workspace, sizeof(workspace));
+ return ret;
+#if 0
struct ast_var_t *variables;
struct varshead *headp;
@@ -4198,6 +4203,7 @@
}
}
return NULL;
+#endif
}
void pbx_builtin_setvar_helper(struct ast_channel *chan, char *name, char *value) {
More information about the asterisk-dev
mailing list