How to change internal domain?

Status
Not open for further replies.

etsiot

Member
Jan 14, 2018
46
1
8
55
Hi,

Is there a thread/url explaining how to safely change the internal domain to FQDN?
Single-tenant installation here, which was installed by default using the internal IP of the server as domain
Have searched but didn't find anything really..

Thanks,
 

bcmike

Active Member
Jun 7, 2018
337
58
28
54
Under Advanced=>Domains, if you select your domain the domain name field is editable. My assumption is that if you change it all the child entries under that uuid would change as well. I have never tried it though so I don't know for sure.

If you do try it, make sure the domain your changing to resolves on your machine so you can get back into your account again.
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
I just prefer not to rename, I'd rather leave the IP domain there, a rename should work too though.
 

etsiot

Member
Jan 14, 2018
46
1
8
55
Just tried to rename the domain name.
Although the FQDN is shown in the various forms instead of the IPs...
Phones lost registration, SIP trunks the same. rebooted and checked again but still the same
 

etsiot

Member
Jan 14, 2018
46
1
8
55
Trying to debug; my sip trunk registers with provider, but when an incoming invite happens I see the following in the logs that the domain is set using the IP, not the FQDN (i.e. the "old" IP domain 192.168.0.10) :


09249af9-8e8c-401b-bbc9-815b1690a5ad Dialplan: sofia/external/+30697xxx@146.120.226.3 Action transfer(30 XML 192.168.0.10)
09249af9-8e8c-401b-bbc9-815b1690a5ad Dialplan: sofia/external/+30697xxx@146.120.226.3 Action set(continue_on_fail=true)
09249af9-8e8c-401b-bbc9-815b1690a5ad Dialplan: sofia/external/+30697xxx@146.120.226.3 Action set(hangup_after_bridge=true)
09249af9-8e8c-401b-bbc9-815b1690a5ad 2021-12-18 12:05:05.224131 [DEBUG] mod_dptools.c:1598 SET sofia/external/+30697xxx@146.120.226.3 [domain_name]=[192.168.0.10]
09249af9-8e8c-401b-bbc9-815b1690a5ad EXECUTE sofia/external/+30697xxxx@146.120.226.3 set(domain_name=192.168.0.10)
09249af9-8e8c-401b-bbc9-815b1690a5ad Dialplan: sofia/external/+30697xxx@146.120.226.3 Action set(domain_name=192.168.0.10) INLINE
09249af9-8e8c-401b-bbc9-815b1690a5ad 2021-12-18 12:05:05.224131 [DEBUG] mod_dptools.c:1598 SET sofia/external/+30697xxx@146.120.226.3 [domain_uuid]=[348e3191-851a-4e45-94cf-28f78a105be3]



I am looking at the dialplan manager, the IP domain is nowhere to be found. Any hints?
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
You have renamed it, now you have to change the phones etc to register to the fqdn
 

etsiot

Member
Jan 14, 2018
46
1
8
55
Sure, but this is an external call coming in and looks like domain is set wrongly?
The trunk gateway definition contains the FQDN domain in it...
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Go into the destination and resave it, make sure the domain is set to the fqdn.

Also, flush your cache

Code:
rm /var/cache/fusionpbx/*
 

etsiot

Member
Jan 14, 2018
46
1
8
55
/var/cache/fusionpbx doesn't exist? (I am on 4.4.3)
cleared cache thru UI
I have saved the gateway again and rebooted as well
 
Last edited:

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
You should definitely not be using 4.4.3. It has security flaws.

I would just rebuild the box using latest master, particularly if it is only a single domain.
 

etsiot

Member
Jan 14, 2018
46
1
8
55
I see.
Need to add that changing the domain name DOESN'T work. It has messed up the installation.
I have gone back to using the IP domain but somewhere in the system the FQDN has stuck and now incoming calls from the SIP gateway are dropped as looking to come from FQDN.
I have cleared cache and rebooted twice but it persists.
How can I reset that?
 
Status
Not open for further replies.