Note: FreeSWITCH REQUIRES a high resolution clock to work properly. If the operating system is unable to provide one such as in the situations describe below such as in a cloud provider, then that cloud provider would not be suitable to host FreeSWITCH. This is certainly not a problem for FreeSWITCH to resolve, this would be an issue to resolve with the hosting provider to expose a way to enable a high resolution clock source.
On Sep 8, 2015, at 12:59 PM, Support <support@directvoip.co.uk> wrote:
Stanislav,
Yes I did use that to get it going but then found that only worked as root.
Also, I know for myself, who was in control of the global zone, that this was a workaround but it was quickly pointed out to me by community members that this is just a workaround as those just using for example Joyent cloud or any zone other than on their own server would probably never be given access to the high res clock.
Regards Darren From: Stanislav Sinyagin [mailto:ssinyagin@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 08 Sep 2015 16:49:01 +0000 Subject: Re: [Freeswitch-users] Compiling under SmartOS
phew, it started finally.
The correct string is "limit_priv": "default,proc_clock_highres"
After vmadm update, you need to reboot the zone, in order for new permissions to propagate to its processes.
On Tue, Sep 8, 2015 at 5:38 PM, Stanislav Sinyagin <ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>> wrote:
no, my bad, it's still failing on the timer. I'll spend some time on it. Feel free to contact me directly on skype or google hangouts or telegram
On Tue, Sep 8, 2015 at 5:27 PM, Stanislav Sinyagin <ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>> wrote:
actually the answer about the timer was given in that same chat where you took part: http://echelog.com/logs/browse/smartos/1438293600 <http://echelog.com/logs/browse/smartos/1438293600>
I added the following line to the VM manifest json, and then did "vmadm update":
"limit_priv": "default,-proc_clock_highres"
Now it doesn't complain about the timer. But the master branch still coredumps for some other reason :)
On Tue, Sep 8, 2015 at 3:42 PM, Support <support@directvoip.co.uk <mailto:support@directvoip.co.uk>> wrote:
Stanislav,
I cannot help with this, my skills don't reach that far but I can point you in the right direction.
I had the same problem and it seems to be related to something called timerfd. Using the ppriv command you can see freeswitch is wanting access to the high res clock, something not available to smartos zones with the default privileges.
I did manage to mess with the smartos privileges and get it to run at one time but it was only when running as root.
If you actually used an older version of smartos, I think the one I used is dated around january this year, then it will compile fine and use some sort of other timing method.
This timerfd thing, thing relates to freeswitch finding a file called timerfd.h that didn't appear in smartos zones until about march this year, something to do with lx brand I think.
I have just looked and the smartos version that will compile is 20150108T111855Z, obviously it would be better on the newer.
Compiling on the above smartos version and then running it on newer is no problem which is what I ended up doing.
Hope this helps
Regards Darren
________________________________ From: Stanislav Sinyagin [mailto:ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>] Sent: Tue, 08 Sep 2015 07:55:37 +0000 Subject: Re: [Freeswitch-users] Compiling under SmartOS
See the update at https://freeswitch.org/jira/browse/FS-7967 <https://freeswitch.org/jira/browse/FS-7967>
I fixed the compilation problems, and now there's a runtime issue.
On Mon, Aug 17, 2015 at 10:40 AM, Stanislav Sinyagin <ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>> wrote:
I see there are some people on the list, working with SmartOS.
The current master fails to compile: https://freeswitch.org/jira/browse/FS-7967 <https://freeswitch.org/jira/browse/FS-7967>
Your input will be appreciated.
I just started looking around and getting the feeling what SmartOS is. I worked with Solaris quite a lot, but that was almost 10 years ago.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>