Just a script that creates a custom voip.ms template and moves all trunks over to it in the database. Causes a service restart. End result is you can now edit the voip.ms SMS endpoint in your trunk. Works for 3cx V20. Useful if you want to intercept API calls for either logging or manipulation (ie upgrade long SMS to MMS - which voip.ms doesn't do automatically).
Find a file
2025-11-13 00:30:25 +00:00
expose_voipms_sms_url.sh Update expose_voipms_sms_url.sh 2025-07-15 14:07:35 +00:00
README.md Update README.md 2025-11-13 00:30:25 +00:00
undo_expose.sh Add undo_expose.sh 2025-07-15 04:49:53 +00:00

USE AT YOUR OWN RISK! I ACCEPT NO RESPONSIBILITY FOR YOUR LACK OF RESPONSIBILITY! Make backups, or better yet, don't use this! I can confidently say it works for me, but I have no idea if it'll work for you. You have been warned.

Make sure postgres client is installed.

Download the scripts somewhere on your 3cx box. Make them executable.

Assumes your templates are in /var/lib/3cxpbx/Instance1/Data/Http/Templates/provider Assumes your voip.ms template filename is voipms.pv.xml

Assumes defaults on database name and that it's postgres backed

Modify this script if your defaults are different.

Run the expose script to expose the value and the undo to revert the database (but it will still leave the custom template)

Keep in mind, if you modified the script variables before running it, you'll have to apply the same changes to the revert script.