The upgrade of application argument separators to comma has an effect on AEL; I comme...
authorSteve Murphy <murf@digium.com>
Thu, 26 Jul 2007 01:33:55 +0000 (01:33 +0000)
committerSteve Murphy <murf@digium.com>
Thu, 26 Jul 2007 01:33:55 +0000 (01:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77218 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_ael.c

index 6426636..2693e47 100644 (file)
@@ -149,8 +149,8 @@ static void fix_gotos_in_extensions(struct ael_extension *exten);
 static pval *get_extension_or_contxt(pval *p);
 static pval *get_contxt(pval *p);
 static void remove_spaces_before_equals(char *str);
-static void substitute_commas(char *str);
-
+/* static void substitute_commas(char *str); */
+#ifdef NOMORE
 /*! \brief I am adding this code to substitute commas with vertbars in the args to apps */
 static void substitute_commas(char *str)
 {
@@ -171,7 +171,7 @@ static void substitute_commas(char *str)
                p++;
        }
 }
-
+#endif
 
 /* PRETTY PRINTER FOR AEL:  ============================================================================= */
 
@@ -3474,7 +3474,7 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
                                        first = 0;
                                }
                                else
-                                       strcat(buf1,"|");
+                                       strcat(buf1,",");
                                strcat(buf1,p2->u1.str);
                        }
                        if (!first)
@@ -3492,8 +3492,8 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
                        buf1[0] = 0;
                        for (p2 = p->u2.arglist; p2; p2 = p2->next) {
                                if (p2 != p->u2.arglist )
-                                       strcat(buf1,"|");
-                               substitute_commas(p2->u1.str);
+                                       strcat(buf1,",");
+                               /*substitute_commas(p2->u1.str); */
                                strcat(buf1,p2->u1.str);
                        }
                        pr->app = strdup(p->u1.str);