3/31/2023 0 Comments Connect to ssh shell free pbx![]() # We pass -N to MySQL so it doens't print headers # Passing the -e option to echo allows us to use tabs # Set so we can loop on newlines instead of spacesįILE=/tftpboot/000000000000-directory.xml # by pulling the usernames and extensions of all SIP users #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #all copies or substantial portions of the Software. #The above copyright notice and this permission notice shall be included in #furnished to do so, subject to the following conditions: #copies of the Software, and to permit persons to whom the Software is #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #in the Software without restriction, including without limitation the rights #of this software and associated documentation files (the "Software"), to deal #Permission is hereby granted, free of charge, to any person obtaining a copy You can see Thyrus’s original post here.Ĭopy and paste the following into the polycom-dir.sh file: #!/bin/bash Create Scriptįirst, log into your FreePBX via SSH as root.Ĭreate a new application in /usr/local/sbin called polycom-dir.sh: nano -w /usr/local/sbin/polycom-dir.shĬredit where credit is due – I stole the base of this script from Thyrus Gorges – he did the bulk of the heavy lifting, and I simply modified the script a bit for easier use with FreePBX. ![]() Once complete, you should have a central directory in all of your Polycom phones that shows all other employee extensions, and that central directory will update hourly from FreePBX’s database. The goal of this article is to make that process much much easier. Creating a FreePBX Polycom directory for all of your users can be a frustrating and manual process. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |