[Freeswitch-dev] Core-UUID - is it possible to make it persistent?
Steven Ayre
steveayre at gmail.com
Sun Jun 9 10:16:25 MSD 2013
>
> 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 at gmail.com> wrote:
> As per
> http://www.mail-archive.com/freeswitch-dev@lists.freeswitch.org/msg02600.html
>
> 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20130609/7bca3bc0/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev
mailing list