Update of /usr/cvsroot/asterisk/funcs
In directory mongoose.digium.com:/tmp/cvs-serv20216/funcs

Modified Files:
        func_logic.c 
Log Message:
make IF dialplan function handle quoted strings properly (bug #4322, with API 
mods)


Index: func_logic.c
===================================================================
RCS file: /usr/cvsroot/asterisk/funcs/func_logic.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- func_logic.c        19 May 2005 20:38:51 -0000      1.4
+++ func_logic.c        20 May 2005 16:30:13 -0000      1.5
@@ -55,6 +55,12 @@
                } 
 
                if (expr && iftrue) {
+                       expr = ast_strip_quoted(expr, "\"", "\"");
+                       iftrue = ast_strip_quoted(iftrue, "\"", "\"");
+
+                       if (iffalse) {
+                               iffalse = ast_strip_quoted(iffalse, "\"", "\"");
+                       }
                        ret = ast_true(expr) ? iftrue : iffalse;
                        if (ret) {
                                ast_copy_string(buf, ret, len);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to