[Freeswitch-users] [contrib] a new java ESL inbound/outbound client

Damjan Jovanovic damjan at ecntelecoms.com
Thu Aug 12 08:24:33 PDT 2010


Below is the patch I had to use to get it to compile and run.

By the way, your ESL library rules. I tried fseslib
(http://versafon.com/versafonweb/Software.jsp) but it's GPL(v3!) and
doesn't handle event bodies; even with a hack to it still doesn't
provide essential fields. The ESL library for Java built into Freeswitch
uses native code and seems to only handle outbound. Only your library
provides everything, is 100% Java, and is licensed nicely.

Thank you so much
Damjan

diff --git
a/dvarnes/java/esl-client/org.freeswitch.esl.client.example/pom.xml
b/dvarnes/java/esl-client/org.freeswitch.esl.client.example/pom.xml
index 56c8250..97f03db 100644
--- a/dvarnes/java/esl-client/org.freeswitch.esl.client.example/pom.xml
+++ b/dvarnes/java/esl-client/org.freeswitch.esl.client.example/pom.xml
@@ -19,7 +19,7 @@
   <parent>
     <groupId>org.freeswitch.esl.client</groupId>
     <artifactId>esl-client-parent</artifactId>
-    <version>0.0.1-SNAPSHOT</version>
+    <version>0.9.0-SNAPSHOT</version>
   </parent>
   <artifactId>org.freeswitch.esl.client.example</artifactId>
   <name>FreeSWITCH Event Socket Library - Java Client example
usage</name>
@@ -27,7 +27,7 @@
     <dependency>
       <groupId>org.freeswitch.esl.client</groupId>
       <artifactId>org.freeswitch.esl.client</artifactId>
-      <version>0.0.1-SNAPSHOT</version>
+      <version>0.9.0-SNAPSHOT</version>
     </dependency>
   </dependencies>
-</project>
\ No newline at end of file
+</project>
diff --git a/dvarnes/java/esl-client/org.freeswitch.esl.client/pom.xml
b/dvarnes/java/esl-client/org.freeswitch.esl.client/pom.xml
index cc9d9f1..0093650 100644
--- a/dvarnes/java/esl-client/org.freeswitch.esl.client/pom.xml
+++ b/dvarnes/java/esl-client/org.freeswitch.esl.client/pom.xml
@@ -19,7 +19,7 @@
   <parent>
     <groupId>org.freeswitch.esl.client</groupId>
     <artifactId>esl-client-parent</artifactId>
-    <version>0.0.1-SNAPSHOT</version>
+    <version>0.9.0-SNAPSHOT</version>
   </parent>
   <artifactId>org.freeswitch.esl.client</artifactId>
   <name>FreeSWITCH Event Socket Library - Java Client</name>
@@ -43,13 +43,17 @@
             <Import-Package>*</Import-Package>
             <Export-Package>
               org.freeswitch.esl.client,
+              org.freeswitch.esl.client.inbound,
+              org.freeswitch.esl.client.internal,
+              org.freeswitch.esl.client.internal.debug,
+              org.freeswitch.esl.client.debug,
+              org.freeswitch.esl.client.outbound,
+              org.freeswitch.esl.client.transport,
               org.freeswitch.esl.client.transport.event,
               org.freeswitch.esl.client.transport.message,
             </Export-Package>
             <!--  the debug package is a temporary hack  -->
             <Private-Package>
-              org.freeswitch.esl.client.internal,
-              org.freeswitch.esl.client.debug
             </Private-Package>
           </instructions>
         </configuration>
@@ -111,4 +115,4 @@
     </repository>
   </repositories>
    
-</project>
\ No newline at end of file
+</project>


On Thu, 2010-08-12 at 16:13 +0200, Damjan Jovanovic wrote:

> Hi David
> 
> How do you compile this? I type "mvn clean install" and get errors:
> 
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> 
> 
> Project ID: null:org.freeswitch.esl.client:bundle:null
> 
> Reason: Cannot find parent:
> org.freeswitch.esl.client:esl-client-parent for project:
> null:org.freeswitch.esl.client:bundle:null for project
> null:org.freeswitch.esl.client:bundle:null
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.freeswitch.esl.client:esl-client-parent for project:
> null:org.freeswitch.esl.client:bundle:null for project
> null:org.freeswitch.esl.client:bundle:null
> 
> etc
> 
> Damjan
> 
> On Wed, 2010-01-06 at 00:41 +1100, david varnes wrote: 
> 
> > Hi all,
> > I had a basic java inbound ESL client kicking around that I have used
> > in a couple of small projects over the last year.  I needed something
> > a little more complete for a new project so I dusted it off and made it
> > less incomplete.
> > 
> > It still needs more work and testing, but it certainly is usable right now.
> > I have tested it against FS 1.0.4 and latest trunk.
> > 
> > I have put it in my contrib area in svn in hopes that some may find it
> > useful:
> > http://svn.freeswitch.org/svn/freeswitch/trunk/contrib/dvarnes/java/esl-client
> > I would be interested in any feedback ...
> > 
> > Features
> >  * Apache License (ASL) version 2
> >  * Standalone Inbound client
> >  * Framework classes to easily create an Outbound socket client
> >  * based on Netty [1] nio library version 3.1.5.GA (previously was
> >    using Apache MINA, but this is easier)
> >  * logging via slf4j
> >  * only dependencies are slf4j-api and netty (both Apache licensed)
> >  * single jar which is a valid OSGi bundle
> >  * built using maven
> >  * eclipse projects
> >  * reasonable level of java docs
> > 
> > Still todo
> >  * Docs
> >  * Simple example apps
> >  * .. more in TODO.txt in project root.
> > 
> > There is no binary jar available right now since I don't know how/if
> > I can put files up to file.freeswitch.org.
> > 
> > In the meantime to build you need maven [2] installed.  If you are
> > unfamiliar with maven usage, I can post a simple howto.
> > 
> > davidv
> > 
> > [1] http://www.jboss.org/netty/downloads.html
> > [2] http://maven.apache.org
> > 
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100812/37c35abd/attachment.html 


More information about the FreeSWITCH-users mailing list