[Freeswitch-dev] Core-UUID - is it possible to make it persistent?

Michael Jerris mike at jerris.com
Mon Jun 10 19:29:06 MSD 2013


We do something similar for zrtp already.  

Mike

On Jun 9, 2013, at 2:16 AM, Steven Ayre <steveayre at 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 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
> 
> 
> _________________________________________________________________________
> 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/20130610/21f34815/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list