Location of the FreeSwitch repo directory

kenn10

Member
Sep 11, 2018
62
15
8
69
FS PBX Version 1.8.4, by relocating the FreeSwitch scripts to the 'repo' directory broke some of my custom xml coding and lua scripting.. I don't know exactly where to find the FreeSwitch repo directory. There is still a /usr/share/freeswitch/scipts directory but my custom lua scripts are no longer there. Can you please advise?
 
Last edited:
@kenn10 We thought we had carefully orchestrated that, but I guess it was not perfect. I apologize for the inconvenience.

/usr/share/freeswitch/scripts is simlinked to a directory inside FS PBX - /var/www/fspbx/resources/freeswitch_scripts

You should create a directory inside of it, and call it custom. If it's not yet there. It's git-ignored for custom scripts so they don't get overwritten.

At this point, you need to manually move the scripts into that directory and update your XML files to load LUA scripts from this directory. This way, they don't get overwritten by any future updates.

The reason for this move is to streamline updates for stock LUA scripts, which are best managed within the repo. Previously, updates to stock scripts required manual downloads, involving many steps and relying on humans to remember to do so. We found that this process was not always reliable.
 
  • Like
Reactions: kenn10