The gui is very configurable, i don’t recall anything about changing anything other than the whitelist IP during install
root ~# apt purge ufw
root ~# ufw disable
root ~# systemctl stop ufw
root ~# systemctl mask ufw
mkdir -p /usr/src/djangopbx-install
cd /usr/src/djangopbx-install
wget https://raw.githubusercontent.com/djangopbx/djangopbx-install.sh/master/install.sh
chmod +x install.sh
nano -w install.sh
Insert your domain_name=somebody.com
If you plan to have multiple tenants, use: domain_name=.somebody.com
Insert your default_domain_name=django.somebody.com
Be sure you've added an A record DNS entry for somebody.com and django.somebody.com
Change:
freeswitch_method=pkg
signalwire_token=pat-token-obtained-above
systemctl enable nftables
sed -i '/PID/a ExecStartPre=/bin/sleep 10' /usr/lib/systemd/system/nginx.service
reboot
sed -i 's|ipv4_white_list = { |ipv4_white_list = { 12.34.56.78, |' /etc/nftables.conf
Run the config file as a script: /etc/nftables.conf
Verify your added whitelist entry: nft list set inet filter ipv4_white_list
Please share the bug fix, I have been trying to get voipms working as well.Sorted out getting a VoIP.ms trunk registered with bug fix from @Adrian Fretwell. Thanks!!
Now if only we could make an outbound call. Both djangopbx and voip.ms show the trunk registered, and Status->Registrations shows the softphone registered. We then created an outbound route to VoIP.ms using the following settings;
Order: 100
Number: ^(\+1|1)?(\d{10})$
Destination: True
Hostname: my.djangopbx.domain
Domain: my.djangopbx.domain
Enabled: True
Description: voipms
Continue: True
But I get a 488 Not Acceptable error dialing either 10-digit or 11-digit NANPA number. No idea what Destination and Continue mean either but True or False doesn't seem to matter. Same result.
It wasn't really a bug fix. The user had deleted their selected domain and then tried to create a gateway - effectively with a non existent domain. The fix was just a test to stop someone deleting the domain they are currently working on.Please share the bug fix, I have been trying to get voipms working as well.
Thanks for the reply.Hi Simon, happy to help if I can.
Yes, UFW does need to be removed. The Django-PBX installer does attempt to remove it if it exists.
Django-PBX uses nftables for it's firewall and the is a point in the install script that prompts you to enter your IP address into a whitelist for service like sh.
I don't know anything about Porta instances but I'm sure will can work through Gateways and dialplans.
There is a documentation page for Gateways here:
https://www.djangopbx.com/static/documentation/admin/accounts/gateways.html
If you have any specific questions it may be better to start a new thread then it makes any solutions easier to find for others.
Hi Simon,Moving past that, I have watched some Freeswitch videos, and it's "relatively" simple to set up the XML files for gateways, dial plans, and extensions. I have a few domains set up and working on internal calls, however, I cannot seem to get my gateways registered to my Porta instances as well as the dial plans to receive and make calls.