{"id":15508601,"url":"https://github.com/adroste/freepbx-snippets-hints","last_synced_at":"2025-11-05T05:30:33.865Z","repository":{"id":106465970,"uuid":"447356934","full_name":"adroste/freepbx-snippets-hints","owner":"adroste","description":"A collection of snippets / hints for FreePBX","archived":false,"fork":false,"pushed_at":"2022-01-19T19:05:55.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T12:09:34.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adroste.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-12T20:11:41.000Z","updated_at":"2022-01-12T20:25:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc557764-0cfc-4912-bfb7-6a502cae13af","html_url":"https://github.com/adroste/freepbx-snippets-hints","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adroste%2Ffreepbx-snippets-hints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adroste%2Ffreepbx-snippets-hints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adroste%2Ffreepbx-snippets-hints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adroste%2Ffreepbx-snippets-hints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adroste","download_url":"https://codeload.github.com/adroste/freepbx-snippets-hints/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449588,"owners_count":19640535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:39:17.410Z","updated_at":"2025-11-05T05:30:33.836Z","avatar_url":"https://github.com/adroste.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# freepbx-snippets-hints\nA collection of snippets / hints for FreePBX\n\n\n## Busy on busy for ring groups\n\nSee: https://community.freepbx.org/t/solved-ring-group-with-voicemail-and-busy-on-busy/47247/14\n\n\n## Remove area code for incoming caller id\n\nSee: https://community.freepbx.org/t/strip-off-country-and-area-code-from-incoming-caller-id-name/37048/6\n\n\n## Restart system with feature code\n\nMake sure that the asterisk user can use the reboot command.\nCheck that the following line is in `/etc/sudoers`:\n```\nasterisk ALL = NOPASSWD: /sbin/reboot\n```\n\nIn `extensions_custom.conf`:\n```\n[restart-system]\nexten =\u003e s,1,System(/bin/sh -c \"(/usr/bin/sleep 3 \u0026\u0026 sudo /sbin/reboot -f) \u0026\")\nsame =\u003e n,Hangup()\n```\n\n* Create Admin -\u003e Custom Destination with with destination `restart-system,s,1`\n* Create Apps -\u003e Misc Apps with custom feature code and target custom-destination\n\n\n\n## Fix contactmanager bulk import empty numbers\n\nReported here: https://issues.freepbx.org/browse/FREEPBX-23229\n\nThe bulk importer creates empty numbers in the db, hence breaking the contact entry.\n\nSnippet shall be applied to line 3238 (Contactmanager Version 16.0.17.3).\n\n## Update FreePBX Framework 16 on Asterisk 19\n\nOn Error:\n```\nUnsupported Version of 19.0.0\nSupported Asterisk versions: 13, 14, 15, 16, 17, 18\n```\n\nPatch file:\n```\nvim.tiny /var/www/html/admin/modules/framework/install.php\n```\nfrom:\n```\nif (version_compare($astversion, \"13\", \"lt\") || version_compare($astversion, \"19\", \"ge\"))\n```\nto:\n```\nif (version_compare($astversion, \"13\", \"lt\") || version_compare($astversion, \"20\", \"ge\"))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadroste%2Ffreepbx-snippets-hints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadroste%2Ffreepbx-snippets-hints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadroste%2Ffreepbx-snippets-hints/lists"}