[Asterisk-cvs] asterisk pbx.c,1.186,1.187
markster at lists.digium.com
markster at lists.digium.com
Wed Dec 22 21:51:19 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv28536
Modified Files:
pbx.c
Log Message:
Fix AGI to know about "builtin" variables, too (bug #2737)
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- pbx.c 19 Dec 2004 17:16:38 -0000 1.186
+++ pbx.c 23 Dec 2004 02:47:00 -0000 1.187
@@ -795,7 +795,7 @@
return NULL;
}
-static void pbx_substitute_variables_temp(struct ast_channel *c, const char *var, char **ret, char *workspace, int workspacelen, struct varshead *headp)
+void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, char *workspace, int workspacelen, struct varshead *headp)
{
char *first,*second;
char tmpvar[80] = "";
@@ -827,7 +827,7 @@
if (!first)
first = tmpvar + strlen(tmpvar);
*first='\0';
- pbx_substitute_variables_temp(c,tmpvar,ret,workspace,workspacelen - 1, headp);
+ pbx_retrieve_variable(c,tmpvar,ret,workspace,workspacelen - 1, headp);
if (!(*ret)) return;
offset=atoi(first+1);
if ((second=strchr(first+1,':'))) {
@@ -1103,7 +1103,7 @@
/* Retrieve variable value */
workspace[0] = '\0';
- pbx_substitute_variables_temp(c,vars,&cp4, workspace, sizeof(workspace), headp);
+ pbx_retrieve_variable(c,vars,&cp4, workspace, sizeof(workspace), headp);
if (cp4) {
length = strlen(cp4);
if (length > count)
More information about the svn-commits
mailing list