[asterisk-commits] eliel: branch eliel/appdelim r190214 - /team/eliel/appdelim/main/features.c

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


Author: eliel
Date: Thu Apr 23 10:32:42 2009
New Revision: 190214

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190214
Log:
Use AST_STANDARD_APP_DELIM instead of hardcoding the argument delimiter to ','.

Modified:
    team/eliel/appdelim/main/features.c

Modified: team/eliel/appdelim/main/features.c
URL: http://svn.digium.com/svn-view/asterisk/team/eliel/appdelim/main/features.c?view=diff&rev=190214&r1=190213&r2=190214
==============================================================================
--- team/eliel/appdelim/main/features.c (original)
+++ team/eliel/appdelim/main/features.c Thu Apr 23 10:32:42 2009
@@ -1049,7 +1049,7 @@
 			args = alloca(len);
 			touch_filename = alloca(len);
 			snprintf(touch_filename, len, "%s-%ld-%s", S_OR(touch_monitor_prefix, "auto"), (long)time(NULL), touch_monitor);
-			snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename);
+			snprintf(args, len, "%s%c%s%cm", S_OR(touch_format, "wav"), AST_STANDARD_APP_DELIM_CHAR, touch_filename, AST_STANDARD_APP_DELIM_CHAR);
 		} else {
 			caller_chan_id = ast_strdupa(S_OR(caller_chan->cid.cid_num, caller_chan->name));
 			callee_chan_id = ast_strdupa(S_OR(callee_chan->cid.cid_num, callee_chan->name));
@@ -1057,7 +1057,7 @@
 			args = alloca(len);
 			touch_filename = alloca(len);
 			snprintf(touch_filename, len, "%s-%ld-%s-%s", S_OR(touch_monitor_prefix, "auto"), (long)time(NULL), caller_chan_id, callee_chan_id);
-			snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename);
+			snprintf(args, len, "%s%c%s%cm", S_OR(touch_format, "wav"), AST_STANDARD_APP_DELIM_CHAR, touch_filename, AST_STANDARD_APP_DELIM_CHAR);
 		}
 
 		for(x = 0; x < strlen(args); x++) {
@@ -1162,7 +1162,7 @@
 			args = alloca(len);
 			touch_filename = alloca(len);
 			snprintf(touch_filename, len, "auto-%ld-%s", (long)time(NULL), touch_monitor);
-			snprintf(args, len, "%s.%s%sb", touch_filename, (touch_format) ? touch_format : "wav", AST_STANDARD_APP_DELIM);
+			snprintf(args, len, "%s.%s%cb", touch_filename, (touch_format) ? touch_format : "wav", AST_STANDARD_APP_DELIM_CHAR);
 		} else {
 			caller_chan_id = ast_strdupa(S_OR(caller_chan->cid.cid_num, caller_chan->name));
 			callee_chan_id = ast_strdupa(S_OR(callee_chan->cid.cid_num, callee_chan->name));
@@ -1170,7 +1170,7 @@
 			args = alloca(len);
 			touch_filename = alloca(len);
 			snprintf(touch_filename, len, "auto-%ld-%s-%s", (long)time(NULL), caller_chan_id, callee_chan_id);
-			snprintf(args, len, "%s.%s%sb", touch_filename, S_OR(touch_format, "wav"), AST_STANDARD_APP_DELIM);
+			snprintf(args, len, "%s.%s%cb", touch_filename, S_OR(touch_format, "wav"), AST_STANDARD_APP_DELIM_CHAR);
 		}
 
 		for( x = 0; x < strlen(args); x++) {




More information about the asterisk-commits mailing list