All pastes #730577 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-09 10:58 UTC
rendered paste body
Index: asterisk/res/res_features.c
===================================================================
--- asterisk.orig/res/res_features.c
+++ asterisk/res/res_features.c
@@ -684,7 +684,7 @@ static int builtin_automonitor(struct as
                        args = alloca(len);
                        touch_filename = alloca(len);
                        snprintf(touch_filename, len, "auto-%ld-%s", (long)time(NULL), touch_monitor);
-                       snprintf(args, len, "%s|%s|m", (touch_format) ? touch_format : "wav", touch_filename);
+                       snprintf(args, len, "%s,%s,m", (touch_format) ? touch_format : "wav", touch_filename);
                } 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));
@@ -692,7 +692,7 @@ static int builtin_automonitor(struct as
                        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|m", S_OR(touch_format, "wav"), touch_filename);
+                       snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename);
                }

                for(x = 0; x < strlen(args); x++) {