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-5.3.8.9) 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.
Check the version in Module Administration for Recordings as the version that you posted does not exist (v-5.3.8.9), the current version for FreePBX is 3.3.8.8.
And when you are at it, please post as a .diff file so that we can track the actual file that you patched.
actually - please confirm this is an issue in FreePBX first, v-5.3.8.9 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.
From a quick check, that code has not been changed since it was first introduced (r4147) so you may want to make sure there is not something weird in your environment.