Having a spot of bother with this bit of lua: result = os.execute(string.format([[sox --norm %s %s.new]], file_to_normalise, file_to_normalise)) It's returning -1. I believe freeswitch is running as root and that the sox file is in that location and is runnable. Any ideas?