[Freeswitch-dev] Core-UUID - is it possible to make it persistent?
As per http://www.mail-archive.com/freeswitch-dev@lists.freeswitch.org/msg02600.htm... The Core-UUID changes every time FS restart, is there a particular reason why it should change every time? anyway to configure it to not change? Or possible to add a Persistent-Core-UUID so it never changes when managing multiple FS instance at the same place? Thanks. -- Seven Du http://www.freeswitch.org.cn http://about.me/dujinfang http://www.dujinfang.com
is there a particular reason why it should change every time?
It's a UUID of the instance rather than the server (hostname is probably sufficient for that). That said there probably isn't a reason you couldn't set a persistent UUID yourself in a config file. anyway to configure it to not change? Currently no. It's generated anew on every start in switch_core.c:1701:switch_core_init() It occurs after the switch.conf.xml file is loaded (line 1679) so it would be trivial to make a patch that reads it from that file and generates a random one if it hasn't been set in the config file. It'd be more involved to generate a random one on the first startup that's then remembered on future startups. That should be possible too by caching it in a local file, as with freeswitch.serial. -Steve On 9 June 2013 05:03, Seven Du <dujinfang@gmail.com> wrote:
As per http://www.mail-archive.com/freeswitch-dev@lists.freeswitch.org/msg02600.htm...
The Core-UUID changes every time FS restart, is there a particular reason why it should change every time? anyway to configure it to not change? Or possible to add a Persistent-Core-UUID so it never changes when managing multiple FS instance at the same place?
Thanks.
-- Seven Du http://www.freeswitch.org.cn http://about.me/dujinfang http://www.dujinfang.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
We do something similar for zrtp already. Mike On Jun 9, 2013, at 2:16 AM, Steven Ayre <steveayre@gmail.com> wrote:
is there a particular reason why it should change every time?
It's a UUID of the instance rather than the server (hostname is probably sufficient for that). That said there probably isn't a reason you couldn't set a persistent UUID yourself in a config file.
anyway to configure it to not change?
Currently no. It's generated anew on every start in switch_core.c:1701:switch_core_init()
It occurs after the switch.conf.xml file is loaded (line 1679) so it would be trivial to make a patch that reads it from that file and generates a random one if it hasn't been set in the config file.
It'd be more involved to generate a random one on the first startup that's then remembered on future startups. That should be possible too by caching it in a local file, as with freeswitch.serial.
-Steve
On 9 June 2013 05:03, Seven Du <dujinfang@gmail.com> wrote: As per http://www.mail-archive.com/freeswitch-dev@lists.freeswitch.org/msg02600.htm...
The Core-UUID changes every time FS restart, is there a particular reason why it should change every time? anyway to configure it to not change? Or possible to add a Persistent-Core-UUID so it never changes when managing multiple FS instance at the same place?
Thanks.
-- Seven Du http://www.freeswitch.org.cn http://about.me/dujinfang http://www.dujinfang.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (3)
-
Michael Jerris
-
Seven Du
-
Steven Ayre