Post Call Recording Script not firing and no mention in logs

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/ ^{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 [[email protected]: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.

Thanks for any help.

Insufficient info . . .
your call was identified as C-0000002b pastebin a log with that grepped out of /var/log/astrerisk/full

not working, use the freebbx pastebin

Here is the correct link, my apologies:

Is there any other info that you need?

Make sure the post call recording value is set properly in MySQL:

mysql asterisk -u root -e "select value from freepbx_settings where keyword='MIXMON_POST';"

Only seeing 100 log lines. The part where the recording is stopped and the file written is missing.

I see the same value that I entered in advanced settings.

As @lgaetz said, post a full call log.

Trouble is, we don’t, please post a complete log.

Here is more of the log.

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, 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.

@adell4444 , @Stewart1 Thanks for the links, those helped a lot.

Here is the log for that call:

(Edit, strange, sometimes it lets me post a link, sometimes it says new users can’t, which why I wrapped it in backticks.)

It does not seems like the MixMonitor even knows about MONITOR_EXEC and it’s arguments.

What version of FreePBX/Asterisk are you using? Is this the distro, and is there anything custom on that PBX?

Asterisk Version: 13.32.0

What about the other questions?

@PitzKey I don’t know about anything custom, though I just took this over from someone else so I’m not fully sure.

Not sure what you meant by “Is this the distro” ? Do you mean what OS is being used?

Yes .

I think, by distro, he means the standard version distributed by the FreePBX project, possibly including their OS.

I would note that Asterisk 13 went end of life last weekend.

1 Like