[asterisk-commits] eliel: branch eliel/appdelim r190216 - /team/eliel/appdelim/res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 23 10:52:38 CDT 2009


Author: eliel
Date: Thu Apr 23 10:52:35 2009
New Revision: 190216

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190216
Log:
Move the code to start using AST_STANDARD_APP_DELIM_CHAR instead of
hardcoding a comma as the parameter separator.


Modified:
    team/eliel/appdelim/res/res_agi.c

Modified: team/eliel/appdelim/res/res_agi.c
URL: http://svn.digium.com/svn-view/asterisk/team/eliel/appdelim/res/res_agi.c?view=diff&rev=190216&r1=190215&r2=190216
==============================================================================
--- team/eliel/appdelim/res/res_agi.c (original)
+++ team/eliel/appdelim/res/res_agi.c Thu Apr 23 10:52:35 2009
@@ -1712,11 +1712,11 @@
 		if (ast_compat_res_agi && !ast_strlen_zero(argv[2])) {
 			char *compat = alloca(strlen(argv[2]) * 2 + 1), *cptr, *vptr;
 			for (cptr = compat, vptr = argv[2]; *vptr; vptr++) {
-				if (*vptr == ',') {
+				if (*vptr == AST_STANDARD_APP_DELIM_CHAR) {
 					*cptr++ = '\\';
-					*cptr++ = ',';
+					*cptr++ = AST_STANDARD_APP_DELIM_CHAR;
 				} else if (*vptr == '|') {
-					*cptr++ = ',';
+					*cptr++ = AST_STANDARD_APP_DELIM_CHAR;
 				} else {
 					*cptr++ = *vptr;
 				}




More information about the asterisk-commits mailing list