[Freeswitch-users] mod_event_socket Outbound connection in Java.

Suresh M SureshM at telesoftlabs.com
Wed Aug 17 09:06:12 MSD 2011


Thank you Hector. My C# app is using ManagedESL dll which I compiled
using VC++. I thought I will have a Java version using esl.jar
(freeswitch core) in similar way so that my code migration would be
easier. Anyway, I think better switch to freeswitch-contrib library as
you recommended.
 


________________________________

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Hector Geraldino
Sent: Tuesday, August 16, 2011 11:32 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] mod_event_socket Outbound connection in
Java.



Hi Suresh,

 

I haven't used the C# libraries before, but I can highly recommend you
to use the Java ESL client library  (org.freeswitch.esl.client) that is
listed on the wiki.

 

http://wiki.freeswitch.org/wiki/Java_ESL

 

I'm using it in one of my current developments and it works pretty good.
As it uses the JBoss netty for connection management, you don't have to
worry about connection handling, missing events or anything like that.
It's well designed and the performance is acceptable.

 

Give it a shot and let us know if you have any questions.

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Suresh M
Sent: Tuesday, August 16, 2011 4:07 AM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] mod_event_socket Outbound connection in
Java.

 

Hi,

 

I am trying mod_event_socket in FreeSwitch [outbound ] using Java and I
am stuck:

 

I tried the following C# sample successfully.

 

ESLconnection eslConnection = new
ESLconnection(sckClient.Handle.ToInt32());

 

I need to do the same in Java. But what should I pass to new
ESLconnection constructor in Java in place of socket handle?!  I know
basically this is a Java question for which I tried a lot to find answer
but in vain.  Hope somebody out there would already have come across
this and got a solution.  Any help or clue or alternative method to
achieve the same is greatly appreciated.

 

Thanks in advance.

 

Suresh

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110817/ecb61d18/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list