These changes correspond to the changes to app_stack's Gosub() application

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2006-10-03 16:42:26 +00:00
parent e936f71ff2
commit 19dc73ad40
16 changed files with 333 additions and 332 deletions

View File

@@ -3315,15 +3315,18 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
snprintf(buf1,sizeof(buf1),"%s|s|1", p->u1.str);
first = 1;
for (p2 = p->u2.arglist; p2; p2 = p2->next) {
if( first )
if (first)
{
strcat(buf1,":");
strcat(buf1,"(");
first = 0;
}
else
strcat(buf1,"|");
strcat(buf1,p2->u1.str);
}
if (!first)
strcat(buf1,")");
pr->app = strdup("Gosub");
pr->appargs = strdup(buf1);
pr->origin = p;