I cannot figure out why I cannot get this to work. From what I can tell from the logs, it’s not even trying to execute it.
The script (a bash script) is in in /var/lib/asterisk/bin/ and chmod’ed 774 and has owner and group set to asterisk.
I have /var/spool/asterisk/mp3conv/postrecord.sh ^{CDR(linkedid)} in the “Post Call Recording Script” in advanced settings.
Here is what I see in the logs (/var/log/asterisk/full): [2021-11-02 13:42:46] VERBOSE[15232][C-0000002b] pbx.c: Executing [s@macro-hangupcall:7] Hangup("PJSIP/205-0000003e", "") in new stack [2021-11-02 13:42:46] VERBOSE[15232][C-0000002b] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/205-0000003e' in macro 'hangupcall' [2021-11-02 13:42:46] VERBOSE[15232][C-0000002b] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/205-0000003e' [2021-11-02 13:42:46] VERBOSE[15233][C-0000002b] app_mixmonitor.c: MixMonitor close filestream (mixed) [2021-11-02 13:42:46] VERBOSE[15233][C-0000002b] app_mixmonitor.c: End MixMonitor Recording PJSIP/205-0000003e
From what I understand, there should be a line with app_mixmonitor.c: Executing ... showing between app_mixmonitor.c: MixMonitor ... and app_mixmonitor.c: End MixMonitor ... but I’m not seeing anything like that.
I tried restarting the freepbx service but that didn’t change anything. What might I be missing here.
I’m fairly new to freepbx (but not to Linux/UNIX nor serer administration in general) and I’m not sure how many lines a ‘call’ translates into in this log. If there is a specific start and end strings I should look for to give a better paste, please feel free to let me know.
We prefer that you paste the log at pastebin.freepbx.org, though you can use another service if you prefer. Whichever you choose, please take care to set the paste Expiration to Never, so future readers of the thread can follow along.