igniterealtime/openfire-pionturn-plugin

Pion TURN executable not spawned by 32-bit JRE on Windows x64

lochner opened this issue · 2 comments

For Openfire 4.6.4 with 32-bit bundled JRE, the following error occurs at start-up:

2021.07.12 19:16:02 ERROR [pool-13228-thread-1]: org.ifsoft.turn.openfire.PionTurn - checkNatives unknown OS C:\Programs\Openfire\plugins\pionturn
2021.07.12 19:16:02 INFO  [pool-13228-thread-1]: org.ifsoft.turn.openfire.PionTurn - PionTurn disabled
2021.07.12 19:16:02 INFO  [pool-13228-thread-1]: org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin 'pionturn'.

This can be fixed by changing the following condition in PionTurn.java to OSUtils.IS_WINDOWS:

else if(OSUtils.IS_WINDOWS64)
{
    suffix = "win-64" + File.separator + "turn-server-log.exe";
}

Fixed with this commit - 8fa0830

Thank you, Dele, it works for me now.