[asterisk-commits] seanbright: trunk r158188 - /trunk/res/ael/pval.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 20 13:41:23 CST 2008


Author: seanbright
Date: Thu Nov 20 13:41:23 2008
New Revision: 158188

URL: http://svn.digium.com/view/asterisk?view=rev&rev=158188
Log:
Fix one case where the application argument was not converted from a pipe to
a comma.  This was causing problems with switch statements with empty expressions.

(closes issue #13901)
Reported by: smurfix
Patches:
      20081118_bug13901.diff uploaded by seanbright (license 71)
Tested by: seanbright
Reviewed by: murf

Modified:
    trunk/res/ael/pval.c

Modified: trunk/res/ael/pval.c
URL: http://svn.digium.com/view/asterisk/trunk/res/ael/pval.c?view=diff&rev=158188&r1=158187&r2=158188
==============================================================================
--- trunk/res/ael/pval.c (original)
+++ trunk/res/ael/pval.c Thu Nov 20 13:41:23 2008
@@ -3862,7 +3862,7 @@
 					switch_null->context = this_context;
 					switch_null->is_switch = 1;
 					switch_empty = new_prio();
-					snprintf(buf1,sizeof(buf1),"sw-%d-.|10",local_control_statement_count);
+					snprintf(buf1,sizeof(buf1),"sw-%d-.,10",local_control_statement_count);
 					switch_empty->app = strdup("Goto");
 					switch_empty->appargs = strdup(buf1);
 					linkprio(switch_null, switch_empty, mother_exten);




More information about the asterisk-commits mailing list