Sofia pulling wrong (old) IPs for ext-rtp-ip and ext-sip-ip - can't figure out where these are coming from

Status
Not open for further replies.

Justin H

New Member
Feb 9, 2018
5
1
1
Been using fusionpbx/freeswitch for a couple years. Installed fios with a new IP and having problems getting the new IP to be seen on a sofia profile restart. Here's what I've got.

Internal and external profile used. External profile has...
ext-rtp-ip = $${external_rtp_ip}
ext-sip-ip = $${external_sip_ip}
*Note... I have tried autonat:host:NAMEHERE.wattboxdns.com and that also didn't work.

Under advanced variables...
external_rtp_ip = 100.x.x.x
external_sip_ip = 100.x.x.x
where 100.x.x.x is the new IP

and I've checked the vars file (/etc/freeswitch/vars.xml) and the right values are there.

when I do a fs_cli and eval $${external_sip_ip} it shows the right address
freeswitch@pbx.xxxxxx> eval $${external_sip_ip}
100.x.x.x


I've restarted, reloaded, rescanned both sofia profiles, done a restart of freeswitch, flushed cache, etc. all to no avail.

When freeswitch starts or the profile reloads it is pulling the old IP still...

2022-12-28 09:32:48.706558 98.17% [DEBUG] sofia.c:4720 ext-rtp-ip [24.x.x.x]
2022-12-28 09:32:48.706558 98.17% [DEBUG] sofia.c:4720 ext-sip-ip [24.x.x.x]

and in SIP Status it shows...
NameTypeDataStateAction
external-pbx-usedProfilesip:mod_sofia@24.x.x.x:5080RUNNING (0)

Sigh.

What am I missing? Where in the world is this old IP coming from?

Thanks much.
 
Last edited:

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Depending on your version, it could be you need to clear the cache.

Have a look in /var/cache/fusionpbx and delete any files that exist in there then restart freeswitch.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
Depending on your cache method you may also need to look at memcache. The key should be "configuration:sofia.conf:<hostname>", I have known values to get "stuck" in there from time to time, I don't know why they outlive their expiry time, maybe they are getting refreshed by some mechanism that I am unaware of.
 
Status
Not open for further replies.