Not sure if this is the correct place or not to post some code for a fix the Systems Recordings Module. I hope not to get bashed to much but I do use Trixbox and maybe this is more there problem…don’t know just wanted it fixed and wanted to give back.
The up and down arrows in the Systems Recordings (v-18.104.22.168) wasn’t working correctly. While editing a recording with several child recordings if you clicked the down / up arrows to move the recordings it wouldn’t move the record but would create and empty recording. I narrowed the problem down to some sting manipulations problems. I have attached some updated code that might prove useful.
actually - please confirm this is an issue in FreePBX first, v-22.214.171.124 is from the trixbox fork, which means, even if it is broken and we do address it, you won’t see the fix until they choose to bring it in.
And you won’t be able to bring in ours through module admin because it will say you have a newer version, even if we have an update. (It’s why trixbox bumped the number up to 5.x so that you can’t pull in new FreePBX modules, you have to pull it when they are ready unless you manually do it and get around the versioning).
you have to be authenticated to create a ticket, but see my message above before doing such, want to make sure it is a bug on ours. (And I checked on my system and can move them around - but I’ve got the 2.6 version loaded which has other changes in it).
normally I would say to do an “svn log” to see why they put the change in their code. Problem is, trixbox does not give anyone access to their svn repository (assuming they even use one) last time I checked, so you are at their mercy as to why the change.
Just to be clear, the new code is a modification I made to get it working. The code for the functions.inc.php file from both trixbox and freepbx seems to be the same for the system recording module. I suppect this might have something to do with a web server, php or browser configuration.
No biggie, I submitted a request to the trixbox bug site.