is it possible to run a javascript at the end of dialplan to generate cdrs? because (mod_cdr_csv) is giving me hard time as it rotates Master file on machine reboots or shutdown signals.
javascript or LUA for preferences?

thank you