Monitor (record) function not working properly in ASL3

I believe I’ve found a bug but before I document it in github I’d like to know if others have experienced this problem. I’m using the “monitor” function to record repeater audio. We have one node that mixes audio from three RTCMs plus anyone coming in over Allstar - pretty basic. Audio is recorded to a WAV file (date_and_time_stamp.WAV as filename) each time some keys up until they unkey (one file per key-up). With the “previous” (very old) version of Allstar (many many years old, but unsure which version), every file contained audio, as would be expected. With ASL3 I’m finding that most files are 1K in length and contain no audio. The only files that appear to have audio are from people who are connected to the node via Allstar. Also, every now and then we get a file that is recorded from someone coming in from an RTCM that sounds like some kind of techo music (it’s very musically interesting, actually - maybe an incorrect CODEC or something), otherwise its just a 1K file with no audio content.

The line that activates the monitor feature in our rtp.conf file looks like this:

[43763](node-main)
archivedir = /var/spool/asterisk/monitor

Has anyone else experienced this problem?

Does this directory have owner/user permissions ?
user: asterisk
Group: asterisk
Needs to be permissioned to write

Yes, permissions are correct (they were incorrect after the install, but I fixed that; another bug I need to report). Per original post, files are being written with EVERY key-up/down, and files with audio are being written when the recording is of someone attached to the node via Allstar, so writes are working properly; just “empty” 1K files whenever attached user is via an RTCM.

Hello, I have similar issue Audio archiving still the same in ASL3? - #4 by Andriy_Grin

Do you have the wav-gsm.so module loading ?

I have “load => format_wav_gsm.so” in modules.conf.

Having given this some thought for some time…

I probably need to ask if asterisk has the right to create a subdirectory in your

Because it will want to create the sub (nodenumber) and the files should be going in there.
Each node has it’s own directory by node number when written.

/var/spool/asterisk/monitor/43763

But you could make the directory manually and give it a spin.
Don’t forget to check owner and permissions of that directory before your test.

Mike,

The files are being written just fine, so asterisk must have the proper permissions. The problem isn’t in creating the files; the files are being created just fine and in the /var/spool/asterisk/monitor/43763 directory. I had to manipulate permissions manually to make that work (so there is a bug in the code regarding this), but that is not what I’m reporting here. The problem is the contents of the files, not the ability to write the files.

It appears that Andriy_Grin has reported the same problem already (above).

/var/spool/asterisk/monitor/43763

Are the files written to the directory above ?

Yes, that is correct.

Correction: the short files being created are 60 bytes, not 1K bytes.

I ended up recording this as a bug on GitHub (monitor (record/archive) function not working as it used to · Issue #382 · AllStarLink/app_rpt · GitHub) and it was flagged as “BUG” but I’ve seen nothing happen since. What is the proper way on GitHub to ask for status? Is it appropriate (/possible) to ask for it to be escalated?

You should know that they’re are just a few of us on the development team, that we’re all volunteers, and that our availability is limited.

If you are looking for a status update then you are welcome to post a comment in the GitHub issue. Most of us are available on Community but we don’t always notice every post. For this issue, I think the answer is that it’s just still in the queue. As for escalating, explaining why this needs to be fixed sooner would help.

Also, since you filed the GitHub issue a while back I will ask whether you’ve updated/upgraded/tested with the latest version? Adding a comment to the issue like “Still not working with app_rpt version x.x.x” will help us know that it’s still a bug.

1 Like

I had an issue when I first set my v3 software up.

I found the directories and subs within including files, need to be owned by asterisk:asterisk
and I chown to 755

and all owner/permissions changed recursively from the parent above the node# directory…

In my instance, I do not use the default directory. But one that makes more sense with other items I have interacting with these files.

Your mileage may vary