Java ESL

From FreeSWITCH Wiki
Jump to: navigation, search

Overview of options available for using Java to connect with the Event Socket

Contents

Java connection options

There are at least three options for using Java to connect to the FreeSWITCH Event Socket.

esl.jar (freeswitch core)

  • License: Same as FreeSWITCH
  • Available: esl.jar can be built as part of FreeSWITCH code base
  • Features:
    • Automatically generated by SWIG from core C ESL interfaces (so by definition, always up to date with core ESL).
    • Requires the native esl_lib dependencies to available at runtime.
    • An example is provided at bottom of this page Event Socket Library.


org.freeswitch.esl.client (freeswitch-contrib)

  • License: Apache v2
  • Available: In freeswitch-contrib git repository, see Java ESL Client for details and usage.
  • Features:
    • Inbound and outbound
    • Handles event bodies
    • Built using maven, and OSGi ready
    • Runtime dependencies only on the excellent Netty (Apache License) and SLF4j (MIT License) libraries


fs_eslib (Versafon)