[Asterisk-bsd] res_monitor.so bug? in ast_monitor_stop

Vahan Yerkanian vahan at arminco.com
Thu May 25 00:25:00 MST 2006


Greetings,

Just noticed that the monitored audio files are not being joined under 
FreeBSD. Upon closer inspection, I found the culprit in the 
ast_monitor_stop:

                         if (ast_strlen_zero(execute)) {
                                 execute = "nice -n 19 soxmix";
                                 delfiles = 1;
                         }

Now, while the docs say that the '-n' is the way to go, here is the 
output from it:

# nice -n 19 soxmix
nice: Badly formed number.

However, this works:

# nice -19 soxmix
soxmix: Usage: [ gopts ] [ fopts ] ifile1 [fopts] ifile2 [ fopts ] ofile 
[ effect [ effopts ] ]

Failed: Not enough input or output filenames specified

So what's is going on? While this looks like a bug with nice, a patch 
could be handy for net/asterisk IMHO.

regards,
Vahan



More information about the Asterisk-BSD mailing list