Issue Adjusting To Dynamic External IP

Status
Not open for further replies.

legolas108

New Member
Dec 11, 2019
10
0
1
Winter, WI
www.wintergreenhouse.com
Adjusting to a dynamically changing external IP (ADSL) by maintaining a dynamically adjusted DNS entry works, but the system remains unavailable until DNS change takes effect (at least 15-20 minutes even when setting the TTL to 5 minutes).

So, tried to maintain the IP directly with our VoIP provider and in FusionPBX 4.5.10 / FreeSwitch 1.8.4. Our VoIP provider offers a REST interface to update the IP for the Origination URIs, so no issue there. For FP/FS tried to update the external profile's ext-sip-ip and ext-rtp-ip variables directly in the PostgreSQL database fusionpbx:
Code:
root@pbx:~# su - postgres -c $"/usr/bin/psql -d fusionpbx -c \"update v_sip_profile_settings sps set sip_profile_setting_value = 'autonat:12.34.56.78' from v_sip_profiles sp where (sps.sip_profile_uuid = sp.sip_profile_uuid) and (sp.sip_profile_name = 'external') and (sps.sip_profile_setting_name in ('ext-sip-ip', 'ext-rtp-ip'));\""

and issuing
Code:
root@pbx:~# /usr/bin/fs_cli -x "sofia profile external restart"
root@pbx:~# /usr/bin/fs_cli -x "xml_flush_cache"

afterwards.

When changing these two variables via FusionPBX GUI, Advanced / SIP Profiles / external, the system immediately continues to work normally, but when updating from the command line there's e.g. one-way audio (callee doesn't hear caller).

So, what more commands are needed to make the IP change take effect properly?

Thanks much for any help!
 
Status
Not open for further replies.