Silicon Technix Forums

Please login or register.

Author Topic: Any available clientiax.jar for mac support?  (Read 876 times)

Offline louie.nohay

  • Regular Memeber
  • ***
  • Posts: 16
  • Karma: +2/-0
    • View Profile
Any available clientiax.jar for mac support?
« on: April 25, 2011, 06:59:46 AM »
Hi community,

I am currently developing a iax client soft phone and already used and implemented iaxclient.jar for linux and windows using callino iaxclient.
Problem is, are there any available iaxclient.jar for mac support? Your help will be greatly appreciated. Thanks in advance.

Offline Babar Shafiq Nazmi

  • Administrator
  • Senior Member
  • *****
  • Posts: 152
  • Karma: +87/-0
    • View Profile
    • Silicon Technix
Re: Any available clientiax.jar for mac support?
« Reply #1 on: April 25, 2011, 02:57:03 PM »
Hello,

Actually callino's iaxclient is using JNI and you need .dll, .so files for specific hardware/OS.
No big difference with mac you just need to compile the library on mac and add those binary files in the .jar file, that's it.

Regards,
....God is the greatest Programmer....

http://www.silicontechnix.com

Offline louie.nohay

  • Regular Memeber
  • ***
  • Posts: 16
  • Karma: +2/-0
    • View Profile
Re: Any available clientiax.jar for mac support?
« Reply #2 on: April 26, 2011, 06:09:58 AM »
i already downloaded iaxclient.dylib for mac.. however when i tried to compiled it into jar, i'm getting trouble in loading it.. some security issues on the jar files were trapped..

Offline Babar Shafiq Nazmi

  • Administrator
  • Senior Member
  • *****
  • Posts: 152
  • Karma: +87/-0
    • View Profile
    • Silicon Technix
Re: Any available clientiax.jar for mac support?
« Reply #3 on: April 26, 2011, 01:38:03 PM »
First you need to bundle the binaries for mac then modify that part of the code

Quote
    IAXClient INSTANCE = (IAXClient) Native.loadLibrary((Platform.isWindows() && FileExists.exists(System.getProperty("java.io.tmpdir") + "libiaxclient.dll")) ?
          System.getProperty("java.io.tmpdir") + "libiaxclient.dll" :
             (Platform.isWindows() && FileExists.exists(System.getProperty("java.io.tmpdir") + "libiaxclient.dll"))?
                    System.getProperty("java.io.tmpdir") + "libiaxclient.so" :
                       "iaxclient",
          IAXClient.class);

Currently it is only checking Windows and incase of linux it is only loading linux, you need to add mac library loading here.

Also if you ask those questions on callino forum they will help better then me.

....God is the greatest Programmer....

http://www.silicontechnix.com

 

Page created in 0.159 seconds with 19 queries.