This patch is the same I have placed as the ticket #426, with a single
whitespace-only line removed.
The attached patch fixes the following problems with MuxMon:

1) The syntax line for the command was missing the '\n' at the end of the line.

2) When called from the CLI without a post-process argument, garbage
was used as the post-process command.

PS: It is my understanding that putting fixes up as a ticket in the
site is not the proper way to go about them. They should be first
posted here where they are more visible and can be talked about. If my
understanding is incorrect then I'll just keep spamming the tickets
with small fixes as (if) I find them. Otherwise I'll start spamming
this list!
Index: app_muxmon.c
===================================================================
--- app_muxmon.c	(revision 1520)
+++ app_muxmon.c	(working copy)
@@ -52,7 +52,7 @@
 static void *muxmon_app;
 static char *muxmon_name = "MuxMon";
 static char *muxmon_synopsis = "Record A Call Natively";
-static char *muxmon_syntax = "MuxMon(file.ext[, options[, command]])";
+static char *muxmon_syntax = "MuxMon(file.ext[, options[, command]])\n";
 static char *muxmon_descrip =
     "Records The audio on the current channel to the specified file.\n\n"
     "Valid Options:\n"
@@ -483,7 +483,7 @@
     }
 
     pbx_builtin_setvar_helper(chan, "MUXMON_FILENAME", argv[0]);
-    launch_monitor_thread(chan, argv[0], flags.flags, readvol, writevol, argv[2]);
+    launch_monitor_thread(chan, argv[0], flags.flags, readvol, writevol, argc > 1 ? argv[2] : NULL);
 
     LOCAL_USER_REMOVE(u);
     return res;
_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to